summaryrefslogtreecommitdiff
path: root/Button/Sm.ui.qml
blob: b4c598535460b0fd3b5bc4893cd08d77b71a8c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
	}
}