Fix #95045: UI: keymap header in preferences truncated when filtering #114012

Merged
Harley Acheson merged 1 commits from pioverfour/blender:dp_make_keymap_title_wider into main 2023-11-29 22:36:19 +01:00
Member

The UI displaying keymaps in the User Preferences is different
depending on whether the filter is being used or not. If it is used,
the header for each keymap is cut short using the default window size.
Even resizing the window has little effect. For instance, searching
for "grease" will display:

  • Grease Pencil ...
  • Grease Pencil ...
  • Grease Pencil ...

instead of:

  • Grease Pencil Stroke Edit Mode
  • Grease Pencil Stroke Paint Mode
  • Grease Pencil Stroke Paint (Draw brush)

This commit changes the UI so that the title takes up all available
space. It reuses the code from the case where the filter is empty.
This makes the Restore button narrower, matching the no-filter
version.


Here is a comparison, with the UI without any filter as well, to compare the Restore button width:

Before After Before (no-filter)
keymap_search_title_before.png keymap_search_title_after.png keymap_search_title_ref.png
The UI displaying keymaps in the User Preferences is different depending on whether the filter is being used or not. If it is used, the header for each keymap is cut short using the default window size. Even resizing the window has little effect. For instance, searching for "grease" will display: - Grease Pencil ... - Grease Pencil ... - Grease Pencil ... instead of: - Grease Pencil Stroke Edit Mode - Grease Pencil Stroke Paint Mode - Grease Pencil Stroke Paint (Draw brush) This commit changes the UI so that the title takes up all available space. It reuses the code from the case where the filter is empty. This makes the Restore button narrower, matching the no-filter version. ----- Here is a comparison, with the UI without any filter as well, to compare the Restore button width: | Before | After | Before (no-filter) | |--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------| | ![keymap_search_title_before.png](/attachments/63fa2982-b06f-4fa9-b962-757b110773cd) | ![keymap_search_title_after.png](/attachments/d7d0d99a-df5d-419a-a3fb-ea596e14527a) | ![keymap_search_title_ref.png](/attachments/67240b86-47eb-4b08-909f-f92bb108dafc) |
Damien Picard added the
Interest
User Interface
label 2023-10-21 18:59:17 +02:00
Damien Picard added 1 commit 2023-10-21 18:59:27 +02:00
a43c3d6bae UI: let keymap header take more horizontal space when filtering
The UI displaying keymaps in the User Preferences is different
depending on whether the filter is being used or not. If it is used,
the header for each keymap is cut short using the default window size.
Even resizing the window has little effect. For instance, searching
for "grease" will display:

- Grease Pencil ...
- Grease Pencil ...
- Grease Pencil ...

instead of:

- Grease Pencil Stroke Edit Mode
- Grease Pencil Stroke Paint Mode
- Grease Pencil Stroke Paint (Draw brush)

This commit changes the UI so that the title takes up all available
space. It reuses the code from the case where the filter is empty.
This makes the Restore button narrower, matching the no-filter
version.
Contributor

This fix : #112057

This fix : #112057
Damien Picard changed title from UI: let keymap header take more horizontal space when filtering to Fix #112057: keymap header in preferences truncated when filtering 2023-10-21 20:51:32 +02:00
Damien Picard changed title from Fix #112057: keymap header in preferences truncated when filtering to Fix #112057: keymap header in preferences truncated when filtering 2023-10-21 20:52:00 +02:00
pioverfour changed target branch from main to blender-v4.0-release 2023-10-21 20:52:02 +02:00
Damien Picard changed title from Fix #112057: keymap header in preferences truncated when filtering to Fix : UI: keymap header in preferences truncated when filtering 2023-10-21 21:02:07 +02:00
Damien Picard changed title from Fix : UI: keymap header in preferences truncated when filtering to Fix: UI: keymap header in preferences truncated when filtering 2023-10-22 09:56:35 +02:00
Damien Picard changed title from Fix: UI: keymap header in preferences truncated when filtering to Fix #95045: UI: keymap header in preferences truncated when filtering 2023-10-23 12:09:26 +02:00
Iliya Katushenock added this to the User Interface project 2023-11-20 17:16:55 +01:00
Iliya Katushenock removed the
Interest
User Interface
label 2023-11-20 17:17:01 +01:00
Harley Acheson requested review from Harley Acheson 2023-11-20 18:11:55 +01:00
Harley changed target branch from blender-v4.0-release to main 2023-11-29 22:32:44 +01:00
Harley Acheson approved these changes 2023-11-29 22:33:40 +01:00
Harley Acheson left a comment
Member

works great!

works great!
Harley Acheson merged commit 3f5fd74953 into main 2023-11-29 22:36:19 +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#114012
No description provided.