Colors in theme do not match in Shader Editor #114394

Closed
opened 2023-11-02 09:00:22 +01:00 by Eugene Du · 4 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 537.58

Blender Version
Broken: version: 3.6.5, branch: blender-v3.6-release, commit date: 2023-10-16 14:30, hash: cf1e1ed46b7e
Worked: (newest version of Blender that worked as expected)

Short description of error
how to properly setup color in theme to match in Shader Editor?

Exact steps for others to reproduce the error
Default Blender Dark theme colors.
Try to compare color in Properties with output colors in Shader Editor

Match_Theme_Color_with_View.png

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 537.58 **Blender Version** Broken: version: 3.6.5, branch: blender-v3.6-release, commit date: 2023-10-16 14:30, hash: `cf1e1ed46b7e` Worked: (newest version of Blender that worked as expected) **Short description of error** how to properly setup color in theme to match in Shader Editor? **Exact steps for others to reproduce the error** Default Blender Dark theme colors. Try to compare color in Properties with output colors in Shader Editor ![Match_Theme_Color_with_View.png](/attachments/6687a747-e9d7-4d03-b80b-2816740b702f)
Eugene Du added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-11-02 09:00:23 +01:00
Eugene Du changed title from Colors in theme do not match in any view to Colors in theme do not match in Shader Editor 2023-11-02 09:02:00 +01:00
Member

Hi, thanks for the report. This is not a bug AFAICT. For header, color is mixed with the node color, see: https://projects.blender.org/blender/blender/src/branch/main/source/blender/editors/space_node/node_draw.cc#L2901

UI_GetThemeColorBlend4f(TH_NODE, color_id, 0.4f, color_header);

Hi, thanks for the report. This is not a bug AFAICT. For header, color is mixed with the node color, see: https://projects.blender.org/blender/blender/src/branch/main/source/blender/editors/space_node/node_draw.cc#L2901 `UI_GetThemeColorBlend4f(TH_NODE, color_id, 0.4f, color_header);`
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-11-02 10:18:18 +01:00
Member

The resulting colors are a blend with the Node Backdrop color

image

UI_GetThemeColorBlend4f(TH_NODE, color_id, 0.4f, result);

If that would read UI_GetThemeColorBlend4f(TH_NODE, color_id, 1.0f, result); you would get exactly the colors from the Theme Preferences. I assume this is made the way it is to make this [a] readable in most scenarios and [b] to still have some "common" ground between all nodes.

@pablovazquez could probably comment more on this.

I will close this issue already however, since this seems to all work as expected, thx reporting anyways!

The resulting colors are a blend with the `Node Backdrop` color ![image](/attachments/8b327a1d-a436-49cc-ad5e-d33365bc486b) `UI_GetThemeColorBlend4f(TH_NODE, color_id, 0.4f, result);` If that would read `UI_GetThemeColorBlend4f(TH_NODE, color_id, 1.0f, result);` you would get exactly the colors from the Theme Preferences. I assume this is made the way it is to make this [a] readable in most scenarios and [b] to still have some "common" ground between all nodes. @pablovazquez could probably comment more on this. I will close this issue already however, since this seems to all work as expected, thx reporting anyways!
Member

Ah, @PratikPB2123 was quicker, sorry for the duplicate efforts...

Ah, @PratikPB2123 was quicker, sorry for the duplicate efforts...
Member

I assume this is made the way it is to make this [a] readable in most scenarios and [b] to still have some "common" ground between all nodes.

Exactly. Since there is only one color for text in the entire editor but nodes can have multiple colors and backgrounds, users can very easily run into cases where text is hard to read. We could try to find a way to solve this but not a high priority right now.

> I assume this is made the way it is to make this [a] readable in most scenarios and [b] to still have some "common" ground between all nodes. Exactly. Since there is only one color for text in the entire editor but nodes can have multiple colors and backgrounds, users can very easily run into cases where text is hard to read. We could try to find a way to solve this but not a high priority right now.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114394
No description provided.