From ff1b5ab2e60f500031e86b817234a60624897c45 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 7 Feb 2026 10:51:37 -0500 Subject: [PATCH] Hide handles when not in use. --- qml/Components/ClideHandle.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qml/Components/ClideHandle.qml b/qml/Components/ClideHandle.qml index ae3ff2d..eb1bd36 100644 --- a/qml/Components/ClideHandle.qml +++ b/qml/Components/ClideHandle.qml @@ -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 } } }