summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 18:49:11 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 18:49:11 +0800
commit8efb63f2a2c09d9f885222d0ce9f689263a057b4 (patch)
tree77b491ab0b310fdf0c0fba589071bd78a8afcc6e
parentb81852f3c4d35cb2aa851ae3cac17a1061470961 (diff)
Mode button icon color is part of the CSS
-rw-r--r--Button/Sm.ui.qml4
-rw-r--r--Header.ui.qml16
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")