summaryrefslogtreecommitdiff
path: root/Header.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 18:15:45 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-28 18:15:45 +0800
commit0b5e8d11af518394e5858321262e2f00ec8d78d5 (patch)
treeed5ce8c29bd224408a10902aab548d75a8680409 /Header.ui.qml
parent07c475dd96d16181834816194f20a0b79f763520 (diff)
Mode button icons
but somehow they aren't showing up yet
Diffstat (limited to 'Header.ui.qml')
-rw-r--r--Header.ui.qml50
1 files changed, 44 insertions, 6 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index 85fb1c4..bd36d9f 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -201,28 +201,66 @@ ToolBar {
Btn.Sm {
id: light
+ display:
+ AbstractButton.
+ TextBesideIcon
+ icon {
+ source:
+ "Bootstrap/icons/sun.svg"
+ width:
+ 16
+ height:
+ 16
+ color:
+ checked
+ ?
+ Eduport
+ .bsGray800
+ :
+ Eduport
+ .bsBtnColor
+ }
text:
qsTr("Light")
- Layout
- .fillWidth:
- true
checked: Eduport
.mode == Eduport
.Mode.Light
enabled: !checked
+ Layout
+ .fillWidth:
+ true
}
Btn.Sm {
id: dark
+ display:
+ AbstractButton.
+ TextBesideIcon
+ icon {
+ source:
+ "Bootstrap/icons/moon-stars.svg"
+ width:
+ 16
+ height:
+ 16
+ color:
+ checked
+ ?
+ Eduport
+ .bsGray800
+ :
+ Eduport
+ .bsBtnColor
+ }
text:
qsTr("Dark")
- Layout
- .fillWidth:
- true
checked: Eduport
.mode == Eduport
.Mode.Dark
enabled: !checked
+ Layout
+ .fillWidth:
+ true
}
}
}