diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-28 17:33:33 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-28 17:33:33 +0800 |
commit | 07c475dd96d16181834816194f20a0b79f763520 (patch) | |
tree | 5bde2fbfd6f3021d58810047a3e36fd08ac2da17 /Button | |
parent | d43eceadb6df87d13c91389f1bcfac5914a42218 (diff) |
Light/Dark mode buttons start to function
Diffstat (limited to 'Button')
-rw-r--r-- | Button/Sm.ui.qml | 26 |
1 files changed, 26 insertions, 0 deletions
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 + } +} |