From 8efb63f2a2c09d9f885222d0ce9f689263a057b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 28 Mar 2023 18:49:11 +0800 Subject: Mode button icon color is part of the CSS --- Button/Sm.ui.qml | 4 +++- Header.ui.qml | 16 ---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/Button/Sm.ui.qml b/Button/Sm.ui.qml index 909d9c3..4df9bb7 100644 --- a/Button/Sm.ui.qml +++ b/Button/Sm.ui.qml @@ -22,8 +22,10 @@ Button { width: button.icon.width height: button.icon.height } + ColorOverlay { - color: button.icon.color + color: checked + ? Eduport.bsGray800 : Eduport.bsBtnColor source: parent anchors.fill: parent } diff --git a/Header.ui.qml b/Header.ui.qml index 491965f..c51e8e3 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -208,14 +208,6 @@ ToolBar { 16 height: 16 - color: - checked - ? - Eduport - .bsGray800 - : - Eduport - .bsBtnColor } text: qsTr("Light") @@ -237,14 +229,6 @@ ToolBar { 16 height: 16 - color: - checked - ? - Eduport - .bsGray800 - : - Eduport - .bsBtnColor } text: qsTr("Dark") -- cgit v1.2.3