feat(StatusSwitchTabButton): Added property `pixelSize`

This commit is contained in:
Noelia 2022-06-27 13:32:01 +02:00 committed by Noelia
parent a8b9020a4b
commit 29a61c7f5c
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ import StatusQ.Core.Theme 0.1
TabButton {
id: statusSwitchTabButton
property int fontPixelSize: 15
contentItem: Item {
height: 36
MouseArea {
@ -26,7 +28,7 @@ TabButton {
Theme.palette.statusSwitchTab.selectedTextColor :
Theme.palette.statusSwitchTab.textColor
font.weight: Font.Medium
font.pixelSize: 15
font.pixelSize: statusSwitchTabButton.fontPixelSize
horizontalAlignment: Text.AlignHCenter
anchors.centerIn: parent
}