Make Tab Divider interopolate between the region background and tab outline.
authorJonathan Williamson <jonathan@cgcookie.com>
Thu, 23 Jan 2014 18:28:41 +0000 (12:28 -0600)
committerJonathan Williamson <jonathan@cgcookie.com>
Thu, 23 Jan 2014 18:30:28 +0000 (12:30 -0600)
Previously the divider was using the region background and the region text, leading to bad outlines with custom themes. This makes the outline behave more expectedly and allows better control.

source/blender/editors/interface/interface_panel.c

index 14523efaf188b01d9e8e213a05eac613f252f9a1..f6557b98bdd32a140e2877302e50d9cf5e4e9407 100644 (file)
@@ -1440,7 +1440,7 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
        UI_GetThemeColor4ubv(TH_TAB_INACTIVE, theme_col_tab_inactive);
        UI_GetThemeColor4ubv(TH_TAB_OUTLINE, theme_col_tab_outline);
 
-       blend_color_interpolate_byte(theme_col_tab_divider, theme_col_back, theme_col_text, 0.3f);
+       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);