Clean up ClideHandle.
This commit is contained in:
@@ -15,25 +15,14 @@ SplitView {
|
|||||||
// Path to the directory of the project opened in clide.
|
// Path to the directory of the project opened in clide.
|
||||||
required property string projectDir
|
required property string projectDir
|
||||||
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
// Customized handle to drag between the Navigation and the Editor.
|
// Customized handle to drag between the Navigation and the Editor.
|
||||||
handle: Rectangle {
|
handle: ClideHandle {
|
||||||
id: verticalSplitHandle
|
id: verticalSplitHandle
|
||||||
|
|
||||||
border.color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter
|
hovered: SplitHandle.hovered
|
||||||
color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter
|
pressed: SplitHandle.pressed
|
||||||
implicitWidth: 8
|
|
||||||
radius: 2.5
|
|
||||||
|
|
||||||
// Execute these behaviors when the color is changed.
|
|
||||||
Behavior on color {
|
|
||||||
ColorAnimation {
|
|
||||||
duration: 400
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Rectangle {
|
|||||||
} else if (hovered) {
|
} else if (hovered) {
|
||||||
return RustColors.hovered;
|
return RustColors.hovered;
|
||||||
} else {
|
} else {
|
||||||
return "black";
|
return "transparent";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
required property bool hovered
|
required property bool hovered
|
||||||
@@ -25,6 +25,7 @@ Rectangle {
|
|||||||
border.color: currentColor
|
border.color: currentColor
|
||||||
color: currentColor
|
color: currentColor
|
||||||
implicitHeight: 8
|
implicitHeight: 8
|
||||||
|
implicitWidth: 8
|
||||||
radius: 2.5
|
radius: 2.5
|
||||||
opacity: root.hovered ? 1.0 : 0.0
|
opacity: root.hovered ? 1.0 : 0.0
|
||||||
|
|
||||||
|
|||||||
@@ -15,18 +15,13 @@ ApplicationWindow {
|
|||||||
required property string appContextPath
|
required property string appContextPath
|
||||||
|
|
||||||
height: 800
|
height: 800
|
||||||
title: "CLIDE"
|
title: "Clide"
|
||||||
visible: true
|
visible: true
|
||||||
width: 1200
|
width: 1200
|
||||||
|
|
||||||
menuBar: ClideMenuBar {
|
menuBar: ClideMenuBar {
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageDialog {
|
|
||||||
id: errorDialog
|
|
||||||
|
|
||||||
title: qsTr("Error")
|
|
||||||
}
|
|
||||||
ClideProjectView {
|
ClideProjectView {
|
||||||
id: clideProjectView
|
id: clideProjectView
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user