Commit 29697693 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

zoom bar: always show handles

parent df92fa26
...@@ -53,7 +53,6 @@ Rectangle { ...@@ -53,7 +53,6 @@ Rectangle {
property bool placeHolderBar: !zoomStart.pressed && !zoomEnd.pressed && root.zoomBarWidth * zoomHandleContainer.width < root.baseUnit property bool placeHolderBar: !zoomStart.pressed && !zoomEnd.pressed && root.zoomBarWidth * zoomHandleContainer.width < root.baseUnit
width: placeHolderBar ? root.baseUnit : root.zoomBarWidth * zoomHandleContainer.width width: placeHolderBar ? root.baseUnit : root.zoomBarWidth * zoomHandleContainer.width
x: root.zoomStart * zoomHandleContainer.width x: root.zoomStart * zoomHandleContainer.width
radius: hoveredBar ? 0 : height / 2
MouseArea { MouseArea {
id: zoomArea id: zoomArea
anchors.fill: parent anchors.fill: parent
...@@ -122,8 +121,7 @@ Rectangle { ...@@ -122,8 +121,7 @@ Rectangle {
id: startHandleRect id: startHandleRect
anchors.fill: parent anchors.fill: parent
radius: height / 2 radius: height / 2
color: zoomStart.isActive ? activePalette.highlight : hoveredBar ? activePalette.text : barPalette.light color: zoomStart.isActive ? activePalette.highlight : hoveredBar ? activePalette.text : barPalette.text
visible: hoveredBar
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: height / 2 anchors.leftMargin: height / 2
...@@ -165,8 +163,7 @@ Rectangle { ...@@ -165,8 +163,7 @@ Rectangle {
id: endHandleRect id: endHandleRect
anchors.fill: parent anchors.fill: parent
radius: height / 2 radius: height / 2
color: zoomEnd.isActive ? activePalette.highlight : hoveredBar ? activePalette.text : barPalette.light color: zoomEnd.isActive ? activePalette.highlight : hoveredBar ? activePalette.text : barPalette.text
visible: hoveredBar
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.rightMargin: height / 2 anchors.rightMargin: height / 2
......
Supports Markdown
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