clock size relative to text
This commit is contained in:
parent
4af55f8117
commit
6653588589
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue