feat(StatusSwitchTabButton): Added property `pixelSize`
This commit is contained in:
parent
a8b9020a4b
commit
29a61c7f5c
|
@ -8,6 +8,8 @@ import StatusQ.Core.Theme 0.1
|
||||||
TabButton {
|
TabButton {
|
||||||
id: statusSwitchTabButton
|
id: statusSwitchTabButton
|
||||||
|
|
||||||
|
property int fontPixelSize: 15
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
height: 36
|
height: 36
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
@ -26,7 +28,7 @@ TabButton {
|
||||||
Theme.palette.statusSwitchTab.selectedTextColor :
|
Theme.palette.statusSwitchTab.selectedTextColor :
|
||||||
Theme.palette.statusSwitchTab.textColor
|
Theme.palette.statusSwitchTab.textColor
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
font.pixelSize: 15
|
font.pixelSize: statusSwitchTabButton.fontPixelSize
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue