summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Header.ui.qml20
-rw-r--r--imports/Eduport/Eduport.qml4
2 files changed, 22 insertions, 2 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index 0096858..c951096 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -68,6 +68,20 @@ ToolBar {
}
}
+ Component {
+ id: menuSeparator
+ MenuSeparator {
+ contentItem: Rectangle {
+ implicitWidth: menu.width
+ implicitHeight: 1
+ color: Eduport.mode
+ == Eduport.Mode.Light
+ ? Eduport.bsGray500
+ : Eduport.bsGray300
+ }
+ }
+ }
+
ToolButton {
id: profile
padding: 0
@@ -148,7 +162,8 @@ ToolBar {
}
}
- MenuSeparator {
+ Loader {
+ sourceComponent: menuSeparator
}
Action {
@@ -171,7 +186,8 @@ ToolBar {
text: qsTr("Sign Out")
}
- MenuSeparator {
+ Loader {
+ sourceComponent: menuSeparator
}
Item {
diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml
index 3eb5a25..d6fac62 100644
--- a/imports/Eduport/Eduport.qml
+++ b/imports/Eduport/Eduport.qml
@@ -87,6 +87,10 @@ QtObject {
readonly property color bsBtnSuccessDisabledBorderColor:
bsBtnSuccessDisabledBg
+ property color bsGray300: mode == Eduport.Mode.Light
+ ? "#dde0e3" : "#3e3e40"
+ property color bsGray500: mode == Eduport.Mode.Light
+ ? "#9a9ea4" : "#bfc0c9"
property color bsGray800: mode == Eduport.Mode.Light
? "#24292d" : "#f7f5f5"