Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/resources.c
| Show First 20 Lines • Show All 1,083 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| bTheme *UI_GetTheme(void) | bTheme *UI_GetTheme(void) | ||||
| { | { | ||||
| return U.themes.first; | return U.themes.first; | ||||
| } | } | ||||
| /** | /** | ||||
| * for the rare case we need to temp swap in a different theme (offscreen render) | * For the rare case we need to temp swap in a different theme (off-screen render). | ||||
| */ | */ | ||||
| void UI_Theme_Store(struct bThemeState *theme_state) | void UI_Theme_Store(struct bThemeState *theme_state) | ||||
| { | { | ||||
| *theme_state = g_theme_state; | *theme_state = g_theme_state; | ||||
| } | } | ||||
| void UI_Theme_Restore(struct bThemeState *theme_state) | void UI_Theme_Restore(struct bThemeState *theme_state) | ||||
| { | { | ||||
| g_theme_state = *theme_state; | g_theme_state = *theme_state; | ||||
| ▲ Show 20 Lines • Show All 413 Lines • Show Last 20 Lines | |||||