[Bf-blender-cvs] [ad12ff53764] temp-ui-tweaks: UI: Adjust outline color of active default buttons

Pablo Vazquez noreply at git.blender.org
Tue Aug 24 03:07:06 CEST 2021


Commit: ad12ff537640cac650f8927976c22b8b5c113259
Author: Pablo Vazquez
Date:   Tue Aug 24 02:31:27 2021 +0200
Branches: temp-ui-tweaks
https://developer.blender.org/rBad12ff537640cac650f8927976c22b8b5c113259

UI: Adjust outline color of active default buttons

Simply darken slightly the already used outline color. On light themes it prevents too bright outlines on hover.

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

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

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

diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c
index b317e0d2aa3..2d223b4d032 100644
--- a/source/blender/editors/interface/interface_widgets.c
+++ b/source/blender/editors/interface/interface_widgets.c
@@ -2630,6 +2630,7 @@ static void widget_state(uiWidgetType *wt, int state, int drawflag, eUIEmbossTyp
     if (state & UI_BUT_ACTIVE_DEFAULT) {
       copy_v4_v4_uchar(wt->wcol.inner, wt->wcol.inner_sel);
       copy_v4_v4_uchar(wt->wcol.text, wt->wcol.text_sel);
+      color_mul_hsl_v3(wt->wcol.outline, 1.0f, 1.0f, 0.9f);
     }
     if (color_blend != NULL) {
       color_blend_v3_v3(wt->wcol.inner, color_blend, wcol_state->blend);



More information about the Bf-blender-cvs mailing list