(ozone) New Theme - Twilight Zone

new ozone theme
This commit is contained in:
whorsemaster 2020-10-05 18:17:27 -05:00
parent cd469d3fb2
commit deb13fcc4d
5 changed files with 113 additions and 33 deletions

View File

@ -8556,6 +8556,10 @@ MSG_HASH(
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_HACKING_THE_KERNEL,
"Hacking the Kernel"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_TWILIGHT_ZONE,
"Twilight Zone"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_OZONE,
"Second Thumbnail"

View File

@ -189,6 +189,34 @@ static float ozone_sidebar_gradient_bottom_hacking_the_kernel[16] = {
0.0, 0.13333333, 0.0, 1.0f,
};
static float ozone_background_libretro_running_twilight_zone[16] = {
0.0078431, 0.0, 0.0156862, 0.75f,
0.0078431, 0.0, 0.0156862, 0.75f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
};
static float ozone_sidebar_background_twilight_zone[16] = {
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
};
static float ozone_sidebar_gradient_top_twilight_zone[16] = {
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
};
static float ozone_sidebar_gradient_bottom_twilight_zone[16] = {
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
0.0078431, 0.0, 0.0156862, 1.0f,
};
static float ozone_border_0_light[16] = COLOR_HEX_TO_FLOAT(0x50EFD9, 1.00);
static float ozone_border_1_light[16] = COLOR_HEX_TO_FLOAT(0x0DB6D5, 1.00);
@ -205,8 +233,11 @@ static float ozone_border_1_gruvbox_dark[16] = COLOR_HEX_TO_FLOAT(0xFE8019, 1.0f
static float ozone_border_0_boysenberry[16] = COLOR_HEX_TO_FLOAT(0x50EFD9, 1.00);
static float ozone_border_1_boysenberry[16] = COLOR_HEX_TO_FLOAT(0x0DB6D5, 1.00);
static float ozone_border_0_hacking_the_kernel[16] = COLOR_HEX_TO_FLOAT(0x008c00, 1.0f);
static float ozone_border_1_hacking_the_kernel[16] = COLOR_HEX_TO_FLOAT(0x00e000, 1.0f);
static float ozone_border_0_hacking_the_kernel[16] = COLOR_HEX_TO_FLOAT(0x008C00, 1.0f);
static float ozone_border_1_hacking_the_kernel[16] = COLOR_HEX_TO_FLOAT(0x00E000, 1.0f);
static float ozone_border_0_twilight_zone[16] = COLOR_HEX_TO_FLOAT(0xC3A0E0, 1.0f);
static float ozone_border_1_twilight_zone[16] = COLOR_HEX_TO_FLOAT(0x9B61CC, 1.0f);
ozone_theme_t ozone_theme_light = {
@ -403,6 +434,40 @@ ozone_theme_t ozone_theme_hacking_the_kernel = {
"hacking_the_kernel" /* name */
};
ozone_theme_t ozone_theme_twilight_zone = {
/* Background color */
COLOR_HEX_TO_FLOAT(0x020004, 1.0f), /* background */
ozone_background_libretro_running_twilight_zone, /* background_libretro_running */
/* Float colors for quads and icons */
COLOR_HEX_TO_FLOAT(0x5B5069, 1.0f), /* header_footer_separator */
COLOR_HEX_TO_FLOAT(0xF7F0FA, 1.0f), /* text */
COLOR_HEX_TO_FLOAT(0x232038, 1.0f), /* selection */
COLOR_HEX_TO_FLOAT(0x9B61CC, 1.0f), /* selection_border */
COLOR_HEX_TO_FLOAT(0xC27AFF, 1.0f), /* entries_border */
COLOR_HEX_TO_FLOAT(0xFFFFFF, 1.0f), /* entries_icon */
COLOR_HEX_TO_FLOAT(0xB78CC8, 1.0f), /* text_selected */
COLOR_HEX_TO_FLOAT(0xB78CC8, 1.0f), /* message_background */
/* RGBA colors for text */
0xFDFCFEFF, /* text_rgba */
0xB78CC8FF, /* text_selected_rgba */
0x9A6C99FF, /* text_sublabel_rgba */
/* Sidebar color */
ozone_sidebar_background_twilight_zone, /* sidebar_background */
ozone_sidebar_gradient_top_twilight_zone, /* sidebar_top_gradient */
ozone_sidebar_gradient_bottom_twilight_zone, /* sidebar_bottom_gradient */
/* Fancy cursor colors */
ozone_border_0_twilight_zone, /* cursor_border_0 */
ozone_border_1_twilight_zone, /* cursor_border_1 */
{0}, /* textures */
"twilight_zone" /* name */
};
ozone_theme_t *ozone_themes[] = {
&ozone_theme_light,
@ -410,7 +475,8 @@ ozone_theme_t *ozone_themes[] = {
&ozone_theme_nord,
&ozone_theme_gruvbox_dark,
&ozone_theme_boysenberry,
&ozone_theme_hacking_the_kernel
&ozone_theme_hacking_the_kernel,
&ozone_theme_twilight_zone
};
@ -450,6 +516,9 @@ void ozone_set_color_theme(ozone_handle_t *ozone, unsigned color_theme)
case 5:
theme = &ozone_theme_hacking_the_kernel;
break;
case 6:
theme = &ozone_theme_twilight_zone;
break;
default:
break;
}

View File

@ -70,6 +70,7 @@ extern ozone_theme_t ozone_theme_nord;
extern ozone_theme_t ozone_theme_gruvbox_dark;
extern ozone_theme_t ozone_theme_boysenberry;
extern ozone_theme_t ozone_theme_hacking_the_kernel;
extern ozone_theme_t ozone_theme_twilight_zone;
extern ozone_theme_t *ozone_themes[];

View File

@ -4599,6 +4599,11 @@ static void setting_get_string_representation_uint_ozone_menu_color_theme(
msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_HACKING_THE_KERNEL), len);
break;
case 6:
strlcpy(s,
msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_TWILIGHT_ZONE), len);
break;
case 0:
default:
strlcpy(s,
@ -15120,7 +15125,7 @@ static bool setting_append_list(
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
(*list)[list_info->index - 1].get_string_representation =
&setting_get_string_representation_uint_ozone_menu_color_theme;
menu_settings_list_current_add_range(list, list_info, 0, 5, 1, true, true);
menu_settings_list_current_add_range(list, list_info, 0, 6, 1, true, true);
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_COMBOBOX;
CONFIG_BOOL(

View File

@ -579,6 +579,7 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_GRUVBOX_DARK,
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_BOYSENBERRY,
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_HACKING_THE_KERNEL,
MENU_ENUM_LABEL_VALUE_OZONE_COLOR_THEME_TWILIGHT_ZONE,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME,
MENU_ENUM_LABEL_VALUE_XMB_ICON_THEME_MONOCHROME_INVERTED,