Rounded background

This commit is contained in:
vladest 2017-11-25 10:03:56 +01:00
parent 73a557a8a4
commit 6136a4cea6
2 changed files with 4 additions and 2 deletions

View file

@ -49,6 +49,7 @@ TableView {
fill: parent; fill: parent;
topMargin: tableView.headerVisible ? hifi.dimensions.tableHeaderHeight : 0 topMargin: tableView.headerVisible ? hifi.dimensions.tableHeaderHeight : 0
} }
radius: hifi.dimensions.scrollbarHandleWidth/2
color: isLightColorScheme ? hifi.colors.tableScrollBackgroundLight color: isLightColorScheme ? hifi.colors.tableScrollBackgroundLight
: hifi.colors.tableScrollBackgroundDark : hifi.colors.tableScrollBackgroundDark
} }
@ -60,8 +61,8 @@ TableView {
implicitWidth: hifi.dimensions.scrollbarHandleWidth implicitWidth: hifi.dimensions.scrollbarHandleWidth
Rectangle { Rectangle {
anchors { anchors {
fill: parent fill: parent;
topMargin: 3 topMargin: 3;
bottomMargin: 3 // "" bottomMargin: 3 // ""
leftMargin: 1 // Move it right leftMargin: 1 // Move it right
rightMargin: -1 // "" rightMargin: -1 // ""

View file

@ -61,6 +61,7 @@ TreeView {
fill: parent; fill: parent;
topMargin: treeView.headerVisible ? hifi.dimensions.tableHeaderHeight : 0 topMargin: treeView.headerVisible ? hifi.dimensions.tableHeaderHeight : 0
} }
radius: hifi.dimensions.scrollbarHandleWidth/2
color: isLightColorScheme ? hifi.colors.tableScrollBackgroundLight color: isLightColorScheme ? hifi.colors.tableScrollBackgroundLight
: hifi.colors.tableScrollBackgroundDark : hifi.colors.tableScrollBackgroundDark
} }