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:
parent
8d4efb6cf2
commit
91c724dc19
4 changed files with 63 additions and 92 deletions
|
@ -64,11 +64,6 @@ static void skin_set_background(struct screen* display, int mode, int skin){
|
|||
white_background(display);
|
||||
}
|
||||
|
||||
static void skin_restore_background(struct screen* display, int mode, int skin){
|
||||
if(skin_require_black_background(mode, skin) )
|
||||
white_background(display);
|
||||
}
|
||||
|
||||
void clock_draw_set_colors(void){
|
||||
FOR_NB_SCREENS(i)
|
||||
skin_set_background(rb->screens[i],
|
||||
|
@ -76,15 +71,6 @@ void clock_draw_set_colors(void){
|
|||
clock_settings.skin[clock_settings.mode]);
|
||||
}
|
||||
|
||||
void clock_draw_restore_colors(void){
|
||||
FOR_NB_SCREENS(i){
|
||||
skin_restore_background(rb->screens[i],
|
||||
clock_settings.mode,
|
||||
clock_settings.skin[clock_settings.mode]);
|
||||
rb->screens[i]->update();
|
||||
}
|
||||
}
|
||||
|
||||
void clock_draw(struct screen* display, struct time* time,
|
||||
struct counter* counter){
|
||||
if(!show_counter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue