From 344efc0042d230298cc6b13f790d2ed3493f9e06 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 8 Feb 2026 10:08:47 -0500 Subject: [PATCH] Clean up ClideHandle. --- qml/ClideProjectView.qml | 17 +++-------------- qml/Components/ClideHandle.qml | 3 ++- qml/main.qml | 7 +------ 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/qml/ClideProjectView.qml b/qml/ClideProjectView.qml index 34d0c8e..cf043f4 100644 --- a/qml/ClideProjectView.qml +++ b/qml/ClideProjectView.qml @@ -15,25 +15,14 @@ SplitView { // Path to the directory of the project opened in clide. required property string projectDir - Layout.fillHeight: true - Layout.fillWidth: true anchors.fill: parent // Customized handle to drag between the Navigation and the Editor. - handle: Rectangle { + handle: ClideHandle { id: verticalSplitHandle - border.color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter - color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter - implicitWidth: 8 - radius: 2.5 - - // Execute these behaviors when the color is changed. - Behavior on color { - ColorAnimation { - duration: 400 - } - } + hovered: SplitHandle.hovered + pressed: SplitHandle.pressed } Rectangle { diff --git a/qml/Components/ClideHandle.qml b/qml/Components/ClideHandle.qml index 182e7be..17924fe 100644 --- a/qml/Components/ClideHandle.qml +++ b/qml/Components/ClideHandle.qml @@ -16,7 +16,7 @@ Rectangle { } else if (hovered) { return RustColors.hovered; } else { - return "black"; + return "transparent"; } } required property bool hovered @@ -25,6 +25,7 @@ Rectangle { border.color: currentColor color: currentColor implicitHeight: 8 + implicitWidth: 8 radius: 2.5 opacity: root.hovered ? 1.0 : 0.0 diff --git a/qml/main.qml b/qml/main.qml index d4facbc..83458cd 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -15,18 +15,13 @@ ApplicationWindow { required property string appContextPath height: 800 - title: "CLIDE" + title: "Clide" visible: true width: 1200 menuBar: ClideMenuBar { } - MessageDialog { - id: errorDialog - - title: qsTr("Error") - } ClideProjectView { id: clideProjectView