mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +02:00
Add scrollbars to running scripts and available scripts tables
This commit is contained in:
parent
d32f743f52
commit
4df77cff31
3 changed files with 106 additions and 4 deletions
|
@ -44,10 +44,60 @@ TableView {
|
||||||
|
|
||||||
backgroundVisible: true
|
backgroundVisible: true
|
||||||
|
|
||||||
|
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||||
|
verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
|
||||||
|
|
||||||
style: TableViewStyle {
|
style: TableViewStyle {
|
||||||
// Needed in order for rows to keep displaying rows after end of table entries.
|
// Needed in order for rows to keep displaying rows after end of table entries.
|
||||||
backgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
backgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||||
alternateBackgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
alternateBackgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
||||||
|
|
||||||
|
handle: Item {
|
||||||
|
id: scrollbarHandle
|
||||||
|
implicitWidth: 8
|
||||||
|
Rectangle {
|
||||||
|
radius: 4
|
||||||
|
color: hifi.colors.tableScrollHandle
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 4 // Finesse size and position.
|
||||||
|
rightMargin: -1
|
||||||
|
topMargin: 2
|
||||||
|
bottomMargin: 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
scrollBarBackground: Item {
|
||||||
|
implicitWidth: 10
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: hifi.colors.baseGrayHighlight
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 1 // Finesse size and position.
|
||||||
|
topMargin: -2
|
||||||
|
bottomMargin: -2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
radius: 4
|
||||||
|
color: hifi.colors.tableScrollBackground
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 3 // Finesse position.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
incrementControl: Item {
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
decrementControl: Item {
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rowDelegate: Rectangle {
|
rowDelegate: Rectangle {
|
||||||
|
|
|
@ -45,10 +45,60 @@ TreeView {
|
||||||
|
|
||||||
backgroundVisible: true
|
backgroundVisible: true
|
||||||
|
|
||||||
|
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||||
|
verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
|
||||||
|
|
||||||
style: TreeViewStyle {
|
style: TreeViewStyle {
|
||||||
// Needed in order for rows to keep displaying rows after end of table entries.
|
// Needed in order for rows to keep displaying rows after end of table entries.
|
||||||
backgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
backgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||||
alternateBackgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
alternateBackgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
||||||
|
|
||||||
|
handle: Item {
|
||||||
|
id: scrollbarHandle
|
||||||
|
implicitWidth: 8
|
||||||
|
Rectangle {
|
||||||
|
radius: 4
|
||||||
|
color: hifi.colors.tableScrollHandle
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 4 // Finesse size and position.
|
||||||
|
rightMargin: -1
|
||||||
|
topMargin: 2
|
||||||
|
bottomMargin: 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
scrollBarBackground: Item {
|
||||||
|
implicitWidth: 10
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
color: hifi.colors.baseGrayHighlight
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 1 // Finesse size and position.
|
||||||
|
topMargin: -2
|
||||||
|
bottomMargin: -2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
radius: 4
|
||||||
|
color: hifi.colors.tableScrollBackground
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: 3 // Finesse position.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
incrementControl: Item {
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
decrementControl: Item {
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rowDelegate: Rectangle {
|
rowDelegate: Rectangle {
|
||||||
|
|
|
@ -52,6 +52,8 @@ Item {
|
||||||
readonly property color tableRowLightEven: "#1a575757"
|
readonly property color tableRowLightEven: "#1a575757"
|
||||||
readonly property color tableRowDarkOdd: "#80393939"
|
readonly property color tableRowDarkOdd: "#80393939"
|
||||||
readonly property color tableRowDarkEven: "#a6181818"
|
readonly property color tableRowDarkEven: "#a6181818"
|
||||||
|
readonly property color tableScrollHandle: "#707070"
|
||||||
|
readonly property color tableScrollBackground: "#323232"
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
Loading…
Reference in a new issue