Skip to content

Commit ec076cd

Browse files
authored
Merge pull request #13430 from ronso0/skins-fix-time-display
Skins: fix time display to allow AM/PM
2 parents a4d84d1 + 49c20a5 commit ec076cd

4 files changed

Lines changed: 25 additions & 19 deletions

File tree

res/skins/Deere/tool_bar.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
<Time>
3535
<TooltipId>time</TooltipId>
3636
<ObjectName>Time</ObjectName>
37-
<Size>52f,20f</Size>
38-
<CustomFormat>hh:mm</CustomFormat>
37+
<Size>56f,20f</Size>
3938
</Time>
4039

4140
<Template src="skin:vumeter_latency.xml">

res/skins/LateNight/toolbar.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
<Children>
145145
<Time>
146146
<TooltipId>time</TooltipId>
147-
<CustomFormat>hh:mm</CustomFormat>
148147
</Time>
149148
</Children>
150149
</WidgetGroup>

res/skins/Shade/mixer_panel.xml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -496,21 +496,30 @@
496496
Text- Clock display
497497
**********************************************
498498
-->
499-
<Time>
500-
<TooltipId>time</TooltipId>
499+
<WidgetGroup>
500+
<Pos>101,14</Pos>
501+
<Size>50f,14f</Size>
502+
<Layout>horizontal</Layout>
501503
<Style>
502-
QLabel {
503-
font-size: 10px;
504-
font-weight: bold;
505-
background-color: transparent;
506-
color: #191F24;
507-
text-align:center;
504+
WWidgetGroup {
505+
align: center;
508506
}
509507
</Style>
510-
<Pos>113,14</Pos>
511-
<CustomFormat>hh:mm</CustomFormat>
512-
<ShowSeconds>false</ShowSeconds>
513-
</Time>
508+
<Children>
509+
<Time>
510+
<TooltipId>time</TooltipId>
511+
<Style>
512+
QLabel {
513+
font-size: 10px;
514+
font-weight: bold;
515+
background-color: transparent;
516+
color: #191F24;
517+
text-align:center;
518+
}
519+
</Style>
520+
</Time>
521+
</Children>
522+
</WidgetGroup>
514523

515524
<StatusLight>
516525
<Pos>113,27</Pos>

res/skins/Tango/topbar.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ Description:
281281

282282
<WidgetGroup><!-- Clock + latency display -->
283283
<ObjectName>ClockBox</ObjectName>
284-
<Size>52f,28f</Size>
284+
<MinimumSize>52,28</MinimumSize>
285+
<MaximumSize>64,28</MaximumSize>
286+
<SizePolicy>max</SizePolicy>
285287
<Layout>vertical</Layout>
286288
<Children>
287289

@@ -292,9 +294,6 @@ Description:
292294
<Time>
293295
<TooltipId>time</TooltipId>
294296
<ObjectName>Clock</ObjectName>
295-
<!-- <ShowSeconds>false</ShowSeconds>
296-
<ClockFormat>12AP</ClockFormat>
297-
This has no effect, neither has 'text-align' in qss. -->
298297
<Align>center</Align>
299298
</Time>
300299
</Children>

0 commit comments

Comments
 (0)