[Bf-blender-cvs] [037730b] master: Make Tab Divider interopolate between the region background and tab outline.

Jonathan Williamson noreply at git.blender.org
Thu Jan 23 19:30:44 CET 2014


Commit: 037730b6837f600536fa80055cde807aa4e9852c
Author: Jonathan Williamson
Date:   Thu Jan 23 12:28:41 2014 -0600
https://developer.blender.org/rB037730b6837f600536fa80055cde807aa4e9852c

Make Tab Divider interopolate between the region background and tab outline.

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.

===================================================================

M	source/blender/editors/interface/interface_panel.c

===================================================================

diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 14523ef..f6557b9 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -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);




More information about the Bf-blender-cvs mailing list