summaryrefslogtreecommitdiff
path: root/Button/Sm.ui.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Button/Sm.ui.qml')
-rw-r--r--Button/Sm.ui.qml26
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
+ }
+}