17 #ifndef _OZONE_THEME_H 18 #define _OZONE_THEME_H 23 #include "../../../retroarch.h" 25 #define HEX_R(hex) ((hex >> 16) & 0xFF) * (1.0f / 255.0f) 26 #define HEX_G(hex) ((hex >> 8 ) & 0xFF) * (1.0f / 255.0f) 27 #define HEX_B(hex) ((hex >> 0 ) & 0xFF) * (1.0f / 255.0f) 29 #define COLOR_HEX_TO_FLOAT(hex, alpha) { \ 30 HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \ 31 HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \ 32 HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \ 33 HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha \ 36 #define COLOR_TEXT_ALPHA(color, alpha) (color & 0xFFFFFF00) | alpha 39 1.00, 1.00, 1.00, 1.00,
40 1.00, 1.00, 1.00, 1.00,
41 1.00, 1.00, 1.00, 1.00,
42 1.00, 1.00, 1.00, 1.00,
46 0.00, 0.00, 0.00, 0.75,
47 0.00, 0.00, 0.00, 0.75,
48 0.00, 0.00, 0.00, 0.75,
49 0.00, 0.00, 0.00, 0.75,
53 0.00, 0.00, 0.00, 0.15,
54 0.00, 0.00, 0.00, 0.15,
55 0.00, 0.00, 0.00, 0.15,
56 0.00, 0.00, 0.00, 0.15,
60 0.94, 0.94, 0.94, 1.00,
61 0.94, 0.94, 0.94, 1.00,
62 0.94, 0.94, 0.94, 1.00,
63 0.94, 0.94, 0.94, 1.00,
67 0.94, 0.94, 0.94, 1.00,
68 0.94, 0.94, 0.94, 1.00,
69 0.922, 0.922, 0.922, 1.00,
70 0.922, 0.922, 0.922, 1.00,
74 0.922, 0.922, 0.922, 1.00,
75 0.922, 0.922, 0.922, 1.00,
76 0.94, 0.94, 0.94, 1.00,
77 0.94, 0.94, 0.94, 1.00,
90 0.18, 0.18, 0.18, 1.00,
91 0.18, 0.18, 0.18, 1.00,
95 0.18, 0.18, 0.18, 1.00,
96 0.18, 0.18, 0.18, 1.00,
108 0.690, 0.690, 0.690, 0.75,
109 0.690, 0.690, 0.690, 0.75,
110 0.922, 0.922, 0.922, 1.0,
111 0.922, 0.922, 0.922, 1.0
115 0.176, 0.176, 0.176, 0.75,
116 0.176, 0.176, 0.176, 0.75,
117 0.178, 0.178, 0.178, 1.0,
118 0.178, 0.178, 0.178, 1.0,
static float ozone_border_1_dark[16]
Definition: ozone_theme.h:105
void ozone_set_color_theme(ozone_handle_t *ozone, unsigned color_theme)
Definition: ozone_theme.c:89
float * sidebar_background
Definition: ozone_theme.h:143
float selection[16]
Definition: ozone_theme.h:130
ozone_theme_t ozone_theme_dark
Definition: ozone_theme.c:50
static float ozone_sidebar_gradient_bottom_dark[16]
Definition: ozone_theme.h:94
static float ozone_backdrop[16]
Definition: ozone_theme.h:45
static float ozone_border_0_light[16]
Definition: ozone_theme.h:101
float message_background[16]
Definition: ozone_theme.h:135
uint32_t text_selected_rgba
Definition: ozone_theme.h:139
ozone_theme_t ozone_theme_light
Definition: ozone_theme.c:21
ozone_theme_t * ozone_themes[]
Definition: ozone_theme.c:79
uintptr_t menu_texture_item
Definition: menu_driver.h:348
ozone_theme_t * ozone_default_theme
Definition: ozone_theme.c:87
static float ozone_osk_backdrop[16]
Definition: ozone_theme.h:52
float * sidebar_top_gradient
Definition: ozone_theme.h:144
static float ozone_background_libretro_running_dark[16]
Definition: ozone_theme.h:114
static float ozone_sidebar_gradient_bottom_light[16]
Definition: ozone_theme.h:73
Definition: ozone_theme.h:121
static float ozone_sidebar_background_light[16]
Definition: ozone_theme.h:59
float * sidebar_bottom_gradient
Definition: ozone_theme.h:145
unsigned last_color_theme
Definition: ozone_theme.c:85
const char * name
Definition: ozone_theme.h:155
static float ozone_border_0_dark[16]
Definition: ozone_theme.h:104
uint32_t text_rgba
Definition: ozone_theme.h:138
static float ozone_sidebar_background_dark[16]
Definition: ozone_theme.h:80
struct ozone_theme ozone_theme_t
static float ozone_pure_white[16]
Definition: ozone_theme.h:38
float selection_border[16]
Definition: ozone_theme.h:131
static float ozone_background_libretro_running_light[16]
Definition: ozone_theme.h:107
#define COLOR_HEX_TO_FLOAT(hex, alpha)
Definition: ozone_theme.h:29
static float ozone_sidebar_gradient_top_dark[16]
Definition: ozone_theme.h:87
float entries_icon[16]
Definition: ozone_theme.h:133
Definition: ozone_texture.h:49
const GLuint * textures
Definition: glext.h:9001
float * cursor_border_0
Definition: ozone_theme.h:150
float * background_libretro_running
Definition: ozone_theme.h:125
float background[16]
Definition: ozone_theme.h:124
float text[16]
Definition: ozone_theme.h:129
float header_footer_separator[16]
Definition: ozone_theme.h:128
float entries_border[16]
Definition: ozone_theme.h:132
unsigned ozone_themes_count
Definition: ozone_theme.c:84
bool last_use_preferred_system_color_theme
Definition: ozone_theme.c:86
uint32_t text_sublabel_rgba
Definition: ozone_theme.h:140
float * cursor_border_1
Definition: ozone_theme.h:151
static float ozone_sidebar_gradient_top_light[16]
Definition: ozone_theme.h:66
static float ozone_border_1_light[16]
Definition: ozone_theme.h:102
float text_selected[16]
Definition: ozone_theme.h:134
unsigned int uint32_t
Definition: stdint.h:126
unsigned ozone_get_system_theme()
Definition: ozone_theme.c:121