Fix #94148: Top bar, Status bar Header Colors Differ from Theme Setting

Fixes the Top and Status bars having their specified theme colors
incorrectly modified by highlight effect intended for active editor
headers only

Pull Request: https://projects.blender.org/blender/blender/pulls/111265
This commit is contained in:
Rawalanche
2023-08-26 00:16:20 +02:00
committed by Harley Acheson
parent 383a145a19
commit d86d2a41e0

View File

@@ -2745,7 +2745,7 @@ static ThemeColorID region_background_color_id(const bContext *C, const ARegion
switch (region->regiontype) {
case RGN_TYPE_HEADER:
case RGN_TYPE_TOOL_HEADER:
if (ED_screen_area_active(C) || ED_area_is_global(area)) {
if (ED_screen_area_active(C) && !ED_area_is_global(area)) {
return TH_HEADER_ACTIVE;
}
else {