UILayout.emboss missing UI_EMBOSS_NONE_OR_STATUS #89891

Open
opened 2021-07-16 06:13:32 +02:00 by Mikhail Rachinskiy · 17 comments

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 from UILayout.emboss. There is new NONE_OR_STATUS, but it does not work the same.

Here is the difference:

  • UI_EMBOSS_NONE_OR_STATUS in Blender 2.93 makes emboss look None, but keeping UI active.
  • NONE_OR_STATUS in Blender 3.0 makes emboss None and UI not active.

emboss.mp4

Exact steps for others to reproduce the error

  • Run script from attached blend file in 3.0 and 2.93 versions.
  • Try to interact with popover elements.

emboss.blend

**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 from `UILayout.emboss`. There is new `NONE_OR_STATUS`, but it does not work the same. Here is the difference: * `UI_EMBOSS_NONE_OR_STATUS` in Blender 2.93 makes emboss look `None`, but keeping UI active. * `NONE_OR_STATUS` in Blender 3.0 makes emboss `None` and UI not active. [emboss.mp4](https://archive.blender.org/developer/F10225662/emboss.mp4) **Exact steps for others to reproduce the error** - Run script from attached blend file in 3.0 and 2.93 versions. - Try to interact with popover elements. [emboss.blend](https://archive.blender.org/developer/F10225664/emboss.blend)
Author
Member

Added subscriber: @MikhailRachinskiy

Added subscriber: @MikhailRachinskiy
Hans Goudey self-assigned this 2021-07-16 06:53:50 +02:00
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

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?

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?
Author
Member

New value can be introduced NONE_OR_ACTIVE, it will behave exactly like UI_EMBOSS_NONE_OR_STATUS in 2.93.
This solves current issue and keeps existing code working.

New value can be introduced `NONE_OR_ACTIVE`, it will behave exactly like `UI_EMBOSS_NONE_OR_STATUS` in 2.93. This solves current issue and keeps existing code working.
Member

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
Member

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?

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?
Author
Member

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

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](https://archive.blender.org/developer/F10512284/Materials_Library.mp4)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Author
Member

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

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](https://archive.blender.org/developer/F11102176/Sidebar_collections.mp4)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

@JulianEisel: since updated usecases have been presented, would you be willing to decide/respond?

@JulianEisel: since updated usecases have been presented, would you be willing to decide/respond?
Hans Goudey was unassigned by Philipp Oeser 2022-02-16 12:41:58 +01:00
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

poke @HooglyBoogly as well (but also unassigning since status is still in limbo I think...)

poke @HooglyBoogly as well (but also unassigning since status is still in limbo I think...)
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:23:15 +01:00
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
6 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#89891
No description provided.