summaryrefslogtreecommitdiff
path: root/Bootstrap/Button/Primary.ui.qml
blob: e99f56bdb7309cd68e844272a89434cbfe70ca3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick 2.15
import QtQuick.Controls 2.15
import Bootstrap 5.3

Button {
	id: button
	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
		radius: 8
	}
}