Skip to content

Commit 0f225ca

Browse files
FIX: Auto-Save toggle button alignment by a few pixels (#2327)
1 parent 0c988bb commit 0f225ca

2 files changed

Lines changed: 21 additions & 18 deletions

File tree

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ however, it has to be formatted properly to pass verification tests.
1717

1818
### Fixed
1919

20+
- Fixed the `Auto-Save` toggle button with some extra pixels to align the text in the window better.
21+
22+
2023
### Added
2124

2225
## [1.18.0] - 2026-01-14

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/PackageResources/InputActionsEditor.uxml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
2-
<Style src="project://database/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/PackageResources/InputActionsEditorStyles.uss?fileID=7433441132597879392&amp;guid=7dac9c49a90bca4499371d0adc9b617b&amp;type=3#InputActionsEditorStyles" />
2+
<Style src="project://database/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/PackageResources/InputActionsEditorStyles.uss?fileID=7433441132597879392&amp;guid=7dac9c49a90bca4499371d0adc9b617b&amp;type=3#InputActionsEditorStyles"/>
33
<ui:VisualElement name="action-editor" style="flex-direction: column; flex-grow: 1;">
44
<ui:VisualElement name="control-schemes-toolbar-container">
55
<uie:Toolbar>
66
<ui:VisualElement style="flex-direction: row; flex-grow: 1;">
7-
<uie:ToolbarMenu display-tooltip-when-elided="true" text="No Control Schemes" name="control-schemes-toolbar-menu" style="min-width: 135px;" />
8-
<uie:ToolbarMenu display-tooltip-when-elided="true" text="All Devices" enabled="false" name="control-schemes-filter-toolbar-menu" />
7+
<uie:ToolbarMenu display-tooltip-when-elided="true" text="No Control Schemes" name="control-schemes-toolbar-menu" style="min-width: 135px;"/>
8+
<uie:ToolbarMenu display-tooltip-when-elided="true" text="All Devices" enabled="false" name="control-schemes-filter-toolbar-menu"/>
99
</ui:VisualElement>
1010
<ui:VisualElement>
11-
<uie:ToolbarSearchField focusable="true" name="search-actions-text-field" class="search-field" style="display: none;" />
11+
<uie:ToolbarSearchField focusable="true" name="search-actions-text-field" class="search-field" style="display: none;"/>
1212
</ui:VisualElement>
1313
<ui:VisualElement name="save-asset-toolbar-container" style="flex-direction: row; justify-content: flex-end;">
14-
<uie:ToolbarButton text="Save Asset" display-tooltip-when-elided="true" name="save-asset-toolbar-button" style="align-items: auto;" />
15-
<uie:ToolbarToggle focusable="false" label="Auto-Save" name="auto-save-toolbar-toggle" style="width: 69px;" />
14+
<uie:ToolbarButton text="Save Asset" display-tooltip-when-elided="true" name="save-asset-toolbar-button" style="align-items: auto;"/>
15+
<uie:ToolbarToggle focusable="false" label="Auto-Save" name="auto-save-toolbar-toggle" style="width: 73px;"/>
1616
</ui:VisualElement>
1717
</uie:Toolbar>
1818
</ui:VisualElement>
1919
<ui:VisualElement name="body" style="flex-direction: column; flex-grow: 1;">
2020
<ui:TwoPaneSplitView name="actions-split-view" fixed-pane-initial-dimension="200" view-data-key="actions-editor-splitter-1">
2121
<ui:VisualElement name="action-maps-container" class="body-panel-container actions-container">
2222
<ui:VisualElement name="header" class="body-panel-header">
23-
<ui:Label text="Action Maps" display-tooltip-when-elided="true" style="flex-grow: 1;" />
24-
<ui:Button display-tooltip-when-elided="true" name="add-new-action-map-button" style="align-items: auto;" />
23+
<ui:Label text="Action Maps" display-tooltip-when-elided="true" style="flex-grow: 1;"/>
24+
<ui:Button display-tooltip-when-elided="true" name="add-new-action-map-button" style="align-items: auto;"/>
2525
</ui:VisualElement>
2626
<ui:VisualElement name="body">
27-
<ui:ListView focusable="true" name="action-maps-list-view" />
27+
<ui:ListView focusable="true" name="action-maps-list-view"/>
2828
</ui:VisualElement>
29-
<ui:VisualElement name="rclick-area-to-add-new-action-map" style="flex-direction: column; flex-grow: 1;" />
29+
<ui:VisualElement name="rclick-area-to-add-new-action-map" style="flex-direction: column; flex-grow: 1;"/>
3030
</ui:VisualElement>
3131
<ui:TwoPaneSplitView name="actions-and-properties-split-view" fixed-pane-index="1" fixed-pane-initial-dimension="320" view-data-key="actions-editor-splitter-2" style="height: auto; min-width: 450px;">
3232
<ui:VisualElement name="actions-container" class="body-panel-container">
3333
<ui:VisualElement name="header" class="body-panel-header" style="justify-content: space-between;">
34-
<ui:Label text="Actions" display-tooltip-when-elided="true" name="actions-label" />
35-
<ui:Button display-tooltip-when-elided="true" name="add-new-action-button" style="align-items: auto;" />
34+
<ui:Label text="Actions" display-tooltip-when-elided="true" name="actions-label"/>
35+
<ui:Button display-tooltip-when-elided="true" name="add-new-action-button" style="align-items: auto;"/>
3636
</ui:VisualElement>
3737
<ui:VisualElement name="body">
38-
<ui:TreeView view-data-key="unity-tree-view" focusable="true" name="actions-tree-view" show-border="false" reorderable="true" show-alternating-row-backgrounds="None" fixed-item-height="20" />
38+
<ui:TreeView view-data-key="unity-tree-view" focusable="true" name="actions-tree-view" show-border="false" reorderable="true" show-alternating-row-backgrounds="None" fixed-item-height="20"/>
3939
</ui:VisualElement>
40-
<ui:VisualElement name="rclick-area-to-add-new-action" style="flex-direction: column; flex-grow: 1;" />
40+
<ui:VisualElement name="rclick-area-to-add-new-action" style="flex-direction: column; flex-grow: 1;"/>
4141
</ui:VisualElement>
4242
<ui:VisualElement name="properties-container" class="body-panel-container body-panel-container" style="min-width: 310px;">
4343
<ui:VisualElement name="header" class="body-panel-header">
44-
<ui:Label text="Action Properties" display-tooltip-when-elided="true" name="properties-header-label" />
44+
<ui:Label text="Action Properties" display-tooltip-when-elided="true" name="properties-header-label"/>
4545
</ui:VisualElement>
4646
<ui:ScrollView name="properties-scrollview">
47-
<ui:Foldout text="Action Properties" name="properties-foldout" class="properties-foldout" />
47+
<ui:Foldout text="Action Properties" name="properties-foldout" class="properties-foldout"/>
4848
<ui:Foldout text="Interactions" name="interactions-foldout" class="properties-foldout name-and-parameters-list-view">
49-
<ui:Label text="No interactions have been added." name="no-parameters-added-label" display-tooltip-when-elided="true" class="name-and-parameter-empty-label" style="display: flex;" />
49+
<ui:Label text="No interactions have been added." name="no-parameters-added-label" display-tooltip-when-elided="true" class="name-and-parameter-empty-label" style="display: flex;"/>
5050
</ui:Foldout>
5151
<ui:Foldout text="Processors" name="processors-foldout" class="properties-foldout name-and-parameters-list-view">
52-
<ui:Label text="No processors have been added." name="no-parameters-added-label" display-tooltip-when-elided="true" class="name-and-parameter-empty-label" />
52+
<ui:Label text="No processors have been added." name="no-parameters-added-label" display-tooltip-when-elided="true" class="name-and-parameter-empty-label"/>
5353
</ui:Foldout>
5454
</ui:ScrollView>
5555
</ui:VisualElement>

0 commit comments

Comments
 (0)