UILayout.emboss missing UI_EMBOSS_NONE_OR_STATUS #89891
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89891
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.19041-SP0 64 Bits
Graphics card: GeForce GTX 860M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-15 20:23, hash:
98c4224ff0
Worked: 2.93 release and earlier revisions of 3.0
Short description of error
UI_EMBOSS_NONE_OR_STATUS
missing fromUILayout.emboss
. There is newNONE_OR_STATUS
, but it does not work the same.Here is the difference:
UI_EMBOSS_NONE_OR_STATUS
in Blender 2.93 makes emboss lookNone
, but keeping UI active.NONE_OR_STATUS
in Blender 3.0 makes embossNone
and UI not active.emboss.mp4
Exact steps for others to reproduce the error
emboss.blend
Added subscriber: @MikhailRachinskiy
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @PratikPB2123
Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Added subscriber: @JulianEisel
Okay, this is a little more interesting (less straightforward) than I expected. It seems, in adding the "NONE_OR_STATUS" item here we actually added a feature, the ability to edit text with no emboss.
That's because we treated them differently in just the right way to allow that, though it wasn't really purposeful.
In fixing a related bug,
c0fb8375f6
also made that impossible again. That's sort of too bad, since it's nice to have that option.I wish I understood this code a bit better, I find it hard to reason about even on a design level though-- what do we even want it to do?
@JulianEisel Do you have a thought here?
New value can be introduced
NONE_OR_ACTIVE
, it will behave exactly likeUI_EMBOSS_NONE_OR_STATUS
in 2.93.This solves current issue and keeps existing code working.
Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
The fact that this worked before wasn't intentional, and I'm reluctant to adding this kind of behavior back. If I may say so, I don't think what I see in the video above is a good UI pattern at all :) Can you show us a real world example where you'd want to use this?
I use it in my materials library popup, where I wanted to make it look similar to presets, but have functionality of UI list.
Materials Library.mp4
Changed status from 'Needs User Info' to: 'Needs Triage'
Here is example of Blender UI where it is following the same principle of emboss-less look, with active highlight to indicate interactable elements.
You already allow it in various places in Blender, I don't see any reason to be extra selective now in this particular case.
Sidebar collections.mp4
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
@JulianEisel: since updated usecases have been presented, would you be willing to decide/respond?
Added subscriber: @HooglyBoogly
poke @HooglyBoogly as well (but also unassigning since status is still in limbo I think...)