Compare commits
No commits in common. "fdfc8d3fd8eabbd43ac17a8d603670c9eab3e502" and "4cc43916cbb55030a4df9482311b1180109d6f0e" have entirely different histories.
fdfc8d3fd8
...
4cc43916cb
@ -8,16 +8,10 @@ import QtQuick.Controls
|
||||
import clide.module 1.0
|
||||
|
||||
MenuBar {
|
||||
// Background for this MenuBar.
|
||||
background: Rectangle {
|
||||
color: RustColors.menubar
|
||||
border.color: RustColors.explorer_background
|
||||
}
|
||||
|
||||
// Base settings for each Menu.
|
||||
component ClideMenu : Menu {
|
||||
background: Rectangle {
|
||||
color: RustColors.explorer_background
|
||||
color: RustColors.menubar
|
||||
implicitWidth: 100
|
||||
radius: 2
|
||||
}
|
||||
@ -29,7 +23,7 @@ MenuBar {
|
||||
|
||||
background: Rectangle {
|
||||
color: root.hovered ? RustColors.hovered : RustColors.unhovered
|
||||
radius: 1.0
|
||||
radius: 2.5
|
||||
}
|
||||
contentItem: IconLabel {
|
||||
color: "black"
|
||||
@ -38,6 +32,13 @@ MenuBar {
|
||||
}
|
||||
}
|
||||
|
||||
// Background for this MenuBar.
|
||||
background: Rectangle {
|
||||
color: RustColors.menubar
|
||||
border.color: RustColors.menubar_border
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// File Menu
|
||||
Action {
|
||||
@ -78,7 +79,7 @@ MenuBar {
|
||||
MenuSeparator {
|
||||
background: Rectangle {
|
||||
border.color: color
|
||||
color: RustColors.explorer_background
|
||||
color: RustColors.menubar_border
|
||||
implicitHeight: 3
|
||||
implicitWidth: 200
|
||||
}
|
||||
|
||||
@ -59,24 +59,6 @@ SplitView {
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
onSingleTapped: (eventPoint, button) => {
|
||||
contextMenu.popup()
|
||||
}
|
||||
}
|
||||
|
||||
Menu {
|
||||
id: contextMenu
|
||||
Action {
|
||||
text: qsTr("Reset root index")
|
||||
onTriggered: {
|
||||
console.log("Resetting root directory: " + clideTreeView.originalRootDirectory)
|
||||
clideTreeView.rootDirectory = clideTreeView.originalRootDirectory
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ClideTreeView {
|
||||
|
||||
@ -19,7 +19,13 @@ ApplicationWindow {
|
||||
|
||||
required property string appContextPath
|
||||
|
||||
menuBar: ClideMenuBar { }
|
||||
menuBar: ClideMenuBar {
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: RustColors.gutter
|
||||
}
|
||||
|
||||
MessageDialog {
|
||||
id: errorDialog
|
||||
|
||||
@ -75,7 +75,7 @@ impl Default for RustColorsImpl {
|
||||
hovered: QColor::try_from("#303234").unwrap(),
|
||||
unhovered: QColor::try_from("#3c3f41").unwrap(),
|
||||
pressed: QColor::try_from("#4b4f51").unwrap(),
|
||||
menubar: QColor::try_from("#262626").unwrap(),
|
||||
menubar: QColor::try_from("#3c3f41").unwrap(),
|
||||
menubar_border: QColor::try_from("#575757").unwrap(),
|
||||
scrollbar: QColor::try_from("#4b4f51").unwrap(),
|
||||
scrollbar_active: QColor::try_from("#4b4f51").unwrap(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user