|
PatchworkOS
|
#include "internal.h"#include <libpatchwork/config.h>#include <libpatchwork/theme.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| static void | theme_colors_load (config_t *config, const char *section, theme_color_set_t *dest) |
| static void | theme_lazy_load (void) |
| theme_t * | theme_global_get (void) |
| Get the global theme. | |
Variables | |
| static bool | isLoaded = false |
| static theme_t | theme = {0} |
|
static |
Definition at line 14 of file theme.c.
References theme_color_set_t::backgroundNormal, theme_color_set_t::backgroundSelectedEnd, theme_color_set_t::backgroundSelectedStart, theme_color_set_t::backgroundUnselectedEnd, theme_color_set_t::backgroundUnselectedStart, theme_color_set_t::bezel, config_get_int(), theme_color_set_t::foregroundInactive, theme_color_set_t::foregroundLink, theme_color_set_t::foregroundNormal, theme_color_set_t::foregroundSelected, theme_color_set_t::highlight, theme_color_set_t::shadow, and THEME_COLOR_INVALID.
Referenced by theme_lazy_load().
|
static |
Definition at line 33 of file theme.c.
References theme_t::ansi, theme_t::bezelSize, theme_t::bigPadding, theme_ansi_t::bright, theme_t::button, config_close(), config_get_int(), config_get_string(), config_open(), theme_t::cursorArrow, theme_t::deco, theme_t::defaultFont, theme_ansi_t::dim, theme_t::element, theme_t::fontsDir, theme_t::frameSize, theme_t::iconClose, theme_t::iconMinimize, isLoaded, MAX_PATH, theme_ansi_t::normal, NULL, theme_t::panel, theme_t::panelSize, printf(), theme_t::separatorSize, theme_t::smallPadding, snprintf(), strncpy(), theme, THEME_ANSI_COLOR_COUNT, THEME_COLOR_INVALID, theme_colors_load(), theme_t::titlebarSize, theme_t::view, and theme_t::wallpaper.
Referenced by theme_global_get().
Definition at line 11 of file theme.c.
Referenced by theme_lazy_load().
|
static |
Definition at line 12 of file theme.c.
Referenced by block_draw(), button_draw(), field_edge_draw(), font_new(), label_procedure(), main(), popup_procedure(), procedure(), side_panel_draw(), start_menu_load_entries(), start_menu_new(), start_menu_open(), start_press_space_draw(), startmenu_procedure(), taskbar_get_clock_rect(), taskbar_get_left_separator_rect(), taskbar_get_right_separator_rect(), taskbar_get_start_rect(), taskbar_get_task_button_rect(), taskbar_procedure(), terminal_char_pos(), terminal_clear(), terminal_pixel_height(), terminal_pixel_width(), terminal_procedure(), terminal_scroll(), ternminal_execute_ansi(), theme_global_get(), theme_lazy_load(), window_deco_draw_titlebar(), window_deco_init_controls(), window_deco_redraw(), window_deco_titlebar_rect(), and window_new().