1786925198
This commit is contained in:
@@ -82,24 +82,31 @@ component Clock {
|
|||||||
component Battery {
|
component Battery {
|
||||||
in property <BatteryData> battery;
|
in property <BatteryData> battery;
|
||||||
|
|
||||||
VerticalLayout {
|
HorizontalLayout {
|
||||||
alignment: center;
|
Image {
|
||||||
padding-left: 5px;
|
source: Icons.battery_unknown;
|
||||||
padding-right: StyleMetrics.layout-padding;
|
colorize: MaterialPalette.primary;
|
||||||
|
|
||||||
Text {
|
|
||||||
text: battery.state;
|
|
||||||
height: 16px;
|
|
||||||
font-weight: 100;
|
|
||||||
horizontal-alignment: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
VerticalLayout {
|
||||||
text: "\{battery.percent}%";
|
alignment: center;
|
||||||
font-size: 19px;
|
padding-left: 5px;
|
||||||
height: 19px;
|
padding-right: StyleMetrics.layout-padding;
|
||||||
font-weight: 500;
|
|
||||||
horizontal-alignment: left;
|
Text {
|
||||||
|
text: battery.state;
|
||||||
|
height: 16px;
|
||||||
|
font-weight: 100;
|
||||||
|
horizontal-alignment: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: "\{battery.percent}%";
|
||||||
|
font-size: 19px;
|
||||||
|
height: 19px;
|
||||||
|
font-weight: 500;
|
||||||
|
horizontal-alignment: left;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user