Make status bar symbols follow OS conventions #63012

Closed
opened 2019-03-27 15:25:26 +01:00 by William Reynish · 15 comments

As discussed here: https://devtalk.blender.org/t/status-bar-symbols-for-keys/

Currently, the status bar symbols don't follow OS conventions. Here's an overview of how we should differentiate the symbols, compiled by user vollstock:

Key Linux Windows Mac
Control [Ctrl] [Ctrl] ^
Alt / Option [Alt] [Alt]
OSkey / Cmd
Shift

Once implemented, we could even extend this so that our menus use the same symbols also.

As discussed here: https://devtalk.blender.org/t/status-bar-symbols-for-keys/ Currently, the status bar symbols don't follow OS conventions. Here's an overview of how we should differentiate the symbols, compiled by user vollstock: | Key | Linux | Windows | Mac | |--------------|--------|---------|-------| | Control | [Ctrl] | [Ctrl] | ^ | | Alt / Option | [Alt] | [Alt] | ⌥ | | OSkey / Cmd | ❖ | ❖ | ⌘ | | Shift | ⇧ | ⇧ | ⇧ | Once implemented, we could even extend this so that our menus use the same symbols also.
Added subscribers: @WilliamReynish, @A.Lex_3D, @CharlieJolly, @schweppie, @Hexbob6, @freemind, @PierreSchiller, @SteffenD, @remotecrab131, @Thane5, @orvb, @brezdo, @iss, @0o00o0oo, @ideasman42, @RamiroCantu, @Regnas, @Harley

#65555 was marked as duplicate of this issue

#65555 was marked as duplicate of this issue

Added subscriber: @DuarteRamos

Added subscriber: @DuarteRamos
Member

I will probably look at this one next. Look like fun.

I will probably look at this one next. Look like fun.
Member

Some notes on this, for me or others...

With the status bar keymap drawing, there is an assumption that all keys can be shown within the size of an icon, so at 1X scale that's 14x14 of pixels inside an 18x18 square. This is enough space for most simple keys, and Mac has some recognizable symbols that can be used. But there are some cases where a key name cannot fit in 14 pixels. Best example is the Ctrl key when on PCs (Mac might use mac command which has an icon). But on PCs there isn't a recognizable icon and the best way to show it is simply "Ctrl". Ideally it would be shown (eventually) as "Strg" if in German for example. At a font size small enough to fit inside that space those words are not recognizable. Even "Esc" barely fits but has to be so small that it is hard to read - and being easy to read is the most important part of the exercise.

This means that a first part is to alter WM_window_modal_keymap_status_draw() in wm_event_system.c (around a call to UI_icon_from_keymap_item) so that it can handle a mixture of text and icons. That can differ by event and OS. Once done then interface_icons_event.c can be changed to only output icon versions if needed.

Some notes on this, for me or others... With the status bar keymap drawing, there is an assumption that all keys can be shown within the size of an icon, so at 1X scale that's 14x14 of pixels inside an 18x18 square. This is enough space for most simple keys, and Mac has some recognizable symbols that can be used. But there are some cases where a key name cannot fit in 14 pixels. Best example is the Ctrl key when on PCs (Mac might use mac command which has an icon). But on PCs there isn't a recognizable icon and the best way to show it is simply "Ctrl". Ideally it would be shown (eventually) as "Strg" if in German for example. At a font size small enough to fit inside that space those words are not recognizable. Even "Esc" barely fits but has to be so small that it is hard to read - and being easy to read is the most important part of the exercise. This means that a first part is to alter WM_window_modal_keymap_status_draw() in wm_event_system.c (around a call to UI_icon_from_keymap_item) so that it can handle a *mixture* of text and icons. That can differ by event and OS. Once done then interface_icons_event.c can be changed to only output icon versions if needed.

Added subscribers: @peticel, @mont29

Added subscribers: @peticel, @mont29

Added subscriber: @Constantina32

Added subscriber: @Constantina32
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Aaron Carlisle self-assigned this 2020-02-11 04:46:41 +01:00
Member
dc3f073d1c

Removed subscriber: @Constantina32

Removed subscriber: @Constantina32

Added subscriber: @elmihir

Added subscriber: @elmihir

This comment was removed by @elmihir

*This comment was removed by @elmihir*

Removed subscriber: @Thane5

Removed subscriber: @Thane5

Removed subscriber: @brezdo

Removed subscriber: @brezdo
Sign in to join this conversation.
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
10 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#63012
No description provided.