UI: Add save button to theme selection UI #111506

Closed
Ludvik Koutny wants to merge 1 commits from Rawalanche/blender:themes-save-button into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

A new save button is added to the theme selector in User Preferences.
image


The current process of saving theme modifications in Blender is quite embarrassing. User is required to use a button for adding new theme, and then type in the exact same name of already existing theme. This is poorly discoverable, annoying to use, and error prone.

The new save button asks for confirmation before overwriting the theme:
image
And doesn't allow overwriting of any of the stock themes:
image

Small caveat:
When trying to overwrite stock theme, the confirmation dialog will first pop up, and only then the status bar warning appears. Ideally, when trying to overwrite stock theme, the status bar warning would show immediately and the popup would never appear, but that would be at the cost of adding thick chunk of duplicate code into invoke function or having to extract filepath gathering into its own function. Both of these solutions seemed a bit unnecessary.

A new save button is added to the theme selector in User Preferences. ![image](/attachments/77f78500-10c1-48ea-9149-cde02b22c0ed) ----- The current process of saving theme modifications in Blender is quite embarrassing. User is required to use a button for adding new theme, and then type in the exact same name of already existing theme. This is poorly discoverable, annoying to use, and error prone. The new save button asks for confirmation before overwriting the theme: ![image](/attachments/a05991b4-5e86-4746-adbb-f767acad8445) And doesn't allow overwriting of any of the stock themes: ![image](/attachments/52b54cee-72ad-4e08-8faf-085d4bf5b2f4) Small caveat: When trying to overwrite stock theme, the confirmation dialog will first pop up, and only then the status bar warning appears. Ideally, when trying to overwrite stock theme, the status bar warning would show immediately and the popup would never appear, but that would be at the cost of adding thick chunk of duplicate code into invoke function or having to extract filepath gathering into its own function. Both of these solutions seemed a bit unnecessary.
3.4 KiB
5.9 KiB
6.3 KiB
Ludvik Koutny added 1 commit 2023-08-25 10:27:42 +02:00
Leon Schittek added this to the User Interface project 2023-08-25 13:13:37 +02:00
Ludvik Koutny added the
Interest
User Interface
label 2023-09-01 11:14:05 +02:00
Member

I think the confirmation popup makes sense, but the popup looks quite off to me (as in, unusual). I guess this can use one of our existing confirmation popup dialogs, like WM_operator_confirm_message().
Maybe @Harley has some more thoughts (or hints) with regards to his patches for confirmation popups.

I think the confirmation popup makes sense, but the popup looks quite off to me (as in, unusual). I guess this can use one of our existing confirmation popup dialogs, like `WM_operator_confirm_message()`. Maybe @Harley has some more thoughts (or hints) with regards to his patches for confirmation popups.
Harley Acheson requested review from Harley Acheson 2024-03-12 16:38:47 +01:00
Member

Closing as this functionality was added with #119491.

But thank you very much for working on this as it served to inform the solution put into place.

Closing as this functionality was added with #119491. But thank you very much for working on this as it served to inform the solution put into place.
Harley Acheson closed this pull request 2024-04-03 22:12:59 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
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
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#111506
No description provided.