RetroArch
Classes | Macros | Typedefs | Functions | Variables
ozone_theme.h File Reference
#include "ozone.h"
#include "ozone_texture.h"
#include "../../../retroarch.h"
Include dependency graph for ozone_theme.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ozone_theme
 

Macros

#define HEX_R(hex)   ((hex >> 16) & 0xFF) * (1.0f / 255.0f)
 
#define HEX_G(hex)   ((hex >> 8 ) & 0xFF) * (1.0f / 255.0f)
 
#define HEX_B(hex)   ((hex >> 0 ) & 0xFF) * (1.0f / 255.0f)
 
#define COLOR_HEX_TO_FLOAT(hex, alpha)
 
#define COLOR_TEXT_ALPHA(color, alpha)   (color & 0xFFFFFF00) | alpha
 

Typedefs

typedef struct ozone_theme ozone_theme_t
 

Functions

void ozone_set_color_theme (ozone_handle_t *ozone, unsigned color_theme)
 
unsigned ozone_get_system_theme ()
 

Variables

static float ozone_pure_white [16]
 
static float ozone_backdrop [16]
 
static float ozone_osk_backdrop [16]
 
static float ozone_sidebar_background_light [16]
 
static float ozone_sidebar_gradient_top_light [16]
 
static float ozone_sidebar_gradient_bottom_light [16]
 
static float ozone_sidebar_background_dark [16]
 
static float ozone_sidebar_gradient_top_dark [16]
 
static float ozone_sidebar_gradient_bottom_dark [16]
 
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)
 
static float ozone_border_0_dark [16] = COLOR_HEX_TO_FLOAT(0x198AC6, 1.00)
 
static float ozone_border_1_dark [16] = COLOR_HEX_TO_FLOAT(0x89F1F2, 1.00)
 
static float ozone_background_libretro_running_light [16]
 
static float ozone_background_libretro_running_dark [16]
 
ozone_theme_t ozone_theme_light
 
ozone_theme_t ozone_theme_dark
 
ozone_theme_tozone_themes []
 
unsigned ozone_themes_count
 
unsigned last_color_theme
 
bool last_use_preferred_system_color_theme
 
ozone_theme_tozone_default_theme
 

Macro Definition Documentation

◆ COLOR_HEX_TO_FLOAT

#define COLOR_HEX_TO_FLOAT (   hex,
  alpha 
)
Value:
{ \
HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \
HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \
HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha, \
HEX_R(hex), HEX_G(hex), HEX_B(hex), alpha \
}
#define HEX_G(hex)
Definition: ozone_theme.h:26
#define HEX_B(hex)
Definition: ozone_theme.h:27
static s32 hex(char ch)
Definition: debug.c:111
GLfloat GLfloat GLfloat alpha
Definition: glext.h:6290

◆ COLOR_TEXT_ALPHA

#define COLOR_TEXT_ALPHA (   color,
  alpha 
)    (color & 0xFFFFFF00) | alpha

◆ HEX_B

#define HEX_B (   hex)    ((hex >> 0 ) & 0xFF) * (1.0f / 255.0f)

◆ HEX_G

#define HEX_G (   hex)    ((hex >> 8 ) & 0xFF) * (1.0f / 255.0f)

◆ HEX_R

#define HEX_R (   hex)    ((hex >> 16) & 0xFF) * (1.0f / 255.0f)

Typedef Documentation

◆ ozone_theme_t

typedef struct ozone_theme ozone_theme_t

Function Documentation

◆ ozone_get_system_theme()

unsigned ozone_get_system_theme ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ozone_set_color_theme()

