UI: Change Overlay Text Size with Label Text Style #112875

Merged
Harley Acheson merged 3 commits from Harley/blender:TextOverlaySize into main 2023-09-26 23:07:36 +02:00
Member

Text Overlays are currently hard-coded to 11 points. This allows them
to be set with Preferences / Themes / Text Styles, Widget Label.


We are currently considering changes to Text Style sizes. Unfortunately the View3D Text Overlays ("Text Info" and "Statistics") are currently hardcoded to be 11 points. This just allows them to be changed with Text Styles, and uses a line spacing based on the text size.

Text Overlays are currently hard-coded to 11 points. This allows them to be set with Preferences / Themes / Text Styles, Widget Label. --- We are currently [considering changes to Text Style sizes](https://projects.blender.org/blender/blender/issues/112748). Unfortunately the View3D Text Overlays ("Text Info" and "Statistics") are currently hardcoded to be 11 points. This just allows them to be changed with Text Styles, and uses a line spacing based on the text size.
Harley Acheson added 1 commit 2023-09-25 20:14:42 +02:00
554f4e2138 UI: Change Overlay Text Size with Label Text Style
Text Overlays are currently hard-coded to 11 points. This allows them
to be set with Preferences / Themes / Text Styles, Widget Label.
Harley Acheson added this to the User Interface project 2023-09-25 20:14:58 +02:00
Harley Acheson requested review from Pablo Vazquez 2023-09-25 20:15:05 +02:00
Member

Interesting! First, yes, we should definitely have this. +1

I love it that it also adjusts the size of numbers in the animation/vse editors and the labels in strips in VSE. We should (as a separate patch) tackle the issues that this brings to light (like the node editor breadcrumbs not following it and spacing away, also present before the patch).

Just to show an example, before patch:

After:

Interesting! First, yes, we should definitely have this. +1 I love it that it also adjusts the size of numbers in the animation/vse editors and the labels in strips in VSE. We should (as a separate patch) tackle the issues that this brings to light (like the node editor breadcrumbs not following it and spacing away, also present before the patch). Just to show an example, before patch: <video src="/attachments/02020d29-7d78-451d-b96e-9712dd77e494" title="before.mp4" controls></video> After: <video src="/attachments/34599466-48e1-495c-9c96-8460707ba73b" title="after.mp4" controls></video>
Pablo Vazquez approved these changes 2023-09-26 12:42:54 +02:00
Author
Member

Hmmm... I think it would be best to limit this change to the overlays. I am setting it correctly in this place, but in all the other places they are simply failing to set an output size and using what is previously. Therefore I should, for now, set the size back to the arbitrary 11 at the end of the text overlay routines.

Hmmm... I think it would be best to limit this change to the overlays. I am setting it correctly in this place, but in all the other places they are simply failing to set an output size and using what is previously. Therefore I should, for now, set the size back to the arbitrary 11 at the end of the text overlay routines.
Harley Acheson added 2 commits 2023-09-26 20:24:42 +02:00
Author
Member

@pablovazquez - This now only affect the text overlays. Anything else not being properly set to a text style size would have to be dealt with in those code locations.

@pablovazquez - This now only affect the text overlays. Anything else not being properly set to a text style size would have to be dealt with in those code locations.
Author
Member

@blender-bot build

@blender-bot build
Member

@pablovazquez - This now only affect the text overlays. Anything else not being properly set to a text style size would have to be dealt with in those code locations.

As agreed on during the meeting let's go with this and tackle this in the future. We shouldn't hardcode font sizes.

> @pablovazquez - This now only affect the text overlays. Anything else not being properly set to a text style size would have to be dealt with in those code locations. As agreed on during the meeting let's go with this and tackle this in the future. We shouldn't hardcode font sizes.
Harley Acheson merged commit e64e39e3d0 into main 2023-09-26 23:07:36 +02:00
Harley Acheson deleted branch TextOverlaySize 2023-09-26 23:07:38 +02: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
2 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#112875
No description provided.