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

Btn {
	id: button
	background: Rectangle {
		color: button.down ? Bootstrap.btnSuccessActiveBG
			: button.enabled
			? Bootstrap.btnSuccessBg
			: Bootstrap.btnSuccessDisabledBg
		border {
			width: Bootstrap.btnBorderWidth
			color: button.down
				? Bootstrap.btnSuccessActiveBorderColor
				: button.enabled
				? Bootstrap.btnSuccessBorderColor
				: Bootstrap.btnSuccessDisabledBorderColor
		}
		radius: Bootstrap.btnBorderRadius
	}
}