diff options
-rw-r--r-- | Header.ui.qml | 4 | ||||
-rw-r--r-- | imports/Eduport/Eduport.qml | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Header.ui.qml b/Header.ui.qml index c51e8e3..0096858 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -99,6 +99,10 @@ ToolBar { id: rectangle anchors.fill: parent radius: 5.2 + color: Eduport.mode + == Eduport.Mode.Light + ? Eduport.bsBodyBg + : Eduport.bsDark } DrpShdw.Box { diff --git a/imports/Eduport/Eduport.qml b/imports/Eduport/Eduport.qml index 933ef90..3eb5a25 100644 --- a/imports/Eduport/Eduport.qml +++ b/imports/Eduport/Eduport.qml @@ -41,7 +41,10 @@ QtObject { }) readonly property color bsPrimary: "#066ac9" - property color bsLight: "#f5f7f9" + property color bsLight: mode == Eduport.Mode.Light + ? "#f5f7f9" : "#2a2c31" + property color bsDark: mode == Eduport.Mode.Light + ? "#24292d" : "#0f0f10" readonly property real bsBadgeFontSize: 13.6 |