Clean up ClideHandle.

This commit is contained in:
2026-02-08 10:08:47 -05:00
parent a63acb18fc
commit 344efc0042
3 changed files with 6 additions and 21 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -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