mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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
|
||||
|
||||
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||
verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
|
||||
|
||||
style: TableViewStyle {
|
||||
// Needed in order for rows to keep displaying rows after end of table entries.
|
||||
backgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||
alternateBackgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
||||
backgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||
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 {
|
||||
|
|
|
@ -45,10 +45,60 @@ TreeView {
|
|||
|
||||
backgroundVisible: true
|
||||
|
||||
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
|
||||
verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
|
||||
|
||||
style: TreeViewStyle {
|
||||
// Needed in order for rows to keep displaying rows after end of table entries.
|
||||
backgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||
alternateBackgroundColor: treeView.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd
|
||||
backgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven
|
||||
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 {
|
||||
|
|
|
@ -52,6 +52,8 @@ Item {
|
|||
readonly property color tableRowLightEven: "#1a575757"
|
||||
readonly property color tableRowDarkOdd: "#80393939"
|
||||
readonly property color tableRowDarkEven: "#a6181818"
|
||||
readonly property color tableScrollHandle: "#707070"
|
||||
readonly property color tableScrollBackground: "#323232"
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
Loading…
Reference in a new issue