mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-13 22:31:57 +00:00
(MaterialUI) Allow for more themes later on
This commit is contained in:
parent
7d73e17b6f
commit
f94a8743a1
@ -806,7 +806,6 @@ static void mui_frame(void *data)
|
|||||||
char title_msg[256] = {0};
|
char title_msg[256] = {0};
|
||||||
bool background_rendered = false;
|
bool background_rendered = false;
|
||||||
bool libretro_running = menu_display_libretro_running();
|
bool libretro_running = menu_display_libretro_running();
|
||||||
bool DARK_THEME = false;
|
|
||||||
float *header_bg_color = blue_bg;
|
float *header_bg_color = blue_bg;
|
||||||
float *highlighted_entry_color = lightblue_bg;
|
float *highlighted_entry_color = lightblue_bg;
|
||||||
float *footer_bg_color = white_bg;
|
float *footer_bg_color = white_bg;
|
||||||
@ -823,30 +822,32 @@ static void mui_frame(void *data)
|
|||||||
if (!mui)
|
if (!mui)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DARK_THEME = settings->menu.materialui.menu_color_theme;
|
|
||||||
|
|
||||||
clearcolor.r = 1.0f;
|
clearcolor.r = 1.0f;
|
||||||
clearcolor.g = 1.0f;
|
clearcolor.g = 1.0f;
|
||||||
clearcolor.b = 1.0f;
|
clearcolor.b = 1.0f;
|
||||||
clearcolor.a = 0.75f;
|
clearcolor.a = 0.75f;
|
||||||
|
|
||||||
if (DARK_THEME)
|
switch (settings->menu.materialui.menu_color_theme)
|
||||||
{
|
{
|
||||||
header_bg_color = greyish_blue;
|
case 0:
|
||||||
highlighted_entry_color = grey_bg;
|
break;
|
||||||
footer_bg_color = almost_black;
|
case 1: /* DARK */
|
||||||
body_bg_color = almost_black;
|
header_bg_color = greyish_blue;
|
||||||
|
highlighted_entry_color = grey_bg;
|
||||||
|
footer_bg_color = almost_black;
|
||||||
|
body_bg_color = almost_black;
|
||||||
|
|
||||||
font_normal_color = 0xffffffff;
|
font_normal_color = 0xffffffff;
|
||||||
font_hover_color = 0x00000000;
|
font_hover_color = 0x00000000;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TODO/FIXME - Maybe make this track the footer's bg color or vice-versa
|
TODO/FIXME - Maybe make this track the footer's bg color or vice-versa
|
||||||
e.g. clearcolor.r = &footer_bg_color[0]; clearcolor.g = &footer_bg_color[4];
|
e.g. clearcolor.r = &footer_bg_color[0]; clearcolor.g = &footer_bg_color[4];
|
||||||
*/
|
*/
|
||||||
clearcolor.r = 0.13f;
|
clearcolor.r = 0.13f;
|
||||||
clearcolor.g = 0.13f;
|
clearcolor.g = 0.13f;
|
||||||
clearcolor.b = 0.13f;
|
clearcolor.b = 0.13f;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
video_driver_get_size(&width, &height);
|
video_driver_get_size(&width, &height);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user