Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions shell/plugins/bar/widgets/Clock.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BarWidget {
property date displayDate: clock.date

readonly property string activeFormat: alt
? setting("formatAlt", "d MMMM 'W'ww yyyy")
? (bar && bar.vertical ? setting("verticalFormatAlt", "dd\nMMM\n'W'ww\nyyyy") : setting("formatAlt", "d MMMM 'W'ww yyyy"))
: (bar && bar.vertical ? setting("verticalFormat", "HH\n—\nmm") : setting("format", "dddd HH:mm"))
Comment on lines 14 to 16
readonly property string displayText: formatted(displayDate)
readonly property var verticalLines: displayText.split("\n")
Expand Down Expand Up @@ -71,7 +71,7 @@ BarWidget {
Column {
visible: root.vertical
anchors.fill: parent

Repeater {
Comment on lines 73 to 75
model: root.verticalLines

Expand All @@ -81,7 +81,9 @@ BarWidget {
height: Style.bar.iconSlot
text: modelData
fontFamily: button.fontFamily
fontSize: button.fontSize
fontSize: modelData.length > 3
? button.fontSize * 0.9
: button.fontSize
color: button.foreground
}
}
Expand Down