From 07c475dd96d16181834816194f20a0b79f763520 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 17:33:33 +0800 Subject: Light/Dark mode buttons start to function --- Button/Sm.ui.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Button/Sm.ui.qml (limited to 'Button') diff --git a/Button/Sm.ui.qml b/Button/Sm.ui.qml new file mode 100644 index 0000000..b4c5985 --- /dev/null +++ b/Button/Sm.ui.qml @@ -0,0 +1,26 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import Eduport 1.4 + +Button { + id: button + horizontalPadding: 12.8 + verticalPadding: 6.4 + font { + family: Eduport.haveRoboto + ? "Roboto" : Eduport.robotoMedium.name + weight: Font.Medium + pointSize: 13 + } + contentItem: Text { + text: button.text + font: button.font + color: checked ? Eduport.bsGray800 : Eduport.bsBtnColor + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + background: Rectangle { + color: checked ? Eduport.bsBodyBg : Eduport.bsBtnBg + radius: 3.2 + } +} -- cgit v1.2.3