diff options
author | Pablo Vazquez <pablovazquez> | 2021-10-17 19:43:25 +0300 |
---|---|---|
committer | Pablo Vazquez <pablo@blender.org> | 2021-10-17 19:49:59 +0300 |
commit | 962b17b3ca140aca3ccce94e0e39c6631f830f8d (patch) | |
tree | 55eb8c55dc1158dfa13a3230bf46b2777cdfa573 /source/blender/editors/sculpt_paint/sculpt_transform.c | |
parent | 93544b641bd6687c9b0af3e203a4069977116a78 (diff) |
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
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_transform.c')
0 files changed, 0 insertions, 0 deletions