Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5cb9ce83 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Monitor overlay toolbars: add button to move to opposite corner to avoid getting in the way

parent 68f7eaaa
Pipeline #9148 passed with stage
in 17 minutes and 1 second
......@@ -8,6 +8,7 @@ Rectangle {
objectName: "scenetoolbar"
width: fullscreenButton.width
height: childrenRect.height
property bool rightSide: true
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
color: Qt.rgba(myPalette.window.r, myPalette.window.g, myPalette.window.b, 0.7)
radius: 4
......@@ -67,5 +68,21 @@ Rectangle {
root.isClipMonitor ? controller.triggerAction('delete_clip_marker') : controller.triggerAction('delete_guide')
}
}
ToolButton {
objectName: "moveBar"
iconName: "transform-move-horizontal"
tooltip: i18n("Move Toolbar")
onClicked: {
if (scenetoolbar.rightSide) {
scenetoolbar.anchors.right = undefined
scenetoolbar.anchors.left = scenetoolbar.parent.left
scenetoolbar.rightSide = false
} else {
scenetoolbar.anchors.left = undefined
scenetoolbar.anchors.right = scenetoolbar.parent.right
scenetoolbar.rightSide = true
}
}
}
}
}
......@@ -76,8 +76,9 @@ Item {
top: parent.top
topMargin: 4
rightMargin: 4
leftMargin: 4
}
visible: barOverArea.mouseX >= x - 10
visible: sceneToolBar.rightSide ? barOverArea.mouseX >= x - 10 : barOverArea.mouseX < x + width + 10
}
Item {
......
......@@ -73,8 +73,9 @@ Item {
top: parent.top
topMargin: 4
rightMargin: 4
leftMargin: 4
}
visible: barOverArea.mouseX >= x - 10
visible: sceneToolBar.rightSide ? barOverArea.mouseX >= x - 10 : barOverArea.mouseX < x + width + 10
}
Item {
......
......@@ -203,8 +203,9 @@ Item {
top: parent.top
topMargin: 4
rightMargin: 4
leftMargin: 4
}
visible: global.mouseX >= x - 10
visible: effectToolBar.rightSide ? global.mouseX >= x - 10 : global.mouseX < x + width + 10
}
MonitorRuler {
id: clipMonitorRuler
......
......@@ -552,8 +552,9 @@ Item {
top: parent.top
topMargin: 4
rightMargin: 4
leftMargin: 4
}
visible: global.mouseX >= x - 10
visible: effectToolBar.rightSide ? global.mouseX >= x - 10 : global.mouseX < x + width + 10
}
MonitorRuler {
id: clipMonitorRuler
......
......@@ -364,8 +364,9 @@ Item {
top: parent.top
topMargin: 4
rightMargin: 4
leftMargin: 4
}
visible: global.mouseX >= x - 10
visible: effectToolBar.rightSide ? global.mouseX >= x - 10 : global.mouseX < x + width + 10
}
MonitorRuler {
id: clipMonitorRuler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment