diff options
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index d960f5e6b1d..3b511e23384 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1035,12 +1035,6 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid) return (const uchar *)cp; } -/** - * Initialize default theme. - * - * \note When you add new colors, created & saved themes need initialized - * use function below, #init_userdef_do_versions. - */ void UI_theme_init_default(void) { /* we search for the theme with name Default */ @@ -1091,9 +1085,6 @@ bTheme *UI_GetTheme(void) return U.themes.first; } -/** - * For the rare case we need to temp swap in a different theme (off-screen render). - */ void UI_Theme_Store(struct bThemeState *theme_state) { *theme_state = g_theme_state; @@ -1163,21 +1154,18 @@ void UI_FontThemeColor(int fontid, int colorid) BLF_color4ubv(fontid, color); } -/* get individual values, not scaled */ float UI_GetThemeValuef(int colorid) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); return ((float)cp[0]); } -/* get individual values, not scaled */ int UI_GetThemeValue(int colorid) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); return ((int)cp[0]); } -/* versions of the function above, which take a space-type */ float UI_GetThemeValueTypef(int colorid, int spacetype) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, spacetype, colorid); @@ -1190,7 +1178,6 @@ int UI_GetThemeValueType(int colorid, int spacetype) return ((int)cp[0]); } -/* get the color, range 0.0-1.0 */ void UI_GetThemeColor3fv(int colorid, float col[3]) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); @@ -1217,7 +1204,6 @@ void UI_GetThemeColorType4fv(int colorid, int spacetype, float col[4]) col[3] = ((float)cp[3]) / 255.0f; } -/* get the color, range 0.0-1.0, complete with shading offset */ void UI_GetThemeColorShade3fv(int colorid, int offset, float col[3]) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); @@ -1350,7 +1336,6 @@ void UI_GetThemeColorBlendShade4fv(int colorid1, int colorid2, float fac, int of col[3] = ((float)a) / 255.0f; } -/* get the color, in char pointer */ void UI_GetThemeColor3ubv(int colorid, uchar col[3]) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); @@ -1359,7 +1344,6 @@ void UI_GetThemeColor3ubv(int colorid, uchar col[3]) col[2] = cp[2]; } -/* get the color, range 0.0-1.0, complete with shading offset */ void UI_GetThemeColorShade4fv(int colorid, int offset, float col[4]) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); @@ -1381,7 +1365,6 @@ void UI_GetThemeColorShade4fv(int colorid, int offset, float col[4]) col[3] = ((float)a) / 255.0f; } -/* get the color, in char pointer */ void UI_GetThemeColor4ubv(int colorid, uchar col[4]) { const uchar *cp = UI_ThemeGetColorPtr(theme_active, theme_spacetype, colorid); @@ -1459,7 +1442,6 @@ void UI_GetColorPtrShade3ubv(const uchar cp[3], uchar col[3], int offset) col[2] = b; } -/* get a 3 byte color, blended and shaded between two other char color pointers */ void UI_GetColorPtrBlendShade3ubv( const uchar cp1[3], const uchar cp2[3], uchar col[3], float fac, int offset) { |