mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 06:22:50 -05:00
lockscreen/greetd: add 0 in front of single digit hours for 12 hour format. greetd: add option to hide profile image (#1247)
* greetd: add lockScreenShowProfileImage option * lockscreen/greetd: for non 24 hour formats, add 0 in front of single digit hours to ensure that everything is always centered properly - previously, it would only appear centered if on a double digit hour. also add getEffectiveTimeFormat function to GreetdSettings. * clock: made pad 12 hour formats optional --------- Co-authored-by: bbedward <bbedward@gmail.com>
This commit is contained in:
@@ -49,6 +49,17 @@ Item {
|
||||
checked: SettingsData.showSeconds
|
||||
onToggled: checked => SettingsData.set("showSeconds", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "time"
|
||||
tags: ["time", "12hour", "format", "padding", "leading", "zero"]
|
||||
settingKey: "padHours12Hour"
|
||||
text: I18n.tr("Pad Hours")
|
||||
description: "02:31 PM vs 2:31 PM"
|
||||
checked: SettingsData.padHours12Hour
|
||||
onToggled: checked => SettingsData.set("padHours12Hour", checked)
|
||||
visible: !SettingsData.use24HourClock
|
||||
}
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
|
||||
Reference in New Issue
Block a user