PatchworkOS
Loading...
Searching...
No Matches

Theme. More...

Data Structures

struct  theme_color_set_t
 
struct  theme_ansi_t
 ANSI colors. More...
 
struct  theme_t
 Theme structure. More...
 

Macros

#define THEME_COLOR_INVALID   0xFFFF00FF
 Invalid color constant.
 
#define THEME_ANSI_COLOR_COUNT   8
 Number of ANSI colors.
 

Functions

theme_ttheme_global_get (void)
 Get the global theme.
 

Detailed Description

Theme.

Macro Definition Documentation

◆ THEME_ANSI_COLOR_COUNT

#define THEME_ANSI_COLOR_COUNT   8

Number of ANSI colors.

Definition at line 52 of file theme.h.

◆ THEME_COLOR_INVALID

#define THEME_COLOR_INVALID   0xFFFF00FF

Invalid color constant.

Definition at line 25 of file theme.h.

Function Documentation

◆ theme_global_get()

theme_t * theme_global_get ( void  )

Get the global theme.

Will potentially load the theme if it is not already loaded.

Returns
The global theme.

Definition at line 97 of file theme.c.

References theme, and theme_lazy_load().

Referenced by element_new_raw(), font_new(), main(), start_menu_load_entries(), start_menu_new(), taskbar_new(), terminal_pixel_height(), terminal_pixel_width(), and window_new().