summaryrefslogtreecommitdiff
path: root/Button/Primary.ui.qml
blob: 810c2f83eaca094445cffbb5c4c51ecd1d9cf7f0 (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
	}
}