summaryrefslogtreecommitdiff
path: root/Button/Primary.ui.qml
blob: 831430a69ae07154d6f18e34202af801b8b3b812 (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
27
28
import QtQuick 2.15
import QtQuick.Controls 2.15
import Bootstrap 5.3

Button {
	id: button
	horizontalPadding: 16
	verticalPadding: 8
	font: Bootstrap.btnFont
	contentItem: Text {
		text: button.text
		font: button.font
		color: Bootstrap.btnColor
		horizontalAlignment: Text.AlignHCenter
		verticalAlignment: Text.AlignVCenter
	}
	background: Rectangle {
		color: button.down ? Bootstrap.btnActiveBG : button.enabled
			? Bootstrap.btnBg : Bootstrap.btnDisabledBg
		border {
			color: button.down ? Bootstrap.btnActiveBorderColor
				: button.enabled ? Bootstrap.btnBorderColor
				: Bootstrap.btnDisabledBorderColor
			width: 1
		}
		radius: 5.2
	}
}