UI: Blinking Text Cursors #116595
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
Asset Browser Project
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#116595
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Harley/blender:TextCursors"
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?
Blinking cursor while in an active area, dimmed cursor when not.
This PR tries to give a better indication of the text cursor (caret), especially when your mouse leaves the active area and therefore text input stops. Accidentally having your mouse move out of an area and therefore stop taking input is a common frustration.
Don't like blinking? Just turn it off in Preferences.
Afterward it won't blink, but will still dim when your mouse is out of the active area:
The blinking rate is 530 milliseconds, the default for Windows text carets. The blink state is set to "on" immediately on mouse selection and text cursor movement, otherwise it could feel like a delay in selection depending on where it was in the blink cycle.
Unlike every other application this is not turning the cursor off completely during the blink cycle but just lowers the opacity. This feels a lot nicer to me and looks like a single thing pulsing rather than something appearing and disappearing. It fills the space nicer when selecting, since we show the caret with text selections.
8622b55b98
to6df570c508
@blender-bot build
WIP: UI: Blinking Text Cursorsto UI: Blinking Text CursorsRedrawing the region for this is too inefficient. The
draw_overlay
region callback exists for this purpose.Also be sure to check that when the window goes out of focus or is minimized, the timer and redraws are stopped.
Good point, will look into that.
Thanks
UI: Blinking Text Cursorsto WIP: UI: Blinking Text CursorsPlease make this purely optional (or not at all, preferably). I dislike flashing lights and ui elements.
Yes, don't worry about this yet. This is more a thing to look at and consider, weigh the benefits and advantages (if any). It is best evaluated by actually trying it - I can make you a build if you don't compile yourself. But yes, if this is something we really liked we'd probably need a make the flashing speed configurable, and so setting to 0 would turn off blinking.
@ThinkingPolygons - Sorry I deleted your comment by accident. Actually I tried just quoting it and replying and it somehow ended up with me editing your comment instead.
@Harley its literally everywhere on windows 10
e.g notepad
explorer search
windows search
@ThinkingPolygons
Hey, thanks for the examples! Weird that it does that in some places and products, but not all. But yes, I never noticed that. Thanks for your patience in pointing that out.
Module meeting agreed on:
61a6a5ef47
tod38eaadfc0
WIP: UI: Blinking Text Cursorsto UI: Blinking Text CursorsEven though the behavior now is much nicer since it only blinks when needed, I think the option to toggle it off must come back.
In the same way that a blinking cursor is an accessibility feature (for example to make it easier to find the cursor for the visually impaired), being able to disable blinking is also an accesibility feature for those who prefer reduced motion.
If you google for "disable blink caret cursor" you'll find thousands of questions on how to disable it on all kinds of software (browsers, terminals, word processing, operating-system level).
Once the option to disable it comes back, to me this is ready to go +1
@blender-bot build
@HooglyBoogly
I double-checked this and have to say I misspoke. Text Editor here uses a region draw_overlay for the cursor, but Console does not. I couldn't figure out how to do so with the way that it draws.
Checkout
From your project repository, check out a new branch and test the changes.