Regression: Blender 4.0 Menu Item inner color does not match the color selected in the theme editor: #113009
Labels
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#113009
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.13
Blender Version
Broken: version: 4.0.0 Beta, branch: blender-v4.0-release, commit date: 2023-09-28 00:03, hash:
751c9ef620a0
Worked: 3.6
Short description of error
In 4.0, the selected menu item now uses Inner widget color, but this color doesn't match the color set in theme preferences:
Exact steps for others to reproduce the error
Result: The color doesn't match to the one selected in the UI
Expected: The color matches to the one selected in the UI.
This looks like the hover color overlapped on top of the selected inner color.
To clarify, I have alpha value of that inner color set to 0, so that only the hovered menu item has the accent color.
Hi, thanks for the report. This is because we're blending between
inner
andtext
widget color: https://projects.blender.org/blender/blender/src/branch/main/source/blender/editors/interface/interface_widgets.cc#L2751Not a bug, closing.
Let me know if I'm missing something and feel free to reopen the report.
Well, once again this is a regression. I filled out Worked: 3.6.
3.6 uses different widget color for it, but the color matches:
There's just no reason it should not in 4.0.
Between this and #113022 someone has just messed with menu drawing code and broke theme customization in process by hardcoding some values. It makes no sense for 4.0 having broken theme customization to not be a bug. If it's treated with a simple shoulder shrug, than we may as well remove the theme editor completely as this sets precedent that breaking theme customization is ok going forward.
The code that blends inner and text color is clearly a mistake. It seems to be written by someone who didn't consider any other theme than the Default Dark.
I checked that piece of code and it's even worse. It seems to just straight up disregard some of the user defined theme colors and override them:
This breaks readability some of the built in themes:
White:
Modo:
For comparison, white theme in 3.6:
For reference, this was done in
9f4b28bba8
Yeah, we already have bug reports regarding that (for example: #112122)
@Rawalanche , if I understand correctly, this report complains about the visual difference between hovered color and
inner
color.In that case, this is directly related to your other report #113022 and #112122
I don't think so. The other report is about the text color of the frozen entries. This note above was about text color of hovered entries.
On the picture above, 1. frozen menu item entry, 2. is hovered menu item entry.
If I understand this part of code correctly:
Then it's responsible for modifying the color of the hovered menu item, not frozen menu item.
And why I think that this piece of code is clearly wrong is that widget colors have specific color exactly for the highlighted text:
So hardcoding wt->wcol.text[3] to 255 is clearly wrong. It should use the selected text color.
EDIT: Nevermind. The third element is alpha, so that's not wrong. It's just the color blend appears to be wrong.
The hover color straight up goes to complete black on my blender light theme (I guess also broken by
9f4b28bba8
or relevant changes), which is of course readable but not very ideal.I think I'll reopen this and maybe @Harley should look at it?
cc @pablovazquez the theme color could use some investigation as well 😅
@ChengduLittleA : can you check this PR #112380 ?