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

Btn {
	id: button
	font: Eduport.bodyFont
	contentItem: Text {
		text: modelData
		font: button.font
		color: checked
			? Eduport.navPillsLinkActiveColor : Eduport.bsPrimary
		horizontalAlignment: Text.AlignHCenter
		verticalAlignment: Text.AlignVCenter
	}
	background: Rectangle {
		color: checked
			? Eduport.navPillsLinkActiveBg : Eduport.bsBtnBg
		radius: Eduport.navPillsBorderRadius
	}
}