Blender Git Loki

Git Commits -> Revision 962b17b

Revision 962b17b by Pablo Vazquez (master)
October 17, 2021, 16:49 (GMT)
UI: Adjust header color when active instead of inactive

Currently, the background color of headers gets darkened when the editor is not active,
this makes it hard to theme, and adds contrast/noise when it's not needed.

This patch makes headers use the regular theme color when the editor is not active, so it
can be made to flush with the background more easily. And lightens the header (by +10,
same value as before) when the editor is active, providing the wanted highlight.

The motivations behind this change are:
* Simplify picking a theme color for headers.
* Widgets already become lighter on mouse hover, this change creates a connection with that concept.

Left: current master, inactive header is darkened.
Right: this patch, inactive header gets the theme color, active editor gets header in a slightly lighter color (like most widgets)

{F11052503, size=full, loop, autoplay}

Reviewed By: #user_interface, HooglyBoogly

Differential Revision: https://developer.blender.org/D12856

Commit Details:

Full Hash: 962b17b3ca140aca3ccce94e0e39c6631f830f8d
Parent Commit: 93544b6
Lines Changed: +13, -11

3 Modified Paths:

/source/blender/editors/include/UI_resources.h (+1, -1) (Diff)
/source/blender/editors/interface/resources.c (+10, -8) (Diff)
/source/blender/editors/screen/area.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021