void ozone_set_color_theme ( ozone_handle_t ozone,
unsigned  color_theme 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ last_color_theme

unsigned last_color_theme

◆ last_use_preferred_system_color_theme

bool last_use_preferred_system_color_theme

◆ ozone_backdrop

float ozone_backdrop[16]
static
Initial value:
= {
0.00, 0.00, 0.00, 0.75,
0.00, 0.00, 0.00, 0.75,
0.00, 0.00, 0.00, 0.75,
0.00, 0.00, 0.00, 0.75,
}

◆ ozone_background_libretro_running_dark

float ozone_background_libretro_running_dark[16]
static
Initial value:
= {
0.176, 0.176, 0.176, 0.75,
0.176, 0.176, 0.176, 0.75,
0.178, 0.178, 0.178, 1.0,
0.178, 0.178, 0.178, 1.0,
}

◆ ozone_background_libretro_running_light

float ozone_background_libretro_running_light[16]
static
Initial value:
= {
0.690, 0.690, 0.690, 0.75,
0.690, 0.690, 0.690, 0.75,
0.922, 0.922, 0.922, 1.0,
0.922, 0.922, 0.922, 1.0
}

◆ ozone_border_0_dark

float ozone_border_0_dark[16] = COLOR_HEX_TO_FLOAT(0x198AC6, 1.00)
static

◆ ozone_border_0_light

float ozone_border_0_light[16] = COLOR_HEX_TO_FLOAT(0x50EFD9, 1.00)
static

◆ ozone_border_1_dark

float ozone_border_1_dark[16] = COLOR_HEX_TO_FLOAT(0x89F1F2, 1.00)
static

◆ ozone_border_1_light

float ozone_border_1_light[16] = COLOR_HEX_TO_FLOAT(0x0DB6D5, 1.00)
static

◆ ozone_default_theme

ozone_theme_t* ozone_default_theme

◆ ozone_osk_backdrop

float ozone_osk_backdrop[16]
static
Initial value:
= {
0.00, 0.00, 0.00, 0.15,
0.00, 0.00, 0.00, 0.15,
0.00, 0.00, 0.00, 0.15,
0.00, 0.00, 0.00, 0.15,
}

◆ ozone_pure_white

float ozone_pure_white[16]
static
Initial value:
= {
1.00, 1.00, 1.00, 1.00,
1.00, 1.00, 1.00, 1.00,
1.00, 1.00, 1.00, 1.00,
1.00, 1.00, 1.00, 1.00,
}

◆ ozone_sidebar_background_dark

float ozone_sidebar_background_dark[16]
static
Initial value:
= {
0.2, 0.2, 0.2, 1.00,
0.2, 0.2, 0.2, 1.00,
0.2, 0.2, 0.2, 1.00,
0.2, 0.2, 0.2, 1.00,
}

◆ ozone_sidebar_background_light

float ozone_sidebar_background_light[16]
static
Initial value:
= {
0.94, 0.94, 0.94, 1.00,
0.94, 0.94, 0.94, 1.00,
0.94, 0.94, 0.94, 1.00,
0.94, 0.94, 0.94, 1.00,
}

◆ ozone_sidebar_gradient_bottom_dark

float ozone_sidebar_gradient_bottom_dark[16]
static
Initial value:
= {
0.18, 0.18, 0.18, 1.00,
0.18, 0.18, 0.18, 1.00,
0.2, 0.2, 0.2, 1.00,
0.2, 0.2, 0.2, 1.00,
}

◆ ozone_sidebar_gradient_bottom_light

float ozone_sidebar_gradient_bottom_light[16]
static
Initial value:
= {
0.922, 0.922, 0.922, 1.00,
0.922, 0.922, 0.922, 1.00,
0.94, 0.94, 0.94, 1.00,
0.94, 0.94, 0.94, 1.00,
}

◆ ozone_sidebar_gradient_top_dark

float ozone_sidebar_gradient_top_dark[16]
static
Initial value:
= {
0.2, 0.2, 0.2, 1.00,
0.2, 0.2, 0.2, 1.00,
0.18, 0.18, 0.18, 1.00,
0.18, 0.18, 0.18, 1.00,
}

◆ ozone_sidebar_gradient_top_light

float ozone_sidebar_gradient_top_light[16]
static
Initial value:
= {
0.94, 0.94, 0.94, 1.00,
0.94, 0.94, 0.94, 1.00,
0.922, 0.922, 0.922, 1.00,
0.922, 0.922, 0.922, 1.00,
}

◆ ozone_theme_dark

ozone_theme_t ozone_theme_dark

◆ ozone_theme_light

ozone_theme_t ozone_theme_light

◆ ozone_themes

ozone_theme_t* ozone_themes[]

◆ ozone_themes_count

unsigned ozone_themes_count