Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

gui: splash(-progress): use theme colors, +1px spacing

Change-Id: I5867b1fd3086bda2973f75a3ad1c1223e22dc0ae

+12 -4
+12 -4
apps/gui/splash.c
··· 37 37 38 38 #define MAXLINES (LCD_HEIGHT/6) 39 39 #define MAXBUFFER 512 40 - #define RECT_SPACING 2 40 + #define RECT_SPACING 3 41 41 #define SPLASH_MEMORY_INTERVAL (HZ) 42 42 43 43 static bool splash_internal(struct screen * screen, const char *fmt, va_list ap, ··· 128 128 } 129 129 130 130 /* prepare viewport 131 - * First boundaries, then the grey filling, then the black border and finally 131 + * First boundaries, then the background filling, then the border and finally 132 132 * the text*/ 133 133 134 134 screen->scroll_stop(); ··· 148 148 149 149 vp->flags |= VP_FLAG_ALIGN_CENTER; 150 150 #if LCD_DEPTH > 1 151 + unsigned fg = screen->get_foreground(); 152 + unsigned bg = screen->get_background(); 153 + 154 + bool broken = (fg == bg) || 155 + (bg == 63422 && fg == 65535); /* -> iPod reFresh themes from '22 */ 156 + 151 157 if (screen->depth > 1) 152 158 { 153 159 vp->drawmode = DRMODE_FG; 154 160 /* can't do vp->fg_pattern here, since set_foreground does a bit more on 155 161 * greyscale */ 156 - screen->set_foreground(SCREEN_COLOR_TO_NATIVE(screen, LCD_LIGHTGRAY)); 162 + screen->set_foreground(broken ? SCREEN_COLOR_TO_NATIVE(screen, LCD_LIGHTGRAY) : 163 + bg); /* gray as fallback for broken themes */ 157 164 } 158 165 else 159 166 #endif ··· 165 172 if (screen->depth > 1) 166 173 /* can't do vp->fg_pattern here, since set_foreground does a bit more on 167 174 * greyscale */ 168 - screen->set_foreground(SCREEN_COLOR_TO_NATIVE(screen, LCD_BLACK)); 175 + screen->set_foreground(broken ? SCREEN_COLOR_TO_NATIVE(screen, LCD_BLACK) : 176 + fg); /* black as fallback for broken themes */ 169 177 else 170 178 #endif 171 179 vp->drawmode = DRMODE_SOLID;