clock size relative to text

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

View file

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

View file

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