Remove widget emboss #42228
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#42228
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?
Currently the embossing of UI widgets is hard-coded, often resulting in bad highlights/shadows in themes. It is particularly noticeable in dark themes.
Per @billrey's mockups in #38037, I think it's time we remove the embossing from UI widgets. This use to be an option in the theme preferences, but we are already overloaded with options.
I propose we remove embossing entirely, yielding a more modern, flat UI style that is more easily theme able and clean.
This is actually quite a subtle change in most places. For example, here is the default them with and without embossing:
The change is more noticeable on darker themes, such as Graph:
I am willing/able to undertake this myself. I've already been experimenting with the embossing code and it's not difficult. The main challenge will be cleaning up the various remnants of the now defunct emboss theme option.
Changed status to: 'Open'
Added subscribers: @billrey, @ThomasDinges, @JonathanWilliamson, @PawelLyczkowski-1, @ideasman42, @JulianEisel, @mont29, @pablovazquez, @liquidape
This has my support. This would clean the GUI up in dark themes, while not impacting the light themes that much.
Here are a few more screenshots showing with and without embossing. You'll notice that the emboss (or lack there of) is quite subtle in the default theme, but sticks out strongly in the darker Graph theme.
Default theme with emboss:
Default theme without emboss:
Graph theme with emboss:
Graph theme without emboss:
Hi,
Emboss has a function, it's a way to make the element pop, the reason it doesn't always work now it's because it's hardcoded to white (well, glColor4f(1.0f, 1.0f, 1.0f, 0.02f) )
So I wouldn't remove it completely, but allow to change it's color/alpha (same we do now with Text Style), so we can make it fit all themes. If its alpha is set to 0, we skip the drawing completely.
Personally, I have it changed to black (glColor4f(0.0f, 0.0f, 0.0f, 0.02f)) to work like a subtle shadow.
Example of emboss turned into black for a subtle drop shadow effect:
(ignore the other UI tweaks in this branch :)
Being able to change the color/alpha of emboss will allow us to keep a classic 2.5 (and 2.4!) theme identical as it is now, a flat theme without, and the drop shadow effect if needed. While still taking the OGL advantage of not drawing it in case its alpha is 0.
Think this can work as a theme option without much trouble, then we can propose changing defaults after.
+1 to be theme option (RGBA?), by default to white 1.0f/alpha 0.02f so it doesn't affect the current theme.
That's a good example @venomgfx.
@ideasman42 didn't it use to be a theme option? Any idea why it was disabled? I seem to remember it not making the leap to 2.5x.
I'll dig in and see if I can make it an option.
It was never really an option IIRC. It's the UI Draw Type setting that allowed different "styles", from which some of them had emboss and some didn't.
Okay I've added a new diff to add the Theme option for the emboss feature. By default it's set to same color as was previously hard-coded.
Note: I had some trouble getting everything to align in the User Preferences. Perhaps @ThomasDinges has some suggestions?
Added subscriber: @Januz
This issue was referenced by
6c2ce7a382
Changed status from 'Open' to: 'Resolved'
Closed by commit
6c2ce7a382
.