UI: Changes to Small Operator Confirmations #118346

Merged
Harley Acheson merged 5 commits from Harley/blender:SmallConfirmations into main 2024-03-12 23:12:56 +01:00
Member

Small operator confirmations get separate confirm and cancel buttons,
better descriptions and configurable confirm button text. But still
popup at cursor location and can be cancelled with mouse movement.


I should preface this by stating some obvious things. Nobody likes excessive "are you sure?" confirmations. We will be working to remove some where we can, and possibly make others user configurable. But we still have some, and while we do this PR makes them work a bit better.

First it adds separate "Cancel" button and swaps things around slightly. The operation remains the same though. These pop up at your mouse cursor location with the confirm button under your mouse. You can execute them by clicking your mouse or hitting "Enter" on your keyboard. You can cancel by clicking the button, hitting "Escape", or by moving your mouse cursor out of the area.

So by default a generic operator, here using "Object Delete" as example, goes from the one illustrated above to shown below:

image

But then the PR goes further and adds custom message text and button text for ALL current confirmations. This means that "Object Delete" actually looks like this:

image

If you want to review exactly what text is used on each confirmation, they can be seen on one page here: #118341

Small operator confirmations get separate confirm and cancel buttons, better descriptions and configurable confirm button text. But still popup at cursor location and can be cancelled with mouse movement. --- I should preface this by stating some obvious things. Nobody likes excessive "are you sure?" confirmations. We will be working to remove some where we can, and possibly make others user configurable. But we still have some, and while we do this PR makes them work a bit better. First it adds separate "Cancel" button and swaps things around slightly. The operation remains the same though. These pop up at your mouse cursor location with the confirm button under your mouse. You can execute them by clicking your mouse or hitting "Enter" on your keyboard. You can cancel by clicking the button, hitting "Escape", or by moving your mouse cursor out of the area. So by default a generic operator, here using "Object Delete" as example, goes from the one illustrated above to shown below: ![image](/attachments/029a0129-c19b-4d81-b0fd-95389b478b32) But then the PR goes further and adds custom message text and button text for **ALL** current confirmations. This means that "Object Delete" actually looks like this: ![image](/attachments/3ee003c0-999a-47c4-bc49-c33a04bc6744) If you want to review exactly what text is used on each confirmation, they can be seen on one page here: #118341
Member

How about removing the ? from the default OK?. That's probably a bit more standard and reads more like a button that will do something.

How about removing the `?` from the default `OK?`. That's probably a bit more standard and reads more like a button that will do something.
Harley Acheson added this to the User Interface project 2024-02-15 21:36:52 +01:00
Author
Member

@HooglyBoogly - How about removing the ? from the default OK?...

Yes! I was trying to make as little change as possible, but this looks way less goofy. Thanks!

> @HooglyBoogly - How about removing the `?` from the default `OK?`... Yes! I was trying to make as little change as possible, but this looks way less goofy. Thanks!
Author
Member

@TheRedWaxPolice

I somehow managed to edit your comment instead of replying to it. Will try to recreate below and delete your comment above because it looks like you said something you did not. Sorry about that.

That's actually the most annoying feature of those "small" popups imo

I agree, but enough people like it as a very fast dismissal. This PR is about making them a bit more informative with as little disruption as possible.

If only we had a setting to disable that....

That is a possibility, but I don't think I want to tackle that quite yet.

@TheRedWaxPolice I somehow managed to edit your comment instead of replying to it. Will try to recreate below and delete your comment above because it looks like you said something you did not. Sorry about that. > That's actually the most annoying feature of those "small" popups imo I agree, but enough people like it as a very fast dismissal. This PR is about making them a bit more informative with as little disruption as possible. > If only we had a setting to disable that.... That is a possibility, but I don't think I want to tackle that quite yet.
First-time contributor

enough people like it as a very fast dismissal

Wow, really? Now that's a surprise...

That is a possibility, but I don't think I want to tackle that quite yet.

No worries...
Cheers..

> enough people like it as a very fast dismissal Wow, really? Now that's a surprise... > That is a possibility, but I don't think I want to tackle that quite yet. No worries... Cheers..
Harley Acheson force-pushed SmallConfirmations from 9399cdcfef to ec2493fd57 2024-02-27 23:25:03 +01:00 Compare
Harley Acheson requested review from Pablo Vazquez 2024-03-01 19:36:38 +01:00
Harley Acheson added 1 commit 2024-03-12 20:50:31 +01:00
Harley Acheson added 1 commit 2024-03-12 22:01:36 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
f33bf490a2
"Create new directory" case correction. No icons for small confirmations.
Author
Member

@blender-bot build

@blender-bot build
Harley Acheson added 1 commit 2024-03-12 22:19:52 +01:00
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
0c6e477722
Capitalization issue for include name
Author
Member

@blender-bot build

@blender-bot build
Harley Acheson added 1 commit 2024-03-12 22:53:32 +01:00
Harley Acheson merged commit 443ea628c5 into main 2024-03-12 23:12:56 +01:00
Harley Acheson deleted branch SmallConfirmations 2024-03-12 23:12:59 +01:00
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#118346
No description provided.