[Bf-blender-cvs] [48c2c7b1b4c] temp-ui-tweaks: UI: Dim collapse/expand icon on panels

Pablo Vazquez noreply at git.blender.org
Fri Sep 3 20:06:53 CEST 2021


Commit: 48c2c7b1b4cbbafc715af263a8593dd2e011ce7e
Author: Pablo Vazquez
Date:   Fri Sep 3 20:03:29 2021 +0200
Branches: temp-ui-tweaks
https://developer.blender.org/rB48c2c7b1b4cbbafc715af263a8593dd2e011ce7e

UI: Dim collapse/expand icon on panels

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

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 33f9581156c..14fed6c02b8 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -1168,8 +1168,10 @@ static void panel_draw_aligned_widgets(const uiStyle *style,
   };
 
   uchar title_color[4];
+  uchar collapse_icon_color[4];
   panel_title_color_get(panel, show_background, region_search_filter_active, title_color);
-  title_color[3] = 255;
+  copy_v4_uchar(collapse_icon_color, *title_color);
+  collapse_icon_color[3] = 100;
 
   /* Draw collapse icon. */
   {
@@ -1188,7 +1190,7 @@ static void panel_draw_aligned_widgets(const uiStyle *style,
                     aspect * U.inv_dpi_fac,
                     0.5f,
                     0.0f,
-                    title_color,
+                    collapse_icon_color,
                     false);
     GPU_blend(GPU_BLEND_NONE);
   }



More information about the Bf-blender-cvs mailing list