clock size relative to text

This commit is contained in:
Benjamin Palko 2025-07-19 23:30:36 -04:00
parent 4af55f8117
commit 6653588589
2 changed files with 2 additions and 3 deletions

View file

@ -28,7 +28,6 @@ Singleton {
id: clock id: clock
property int fontSize: 14 property int fontSize: 14
property int width: 130
property int height: 30 property int height: 30
property int horizontalPadding: 8 property int horizontalPadding: 8
property int verticalPadding: 6 property int verticalPadding: 6
@ -38,6 +37,7 @@ Singleton {
id: workspace id: workspace
property int spacing: 5 property int spacing: 5
property int iconSize: 18
property int width: 30 property int width: 30
property int height: 30 property int height: 30
property int verticalPadding: 6 property int verticalPadding: 6

View file

@ -7,12 +7,11 @@ import "../../../config/"
Item { Item {
id: root id: root
implicitWidth: Dimensions.clock.width implicitWidth: childrenRect.width
implicitHeight: Dimensions.clock.height implicitHeight: Dimensions.clock.height
StyledLabel { StyledLabel {
anchors.fill: parent anchors.fill: parent
anchors.centerIn: parent
} }
StyledText { StyledText {