1
0
Fork 0
forked from len0rd/rockbox

plugins: clock: adjust defaults, don't restore color

- Default to round border in analog mode
- Default to segmented LCD style in digital and binary mode
- Default to date format most fitting for current language
  (instead of D-M-Y)
- Don't forcibly set a light background before menu is
  displayed or when quitting
- Update manual

Change-Id: Ifb6a41bb99701ae8f8cbf5fa0db2a3a332085f43
This commit is contained in:
Christian Soffke 2025-06-08 01:40:57 +02:00
parent 8d4efb6cf2
commit 91c724dc19
4 changed files with 63 additions and 92 deletions

View file

@ -65,7 +65,6 @@ const struct button_mapping* plugin_contexts[]={
*************************/
static void cleanup(void)
{
clock_draw_restore_colors();
if(clock_settings.general.save_settings == 1)
save_settings();
@ -181,7 +180,6 @@ enum plugin_status plugin_start(const void* parameter){
break;
#endif
case ACTION_MENU:
clock_draw_restore_colors();
FOR_NB_SCREENS(i)
rb->viewportmanager_theme_enable(i, true, NULL);
exit_clock=main_menu();
@ -198,7 +196,8 @@ enum plugin_status plugin_start(const void* parameter){
break;
}
if(redraw){
if (redraw && !exit_clock)
{
clock_draw_set_colors();
FOR_NB_SCREENS(i)
clock_draw(rb->screens[i], &time, &counter);