Fix: widget states had too low contrast
authorWilliam Reynish <billrey@me.com>
Mon, 1 Jul 2019 14:26:06 +0000 (16:26 +0200)
committerWilliam Reynish <billrey@me.com>
Mon, 1 Jul 2019 14:26:06 +0000 (16:26 +0200)
It was very hard to read the sliders when they had states such as animated or changed.
Slightly increase contrast to alleviate this.

release/datafiles/userdef/userdef_default_theme.c
source/blender/editors/interface/interface_widgets.c

index 95d27e41440ee7bd28f0fc84e394acc19e7ee6d4..3dc0367b2f4769368ea7a22c7af12144b0f1a170 100644 (file)
@@ -225,14 +225,14 @@ const bTheme U_theme_default = {
       .inner_anim = RGBA(0x53992eff),
       .inner_anim_sel = RGBA(0x5aa633ff),
       .inner_key = RGBA(0xb3ae36ff),
-      .inner_key_sel = RGBA(0xd7d34bff),
+      .inner_key_sel = RGBA(0xB29700ff),
       .inner_driven = RGBA(0x9000ccff),
       .inner_driven_sel = RGBA(0x9900e6ff),
       .inner_overridden = RGBA(0x19c3c300),
       .inner_overridden_sel = RGBA(0x118f8f00),
       .inner_changed = RGBA(0xcc7529ff),
-      .inner_changed_sel = RGBA(0xe6852dff),
-      .blend = 0.5f,
+      .inner_changed_sel = RGBA(0xD26400ff),
+      .blend = 0.4f,
     },
     .widget_emboss = RGBA(0x00000005),
     .menu_shadow_fac = 0.3f,
index ec0b01d434185a73f34fe647e60fe2cae5b01ec0..0bf8247dc17828afe8d9fe89aa61d48e1699ab52 100644 (file)
@@ -2636,7 +2636,7 @@ static void widget_state_numslider(uiWidgetType *wt, int state, int drawflag)
     wt->wcol.item[0] = wt->wcol.item[1] = wt->wcol.item[2] = rgb_to_grayscale_byte(
         (const uchar *)wt->wcol.item);
     widget_state_blend(wt->wcol.item, color_blend, wcol_state->blend);
-    rgb_ensure_contrast(wt->wcol.item, wt->wcol.inner, 20);
+    rgb_ensure_contrast(wt->wcol.item, wt->wcol.inner, 30);
   }
 
   if (state & UI_SELECT) {