Skip to content

Commit a944372

Browse files
webfilteredgithub-actions
andauthored
Improve default node sizes (#3596)
Co-authored-by: github-actions <[email protected]>
1 parent df51e89 commit a944372

17 files changed

+45
-2
lines changed
148 Bytes
Loading
231 Bytes
Loading
2.13 KB
Loading
-9 Bytes
Loading
13 KB
Loading
-71 Bytes
Loading
-30 Bytes
Loading

src/constants/coreSettings.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,5 +794,14 @@ export const CORE_SETTINGS: SettingParams[] = [
794794
type: 'boolean',
795795
defaultValue: true,
796796
versionAdded: '1.16.1'
797+
},
798+
{
799+
id: 'LiteGraph.Node.DefaultPadding',
800+
name: 'Always shrink new nodes',
801+
tooltip:
802+
'Resize nodes to the smallest possible size when created. When disabled, a newly added node will be widened slightly to show widget values.',
803+
type: 'boolean',
804+
defaultValue: false,
805+
versionAdded: '1.18.0'
797806
}
798807
]

src/locales/en/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@
377377
"LiteGraph_ContextMenu_Scaling": {
378378
"name": "Scale node combo widget menus (lists) when zoomed in"
379379
},
380+
"LiteGraph_Node_DefaultPadding": {
381+
"name": "Always shrink new nodes",
382+
"tooltip": "Resize nodes to the smallest possible size when created. When disabled, a newly added node will be widened slightly to show widget values."
383+
},
380384
"LiteGraph_Node_TooltipDelay": {
381385
"name": "Tooltip Delay"
382386
},

src/locales/es/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@
377377
"LiteGraph_ContextMenu_Scaling": {
378378
"name": "Escala los menús de widgets combinados de nodos (listas) al acercar"
379379
},
380+
"LiteGraph_Node_DefaultPadding": {
381+
"name": "Reducir siempre los nuevos nodos",
382+
"tooltip": "Redimensiona los nodos al tamaño más pequeño posible al crearlos. Si está desactivado, un nodo recién añadido se ampliará ligeramente para mostrar los valores de los widgets."
383+
},
380384
"LiteGraph_Node_TooltipDelay": {
381385
"name": "Retraso de la información sobre herramientas"
382386
},

0 commit comments

Comments
 (0)