summaryrefslogtreecommitdiff
path: root/Button/Primary.ui.qml
blob: 5388eb7750a7c801f29335a2309a9f0f494c1c64 (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 Eduport 1.4

Btn {
	id: button
	background: Rectangle {
		color: button.down ? Eduport.bsBtnPrimaryActiveBG
			: button.enabled
			? Eduport.bsBtnPrimaryBg
			: Eduport.bsBtnPrimaryDisabledBg
		border {
			width: Eduport.bsBtnBorderWidth
			color: button.down
				? Eduport.bsBtnPrimaryActiveBorderColor
				: button.enabled
				? Eduport.bsBtnPrimaryBorderColor
				: Eduport.bsBtnPrimaryDisabledBorderColor
		}
		radius: Eduport.bsBtnBorderRadius
	}
}