forked from Shinonome/dots-hyprland
settings: add 24h/12h time format config
This commit is contained in:
@@ -199,4 +199,36 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
title: "Time"
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
// Format
|
||||||
|
ContentSubsectionLabel {
|
||||||
|
text: "Time format"
|
||||||
|
}
|
||||||
|
ConfigSelectionArray {
|
||||||
|
currentValue: Config.options.time.format
|
||||||
|
configOptionName: "time.format"
|
||||||
|
onSelected: newValue => {
|
||||||
|
Config.options.time.format = newValue;
|
||||||
|
}
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
displayName: "24h",
|
||||||
|
value: "hh:mm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: "12h am/pm",
|
||||||
|
value: "h:mm ap"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: "12h AM/PM",
|
||||||
|
value: "h:mm AP"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user