1
0
Fork 0
forked from len0rd/rockbox

plugins: clock: simplify settings

- Use system time format and remove separate setting
- Hide timer until started & eliminate setting for it
- Simplify menu, reorder settings, keep theme enabled
- Make dialog for resetting settings more consistent
  with other reset dialogs

Change-Id: I0fd38612b0592cd5a650c8985f377acc70a48eb7
This commit is contained in:
Christian Soffke 2025-06-07 20:58:09 +02:00
parent ab161a3d89
commit 8d4efb6cf2
6 changed files with 60 additions and 95 deletions

View file

@ -50,13 +50,13 @@ void digital_clock_draw(struct screen* display,
else
display_colon=true;
if(settings->general.hour_format==H12 && time->hour>12)/* AM/PM format */
if(rb->global_settings->timeformat && time->hour>12)/* AM/PM format */
hour -= 12;
buffer_printf(buffer, buffer_pos, "%02d", hour);
buffer_printf(buffer, buffer_pos, "%c", display_colon?':':' ');
buffer_printf(buffer, buffer_pos, "%02d", time->minute);
if(settings->general.hour_format==H12){
if(rb->global_settings->timeformat){
if(time->hour>=12){
buffer_printf(buffer, buffer_pos, "P");/* PM */
}else{