UI: Remove unnecessary empty spaces in Custom Properties panels #115913

Merged
Pablo Vazquez merged 2 commits from nickberckley/blender:custom-properties-panel into main 2024-02-05 14:34:25 +01:00
Contributor

Removes unnecessary empty space in Custom Properties panels by adding align=True to row. Gives properties bit more space and makes them more readable and aligned.

In Properties panel that is in the 'Sidebar - Item', empty space was created purposefully on the right hand side, with comment saying so that it lines up with layout and decorations. I have to assume either this is comment from pre-2.80 times, or they mean to align with lock property icons in Transform panels. Either way, I think this is outdated and makes properties misaligned, so I removed the empty space. This will give rig properties more space in already thin UI

Before After
properties_before.png properties_after.png
sidebar_before.png sidebar_after.png
Removes unnecessary empty space in Custom Properties panels by adding align=True to row. Gives properties bit more space and makes them more readable and aligned. In Properties panel that is in the 'Sidebar - Item', empty space was created purposefully on the right hand side, with comment saying so that it lines up with layout and decorations. I have to assume either this is comment from pre-2.80 times, or they mean to align with lock property icons in Transform panels. Either way, I think this is outdated and makes properties misaligned, so I removed the empty space. This will give rig properties more space in already thin UI | Before | After | | -------- | -------- | | ![properties_before.png](/attachments/72560603-395d-4e0c-ab77-9e4db3c1f967) | ![properties_after.png](/attachments/b47ebfc1-4578-4f62-9242-d60e8390622f) | | ![sidebar_before.png](/attachments/c50a6965-0281-46f0-8fe4-c50f0e3fd7ca) | ![sidebar_after.png](/attachments/4fa2d731-d7f6-4790-9aa6-8b5572767586) |
Nika Kutsniashvili added 1 commit 2023-12-07 21:51:38 +01:00
Nika Kutsniashvili requested review from Harley Acheson 2023-12-07 21:53:00 +01:00
RedMser reviewed 2023-12-08 01:23:00 +01:00
@ -235,3 +235,1 @@
else:
# Add some spacing, so the right side of the buttons line up with layouts with decorators.
operator_row.label(text="", icon='BLANK1')
# else:
Contributor

You should remove unused code instead of commenting it out.

You should remove unused code instead of commenting it out.
Author
Contributor

Yeah I wasnt sure about guideline on that so waited for a reply.

Yeah I wasnt sure about guideline on that so waited for a reply.
nickberckley marked this conversation as resolved
Iliya Katushenock added this to the User Interface project 2023-12-08 08:07:30 +01:00
Nika Kutsniashvili added 1 commit 2023-12-08 15:46:09 +01:00
Pablo Vazquez reviewed 2024-02-05 12:36:45 +01:00
Pablo Vazquez left a comment
Member

...comment saying so that it lines up with layout and decorations. I have to assume either this is comment from pre-2.80 times

Decorators were introduced in 2.80.

You can do git blame or use a kind of git lens plugin on your IDE to see the commits for a specific line and who made it. To understand a bit better why specific changes are made. This line in particular was introduced by @HooglyBoogly in D12805 so it's good to ask him before making any changes.

> ...comment saying so that it lines up with layout and decorations. I have to assume either this is comment from pre-2.80 times Decorators were introduced in 2.80. You can do `git blame` or use a kind of git lens plugin on your IDE to see the commits for a specific line and who made it. To understand a bit better why specific changes are made. This line in particular was introduced by @HooglyBoogly in [D12805](https://archive.blender.org/developer/D12805) so it's good to ask him before making any changes.
Member

Yeah, this seems fine. Nothing really lines up very well here anyway.

Yeah, this seems fine. Nothing really lines up very well here anyway.
Pablo Vazquez approved these changes 2024-02-05 14:32:09 +01:00
Pablo Vazquez merged commit 2274f58ef2 into main 2024-02-05 14:34:25 +01:00
Pablo Vazquez deleted branch custom-properties-panel 2024-02-05 14:34:27 +01:00
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
4 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#115913
No description provided.