making SplitView handles easier to target and providing highlighted
feedback
This commit is contained in:
parent
d1efbceae7
commit
24243602ca
1 changed files with 5 additions and 5 deletions
|
@ -65,18 +65,18 @@ Controls.Page {
|
||||||
id: splitMainView
|
id: splitMainView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
handle: Item{
|
handle: Item{
|
||||||
implicitWidth: 6
|
implicitWidth: Kirigami.Units.gridUnit
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: 1
|
width: parent.width / 4
|
||||||
color: Controls.SplitHandle.hovered ? Kirigami.Theme.hoverColor : Kirigami.Theme.backgroundColor
|
color: parent.Controls.SplitHandle.hovered ? Kirigami.Theme.hoverColor : "#00000000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Presenter.ServiceList {
|
Presenter.ServiceList {
|
||||||
id: leftDock
|
id: leftDock
|
||||||
Controls.SplitView.preferredWidth: Kirigami.Units.largeSpacing * 30
|
Controls.SplitView.preferredWidth: Kirigami.Units.largeSpacing * 25
|
||||||
Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 50
|
Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 50
|
||||||
z: 1
|
z: 1
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ Controls.Page {
|
||||||
|
|
||||||
Presenter.Library {
|
Presenter.Library {
|
||||||
id: library
|
id: library
|
||||||
Controls.SplitView.preferredWidth: libraryOpen ? Kirigami.Units.largeSpacing * 30 : 0
|
Controls.SplitView.preferredWidth: libraryOpen ? Kirigami.Units.largeSpacing * 25 : 0
|
||||||
Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 50
|
Controls.SplitView.maximumWidth: Kirigami.Units.largeSpacing * 50
|
||||||
visible: libraryOpen ? true : false
|
visible: libraryOpen ? true : false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue