summaryrefslogtreecommitdiff
path: root/Button/Btn.ui.qml
blob: cdf730b19d67b9300dbf34537d135acc8a927eea (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
import QtQuick 2.15
import QtQuick.Controls 2.15
import Bootstrap 5.3

Button {
	id: button
	horizontalPadding: Bootstrap.btnPaddingX
	verticalPadding: Bootstrap.btnPaddingY
	font: Bootstrap.btnFont
	contentItem: Text {
		text: button.text
		font: button.font
		color: Bootstrap.btnColor
		horizontalAlignment: Text.AlignHCenter
		verticalAlignment: Text.AlignVCenter
	}
	background: Rectangle {
		color: Bootstrap.btnBg
		border {
			width: Bootstrap.btnBorderWidth
			color: Bootstrap.btnBorderColor
		}
		radius: Bootstrap.btnBorderRadius
	}
}