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

Button {
	property int currentIndex: 0

	height: 38
	horizontalPadding: 16
	verticalPadding: 8
	contentItem: Text {
		text: modelData
		color: index == currentIndex ? "white" : "#066ac9"
		font {
			family: Bootstrap.bodyFont.family
			pointSize: Bootstrap.bodyFont.pointSize
		}
	}
	background: Rectangle {
		color: index == currentIndex ? "#066ac9" : "transparent"
		radius: 5.2
	}
}