Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Vazquez <pablovazquez>2021-10-17 19:43:25 +0300
committerPablo Vazquez <pablo@blender.org>2021-10-17 19:49:59 +0300
commit962b17b3ca140aca3ccce94e0e39c6631f830f8d (patch)
tree55eb8c55dc1158dfa13a3230bf46b2777cdfa573 /source/blender/editors/include
parent93544b641bd6687c9b0af3e203a4069977116a78 (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/include')
-rw-r--r--source/blender/editors/include/UI_resources.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_resources.h b/source/blender/editors/include/UI_resources.h
index dde8a637e05..61da496d344 100644
--- a/source/blender/editors/include/UI_resources.h
+++ b/source/blender/editors/include/UI_resources.h
@@ -64,7 +64,7 @@ typedef enum ThemeColorID {
TH_TAB_OUTLINE,
TH_HEADER,
- TH_HEADERDESEL,
+ TH_HEADER_ACTIVE,
TH_HEADER_TEXT,
TH_HEADER_TEXT_HI,