UI: align tab labels towards panels #105835

Merged
Pablo Vazquez merged 1 commits from guishe/blender:sidebar-labels into main 2023-03-20 15:20:54 +01:00
Contributor

Align the labels on the tabs so that when you read them, your head is tilted
towards the content, instead of away.

When tabs are drawn to the right of panels in the sidebar, the labels are read
from bottom to top, which may suggest that this tab does not belong to the area.

This change does it like this:

  • Sidebar on the right: the text is read from top to bottom.
  • Sidebar on the left: the text keeps reading from bottom to top.
Align the labels on the tabs so that when you read them, your head is tilted towards the content, instead of away. When tabs are drawn to the right of panels in the sidebar, the labels are read from bottom to top, which may suggest that this tab does not belong to the area. This change does it like this: * Sidebar on the right: the text is read from top to bottom. * Sidebar on the left: the text keeps reading from bottom to top.
Guillermo Venegas changed title from User interface: align tab labels towards panels to UI: align tab labels towards panels 2023-03-16 17:06:55 +01:00
Author
Contributor

The labels in the tabs are aligned towards the content for a better link of these. Here is an image showing the expected improvement.

image

Here is an image showing what it looks like.

image

The labels in the tabs are aligned towards the content for a better link of these. Here is an image showing the expected improvement. ![image](/attachments/3fbcf400-716b-4b1f-9a90-35215a75412e) Here is an image showing what it looks like. ![image](/attachments/a05243f0-d999-4afe-9100-03e76854f126)
Guillermo Venegas force-pushed sidebar-labels from aea05000a9 to 88c36d46e9 2023-03-16 17:31:52 +01:00 Compare
Guillermo Venegas force-pushed sidebar-labels from 88c36d46e9 to 2daf6c69be 2023-03-16 17:32:36 +01:00 Compare
Guillermo Venegas force-pushed sidebar-labels from 2daf6c69be to 40ee610712 2023-03-16 17:37:23 +01:00 Compare
Guillermo Venegas force-pushed sidebar-labels from 40ee610712 to 400774c840 2023-03-16 17:45:49 +01:00 Compare
Pablo Vazquez added the
Module
User Interface
label 2023-03-16 17:54:00 +01:00
Pablo Vazquez added this to the User Interface project 2023-03-16 17:54:05 +01:00
Pablo Vazquez requested review from Julian Eisel 2023-03-17 15:07:12 +01:00
Member

Thanks for working on it!

We were talking about this with @JulianEisel the other day actually, so adding him to have a look at the code.

Thanks for working on it! We were talking about this with @JulianEisel the other day actually, so adding him to have a look at the code.
Julian Eisel approved these changes 2023-03-20 11:50:14 +01:00
Julian Eisel left a comment
Member

Nice! I agree that it should behave this way.

Just a minor tweak for the code, looking fine otherwise.

Nice! I agree that it should behave this way. Just a minor tweak for the code, looking fine otherwise.
@ -1333,3 +1333,3 @@
BLF_enable(fontid, BLF_ROTATION);
BLF_rotation(fontid, M_PI_2);
BLF_rotation(fontid, is_left ? M_PI_2 : M_PI + M_PI_2);
Member

is_left ? M_PI_2 : -M_PI_2

`is_left ? M_PI_2 : -M_PI_2`
guishe marked this conversation as resolved
Member

Props for the visual explanation by the way :)

Props for the visual explanation by the way :)
Guillermo Venegas force-pushed sidebar-labels from 400774c840 to bc2ec894ad 2023-03-20 13:27:43 +01:00 Compare
Guillermo Venegas force-pushed sidebar-labels from bc2ec894ad to b1cfa9a17b 2023-03-20 13:29:15 +01:00 Compare
Pablo Vazquez force-pushed sidebar-labels from b1cfa9a17b to 9382308704 2023-03-20 15:19:46 +01:00 Compare
Pablo Vazquez merged commit 4bb9006089 into main 2023-03-20 15:20:54 +01:00
Pablo Vazquez deleted branch sidebar-labels 2023-03-20 15:20:55 +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#105835
No description provided.