Page MenuHome
Paste P134

Tweak tabs
ActivePublic

Authored by Campbell Barton (campbellbarton) on Sep 4 2014, 7:09 AM.
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 50a1900..0a0d59d 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -1397,7 +1397,7 @@ static void ui_panel_category_draw_tab(int mode, float minx, float miny, float m
void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
{
/* no tab outlines for */
-// #define USE_FLAT_INACTIVE
+#define USE_FLAT_INACTIVE
View2D *v2d = &ar->v2d;
uiStyle *style = UI_GetStyle();
const uiFontStyle *fstyle = &style->widget;
@@ -1454,7 +1454,7 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
UI_GetThemeColor3ubv(TH_TAB_INACTIVE, theme_col_tab_inactive);
UI_GetThemeColor3ubv(TH_TAB_OUTLINE, theme_col_tab_outline);
- interp_v3_v3v3_uchar(theme_col_tab_divider, theme_col_back, theme_col_tab_outline, 0.3f);
+ interp_v3_v3v3_uchar(theme_col_tab_divider, theme_col_back, theme_col_tab_outline, 0.75f);
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);
@@ -1471,7 +1471,7 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
BLF_size(fontid, fstyle_points, U.dpi);
BLF_enable(fontid, BLF_SHADOW);
- BLF_shadow(fontid, 3, 1.0f, 1.0f, 1.0f, 0.25f);
+ BLF_shadow(fontid, 3, 1.0f, 1.0f, 1.0f, 0.35f);
BLF_shadow_offset(fontid, -1, -1);
BLI_assert(UI_panel_category_is_visible(ar));

Event Timeline

Campbell Barton (campbellbarton) changed the title of this paste from untitled to Tweak tabs.
Campbell Barton (campbellbarton) updated the paste's language from autodetect to diff.