Color indicating animation status missing from many icon buttons (all defined with emboss=False) #89350
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89350
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:window 10
Graphics card:GTX1060
Blender Version
Broken:2.92
Worked: 2.91
Caused by
600fb28b62
Short description of error
You can for example add keyframes for GP layer visibility, but you can’t see the colors (green=animated, yellow=keyframe etc)
**See the video link for more details
https://youtu.be/v0ktPrHQyLc
Exact steps for others to reproduce the error
from the default startup file:
Mute
property2.91
2.92
Added subscriber: @RayLee
#86299 was marked as duplicate of this issue
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Please only one issue per report (so sticking with "Problem 1" for now, please report "Problem 2" separately):
I can confirm that (icon) toggle buttons inside UI Lists dont show the background color indicating whether they are animated or not.
This was working at some point, will check.
Greasepencil layer visibility color display missing, drive exceptionto Color indicating animation status missing from UIList toggle buttonsCaused by
600fb28b62
apparentlyColor indicating animation status missing from UIList toggle buttonsto Color indicating animation status missing from many icon buttons (all defined with emboss=False)Added subscriber: @HooglyBoogly
So, the culprit commit checks for
UI_EMBOSS_NONE
inwidget_icon_has_anim
and there was another check for it inwidget_color_blend_from_flags
, and with these checks active, we dont get colored icon backgrounds here.Isolated, this seems to make sense (since it is supposed to do /* Nothing, only icon and/or text */ in the case of
UI_EMBOSS_NONE
.However, there are many, many places where the prop gets shown in the UI via
layout.prop(... emboss=False)
This gets translated into
UI_EMBOSS_NONE
eventualy (rna_uiItemR
setsUI_ITEM_R_NO_BG
, thenuiItemFullO_ptr_ex
translates this to layout->emboss = UI_EMBOSS_NONE
)Note we have
row.emboss = 'UI_EMBOSS_NONE_OR_STATUS'
for such cases, so I wonder if it would make sense to remove allemboss=False
?Something like this:
P2199: #89350 emboss=False problem
I guess this is something @HooglyBoogly should have a look at though
Added subscriber: @JulianEisel
Thanks for looking at this @lichtwerk. Personally I'd be happy with either of these two options:
emboss=False
, setUI_EMBOSS_NONE_OR_STATUS
explicitly.emboss=False
to setUI_EMBOSS_NONE_OR_STATUS
instead of "None".However, I'm not sure how to decide between these options, as the initial idea for the new flag came from Julian I think.
@JulianEisel, I'd be happy to do the work for either option, which would you prefer?
This would essentially mean we accept a regression as API breaking change. Even if we would accept this as solution, we could only change Blender's bundled scripts, other add-ons and scripts would have to be updated by their authors. And since this is a rather subtle change, they probably won't even realize it needs to be done.
This seems quite sensible to me. It matches the old behavior if I'm not mistaken. Showing too much status is better than showing too little. New is that script authors can actually entirely disable the status coloring using
layout.emboss = 'NONE'
. Just mention what emboss flag this translates to in the API documentation.Also - eeek, why is the Python identifier called
UI_EMBOSS_NONE_OR_STATUS
? Should be justNONE_OR_STATUS
.D11701 is for that last point, yikes.
I'll submit a patch for the second option when I get it to work.
This issue was referenced by
c184516c37
This issue was referenced by
6c97c7f767
Changed status from 'Confirmed' to: 'Resolved'
Added subscribers: @nexxio, @ChrisLend, @dr.sybren, @filedescriptor