diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-28 19:52:09 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-28 19:52:09 +0800 |
commit | d478b3ed949dab291d8cca45f0acc0eeed95b00b (patch) | |
tree | 4e960f655054cc194329d574f9785ddcf6417fff | |
parent | 862a9519d37b7857b2ed5575aa8a73053111839e (diff) |
Customise the menu separators
-rw-r--r-- | Header.ui.qml | 20 | ||||
-rw-r--r-- | imports/Eduport/Eduport.qml | 4 |
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" |