clide/qml/ProjectView/ClideProjectView.qml

58 lines
1.5 KiB
QML
Raw Normal View History

2025-03-29 17:59:17 -04:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "../Editor"
2025-03-30 11:20:21 -04:00
import clide.module 1.0
2025-03-29 17:59:17 -04:00
SplitView {
Layout.fillHeight: true
Layout.fillWidth: true
anchors.fill: parent
// Customized handle to drag between the Navigation and the Editor.
handle: Rectangle {
2025-03-30 11:20:21 -04:00
border.color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter
color: SplitHandle.pressed ? RustColors.pressed : SplitHandle.hovered ? RustColors.hovered : RustColors.gutter
2025-03-29 17:59:17 -04:00
implicitWidth: 8
2025-03-30 11:20:21 -04:00
radius: 2.5
2025-03-29 17:59:17 -04:00
2025-03-30 11:20:21 -04:00
// Execute these behaviors when the color is changed.
Behavior on color {
ColorAnimation {
duration: 400
2025-03-29 17:59:17 -04:00
}
}
}
Rectangle {
id: navigationView
SplitView.fillHeight: true
SplitView.preferredWidth: 200
2025-03-30 11:20:21 -04:00
color: RustColors.explorer_background
2025-03-29 17:59:17 -04:00
StackLayout {
anchors.fill: parent
// Shows the help text.
TextArea {
placeholderText: qsTr("File system view placeholder")
placeholderTextColor: "white"
readOnly: true
wrapMode: TextArea.Wrap
}
// TODO: Shows the files on the file system.
// ClideTreeView {
// id: fileSystemView
// color: Colors.surface1
// onFileClicked: path => root.currentFilePath = path
// }
}
}
ClideEditor {
}
}