diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-10 10:02:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-10 10:06:56 +0400 |
commit | 2f01be2b2fe563f634c9f653260940b2a9a78d6d (patch) | |
tree | a97e7b7146fdbee9da50a84324de2785cd6d9324 /source/blender/editors/interface/interface_panel.c | |
parent | 311883fc3b397ccd40a88dc48da3bc094b3a093a (diff) |
UI: panel tabs, use simple color interpolation that ignores alpha
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 362df8b3d12..1c6ea14b60b 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1419,34 +1419,34 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active) /* Primary theme colors */ unsigned char theme_col_back[4]; - unsigned char theme_col_text[4]; - unsigned char theme_col_text_hi[4]; + unsigned char theme_col_text[3]; + unsigned char theme_col_text_hi[3]; /* Tab colors */ unsigned char theme_col_tab_bg[4]; - unsigned char theme_col_tab_active[4]; - unsigned char theme_col_tab_inactive[4]; + unsigned char theme_col_tab_active[3]; + unsigned char theme_col_tab_inactive[3]; /* Secondary theme colors */ - unsigned char theme_col_tab_outline[4]; - unsigned char theme_col_tab_divider[4]; /* line that divides tabs from the main area */ - unsigned char theme_col_tab_highlight[4]; - unsigned char theme_col_tab_highlight_inactive[4]; + unsigned char theme_col_tab_outline[3]; + unsigned char theme_col_tab_divider[3]; /* line that divides tabs from the main area */ + unsigned char theme_col_tab_highlight[3]; + unsigned char theme_col_tab_highlight_inactive[3]; UI_GetThemeColor4ubv(TH_BACK, theme_col_back); - UI_GetThemeColor4ubv(TH_TEXT, theme_col_text); - UI_GetThemeColor4ubv(TH_TEXT_HI, theme_col_text_hi); + UI_GetThemeColor3ubv(TH_TEXT, theme_col_text); + UI_GetThemeColor3ubv(TH_TEXT_HI, theme_col_text_hi); UI_GetThemeColor4ubv(TH_TAB_BACK, theme_col_tab_bg); - UI_GetThemeColor4ubv(TH_TAB_ACTIVE, theme_col_tab_active); - UI_GetThemeColor4ubv(TH_TAB_INACTIVE, theme_col_tab_inactive); - UI_GetThemeColor4ubv(TH_TAB_OUTLINE, theme_col_tab_outline); + UI_GetThemeColor3ubv(TH_TAB_ACTIVE, theme_col_tab_active); + UI_GetThemeColor3ubv(TH_TAB_INACTIVE, theme_col_tab_inactive); + UI_GetThemeColor3ubv(TH_TAB_OUTLINE, theme_col_tab_outline); - blend_color_interpolate_byte(theme_col_tab_divider, theme_col_back, theme_col_tab_outline, 0.3f); - blend_color_interpolate_byte(theme_col_tab_highlight, theme_col_back, theme_col_text_hi, 0.2f); - blend_color_interpolate_byte(theme_col_tab_highlight_inactive, theme_col_tab_inactive, theme_col_text_hi, 0.12f); + interp_v3_v3v3_uchar(theme_col_tab_divider, theme_col_back, theme_col_tab_outline, 0.3f); + interp_v3_v3v3_uchar(theme_col_tab_highlight, theme_col_back, theme_col_text_hi, 0.2f); + interp_v3_v3v3_uchar(theme_col_tab_highlight_inactive, theme_col_tab_inactive, theme_col_text_hi, 0.12f); is_alpha = (ar->overlap && (theme_col_back[3] != 255)); |