Hide handles when not in use.

This commit is contained in:
2026-02-07 10:51:37 -05:00
parent 491087a6c1
commit ff1b5ab2e6

View File

@@ -8,6 +8,8 @@ import QtQuick.Controls
import clide.module 1.0
Rectangle {
id: root
readonly property color currentColor: {
if (pressed) {
return RustColors.pressed;
@@ -24,11 +26,18 @@ Rectangle {
color: currentColor
implicitHeight: 8
radius: 2.5
opacity: root.hovered ? 1.0 : 0.0
// Execute these behaviors when the color is changed.
Behavior on color {
ColorAnimation {
duration: 400
duration: 500
}
}
Behavior on opacity {
OpacityAnimator {
duration: 500
}
}
}