From 0b5e8d11af518394e5858321262e2f00ec8d78d5 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:15:45 +0800 Subject: Mode button icons but somehow they aren't showing up yet --- Header.ui.qml | 50 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 44 insertions(+), 6 deletions(-) (limited to 'Header.ui.qml') 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 } } } -- cgit v1.2.3