Make settings and transparency controllable on vertical bars
This commit is contained in:
+21
-16
@@ -730,22 +730,7 @@ Item {
|
|||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
MouseArea {
|
CenterGestureArea { anchors.fill: parent }
|
||||||
anchors.fill: parent
|
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
|
||||||
onClicked: function(mouse) {
|
|
||||||
if (mouse.button === Qt.RightButton) {
|
|
||||||
root.openBarSettings()
|
|
||||||
mouse.accepted = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onDoubleClicked: function(mouse) {
|
|
||||||
if (mouse.button !== Qt.RightButton) {
|
|
||||||
root.toggleTransparency()
|
|
||||||
mouse.accepted = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ModuleList {
|
ModuleList {
|
||||||
visible: !centerRoot.hasAnchor
|
visible: !centerRoot.hasAnchor
|
||||||
@@ -782,6 +767,8 @@ Item {
|
|||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
CenterGestureArea { anchors.fill: parent }
|
||||||
|
|
||||||
ModuleList {
|
ModuleList {
|
||||||
visible: !centerRoot.hasAnchor
|
visible: !centerRoot.hasAnchor
|
||||||
entries: centerRoot.entries
|
entries: centerRoot.entries
|
||||||
@@ -812,6 +799,24 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
component CenterGestureArea: MouseArea {
|
||||||
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
|
|
||||||
|
onClicked: function(mouse) {
|
||||||
|
if (mouse.button === Qt.RightButton) {
|
||||||
|
root.openBarSettings()
|
||||||
|
mouse.accepted = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onDoubleClicked: function(mouse) {
|
||||||
|
if (mouse.button !== Qt.RightButton) {
|
||||||
|
root.toggleTransparency()
|
||||||
|
mouse.accepted = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
component ModuleList: Loader {
|
component ModuleList: Loader {
|
||||||
id: moduleListRoot
|
id: moduleListRoot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user