UI Test: Dialog Title Move Hand Cursor #118358

Open
Harley Acheson wants to merge 1 commits from Harley/blender:DialogMoveHand into main

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

Mouse cursor changes to a "Hand" to indicate that popup blocks can be
moved by dragging the title region.


@pablovazquez wanted to try this.

image

Mouse cursor changes to a "Hand" to indicate that popup blocks can be moved by dragging the title region. --- @pablovazquez wanted to try this. ![image](/attachments/2659521a-7bd1-4289-88d7-21f967ef514a)
Harley Acheson added 1 commit 2024-02-16 02:16:34 +01:00
0517d5a157 UI Test: Dialog Title Move Hand Cursor
Mouse cursor changes to a "Hand" to indicate that popup blocks can be
moved by dragging the title region.
Harley Acheson added this to the User Interface project 2024-02-16 02:18:07 +01:00
Harley Acheson requested review from Pablo Vazquez 2024-02-16 17:19:08 +01:00
Member

Thanks for trying it out!

That is one ugly cursor, Windows. Testing on macOS it seems to use the wrong cursor (this one is used for links):

It should (if possible) use the open hand icon on hover, and closed hand on drag:

macos Cursors

From https://support.apple.com/en-mt/guide/mac-help/mh35695/mac

Thanks for trying it out! That is one ugly cursor, Windows. Testing on macOS it seems to use the wrong cursor (this one is used for links): <video src="/attachments/0375e2fd-de07-404f-a9e7-087717a71b39" title="Screen Recording 2024-02-16 at 18.17.10.mov" controls></video> It should (if possible) use the open hand icon on hover, and closed hand on drag: ![macos Cursors](/attachments/6d76e8d9-0600-495b-b3f3-a91f4b560f91) From https://support.apple.com/en-mt/guide/mac-help/mh35695/mac
Author
Member

Testing on macOS it seems to use the wrong cursor (this one is used for links):

Oh, we should treat that as a bug. We hardly use that cursor for anything so haven't noticed that. gpencil uses that somewhere, but is for a move not a point or selection.

We only have one hand cursor defined in our source, WM_CURSOR_HAND, and that maps to a ghost cursor type of GHOST_kStandardCursorMove, which makes sense. But the Mac source - GHOST_WindowCocoa.mm - that is now using pointingHandCursor when I think it should be openHandCursor

It should (if possible) use the open hand icon on hover, and closed hand on drag

On Windows we don't have this supplied by the OS, but it is something we made for Blender. But we only made "open hand" not "closed hand". Not that we couldn't make it.

> Testing on macOS it seems to use the wrong cursor (this one is used for links): Oh, we should treat that as a bug. We hardly use that cursor for anything so haven't noticed that. gpencil uses that somewhere, but is for a move not a point or selection. We only have one hand cursor defined in our source, WM_CURSOR_HAND, and that maps to a ghost cursor type of GHOST_kStandardCursorMove, which makes sense. But the Mac source - GHOST_WindowCocoa.mm - that is now using pointingHandCursor when I think it should be openHandCursor > It should (if possible) use the open hand icon on hover, and closed hand on drag On Windows we don't have this supplied by the OS, but it is something we made for Blender. But we only made "open hand" not "closed hand". Not that we couldn't make it.
Author
Member

@pablovazquez - Testing on macOS it seems to use the wrong cursor (this one is used for links):

There is now a PR for that but requires a Mac dev to test: #118423

> @pablovazquez - Testing on macOS it seems to use the wrong cursor (this one is used for links): There is now a PR for that but requires a Mac dev to test: #118423
Member

On Windows we don't have this supplied by the OS, but it is something we made for Blender. But we only made "open hand" not "closed hand".

Just noticed the Image Viewer actually has an open/close hand pointer. But probably made ad-hoc for the image viewer? Not sure which other Windows apps have such a feature to compare.

Not that we couldn't make it.

If we do I'd go for something smaller like macOS'.

> On Windows we don't have this supplied by the OS, but it is something we made for Blender. But we only made "open hand" not "closed hand". Just noticed the Image Viewer actually has an open/close hand pointer. But probably made ad-hoc for the image viewer? Not sure which other Windows apps have such a feature to compare. <video src="/attachments/2dd6ed01-f30a-4de7-b3cc-8270d1dafd89" title="Recording 2024-02-18 225045.mp4" controls></video> > Not that we couldn't make it. If we do I'd go for something smaller like macOS'.
Author
Member

Just noticed the Image Viewer actually has an open/close hand pointer. But probably made ad-hoc for the image viewer? Not sure which other Windows apps have such a feature to compare.

Yes, we have the ability use custom cursors, but the OS doesn't supply many on its own. Those were just made for that program, similar to how we have lots of custom ones in Blender. https://learn.microsoft.com/en-us/windows/win32/menurc/about-cursors

> Just noticed the Image Viewer actually has an open/close hand pointer. But probably made ad-hoc for the image viewer? Not sure which other Windows apps have such a feature to compare. Yes, we have the ability use custom cursors, but the OS doesn't supply many on its own. Those were just made for that program, similar to how we have lots of custom ones in Blender. https://learn.microsoft.com/en-us/windows/win32/menurc/about-cursors
First-time contributor

hands are cool, i know, but most of the time when dragging something in blender, the following cursor shows up:
image
so why not stick with it for consistency sake?

hands are cool, i know, but most of the time when dragging something in blender, the following cursor shows up: ![image](https://projects.blender.org/attachments/abaede05-3560-4f3c-83de-0c57ba36b93b) so why not stick with it for consistency sake?
Author
Member

@ThinkingPolygons - so why not stick with it for consistency sake?

True. This PR is mostly looking at how we can make it more obvious to users that they can drag dialogs.

But not sure I could get used to seeing a hand cursor on Windows, no matter how they are redesigned - it just isn't something we normally see so looks a bit... "goofy". But we could easily make it so that a WM_CURSOR_MOVE becomes a IDC_SIZEALL on Windows while Mac users see their openHandCursor

> @ThinkingPolygons - so why not stick with it for consistency sake? True. This PR is mostly looking at how we can make it more obvious to users that they can drag dialogs. But not sure I could get used to seeing a hand cursor on Windows, no matter how they are redesigned - it just isn't something we normally see so looks a bit... "goofy". But we could easily make it so that a WM_CURSOR_MOVE becomes a IDC_SIZEALL on Windows while Mac users see their openHandCursor
Member

so looks a bit... "goofy".

It looks goofy on Windows because of their oversized hand cursor. On Linux it will depend on the DE theme, and on macOS it looks native.

we could easily make it so that a WM_CURSOR_MOVE becomes a IDC_SIZEALL on Windows while Mac users see their openHandCursor

That could work as a trade-off. Shall we try it out if it's not too much work?

> so looks a bit... "goofy". It looks goofy on Windows because of their oversized hand cursor. On Linux it will depend on the DE theme, and on macOS it looks native. > we could easily make it so that a WM_CURSOR_MOVE becomes a IDC_SIZEALL on Windows while Mac users see their openHandCursor That could work as a trade-off. Shall we try it out if it's not too much work?
First-time contributor

I'd prefer the 4-tri cursor that thinking polygons screenshoted ... Personally I've never liked cursors that look like a hand. Something just weird about it. It's like someone amputated Mickey mouse.

I'd prefer the 4-tri cursor that thinking polygons screenshoted ... Personally I've never liked cursors that look like a hand. Something just weird about it. It's like someone amputated Mickey mouse.
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u DialogMoveHand:Harley-DialogMoveHand
git checkout Harley-DialogMoveHand
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
4 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#118358
No description provided.