Node Editor: Improve padding around buttons and sockets #118972

Merged
Leon Schittek merged 1 commits from lone_noel/blender:node-layout-padding into main 2024-03-22 09:09:59 +01:00
Member

Make the padding that is added above and below buttons and sockets
more consistent across nodes.


Issue
There were some inconsistencies regarding the padding at the top and bottom of nodes:

  • On nodes without input sockets the padding was missing at the end (top row in the first pair of screenshots below)
  • When the buttons on input nodes were hidden, the additional padding was still added (bottom row in the first pair of screenshots below)
  • On nodes that didn't use the declarations there was no padding added above the buttons (second pair of screenshots)

Comparison

main branch pull request
main_node-padding.png pr_node-padding.png
main_node-padding_2.png pr_node-padding_2.png
Make the padding that is added above and below buttons and sockets more consistent across nodes. ___ **Issue** There were some inconsistencies regarding the padding at the top and bottom of nodes: * On nodes without input sockets the padding was missing at the end (*top row in the first pair of screenshots below*) * When the buttons on input nodes were hidden, the additional padding was still added (*bottom row in the first pair of screenshots below*) * On nodes that didn't use the declarations there was no padding added above the buttons (*second pair of screenshots*) **Comparison** |main branch|pull request| |---|---| |![main_node-padding.png](/attachments/c78a9b1c-29c9-48cf-866c-d6c596cbb843)|![pr_node-padding.png](/attachments/53ddf579-fe50-4315-9768-706e1deec9e7)| |![main_node-padding_2.png](/attachments/5657cf80-5847-4b16-9892-708b92160485)|![pr_node-padding_2.png](/attachments/f1394625-ccc6-490b-bcdd-567cc2aa117f)|
Leon Schittek added the
Interest
User Interface
label 2024-03-01 18:44:50 +01:00
Leon Schittek added 1 commit 2024-03-01 18:45:02 +01:00
buildbot/vexp-code-patch-darwin-arm64 Build started. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
69fc400cdc
Node Editor: Improve padding around buttons and sockets
Make the padding that is added above and below buttons and sockets
more consistent across nodes.
Leon Schittek added this to the Nodes & Physics project 2024-03-01 18:45:05 +01:00
Lukas Tönne approved these changes 2024-03-21 09:39:36 +01:00
Member

@blender-bot build

@blender-bot build
Leon Schittek merged commit 5acf2984d4 into main 2024-03-22 09:09:59 +01:00
Leon Schittek deleted branch node-layout-padding 2024-03-22 09:10:02 +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 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#118972
No description provided.