Skip to content

Commit d4061a2

Browse files
Move styling properties to uss file
1 parent 4ce9ea5 commit d4061a2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
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">
22-
<ui:VisualElement name="header" class="body-panel-header" style="font-size: 12px; height: 20px; min-height: 20px;">
23-
<ui:Label text="Action Maps" display-tooltip-when-elided="true" style="flex-grow: 1; font-size: 12px;"/>
22+
<ui:VisualElement name="header" class="body-panel-header">
23+
<ui:Label text="Action Maps" display-tooltip-when-elided="true" style="flex-grow: 1;"/>
2424
<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">
@@ -30,8 +30,8 @@
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">
33-
<ui:VisualElement name="header" class="body-panel-header" style="justify-content: space-between; font-size: 12px; height: 20px; min-height: 20px;">
34-
<ui:Label text="Actions" display-tooltip-when-elided="true" name="actions-label" style="font-size: 12px;"/>
33+
<ui:VisualElement name="header" class="body-panel-header">
34+
<ui:Label text="Actions" display-tooltip-when-elided="true" name="actions-label"/>
3535
<ui:Button display-tooltip-when-elided="true" name="add-new-action-button" style="align-items: auto;"/>
3636
</ui:VisualElement>
3737
<ui:VisualElement name="body">
@@ -40,8 +40,8 @@
4040
<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;">
43-
<ui:VisualElement name="header" class="body-panel-header" style="font-size: 12px; height: 20px; min-height: 20px;">
44-
<ui:Label text="Action Properties" display-tooltip-when-elided="true" name="properties-header-label" style="font-size: 12px;"/>
43+
<ui:VisualElement name="header" class="body-panel-header">
44+
<ui:Label text="Action Properties" display-tooltip-when-elided="true" name="properties-header-label"/>
4545
</ui:VisualElement>
4646
<ui:ScrollView name="properties-scrollview">
4747
<ui:Foldout text="Action Properties" name="properties-foldout" class="properties-foldout"/>

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/PackageResources/InputActionsEditorStyles.uss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@
106106
padding-top: 4px;
107107
padding-bottom: 4px;
108108
border-bottom-width: 1px;
109-
height: 28px;
110-
min-height: 28px;
111-
font-size: 14px;
109+
height: 20px;
110+
min-height: 20px;
111+
font-size: 12px;
112112
-unity-font-style: bold;
113113
align-items: center;
114114
justify-content: flex-start;

0 commit comments

Comments
 (0)