forked from bartvdbraak/blender
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.
This commit is contained in:
parent
0f72a8a7f0
commit
037730b683
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user