Skip to content

Commit 93a047b

Browse files
committed
Fix indentation and whitespace in UI components
Corrected indentation in GameObjectNode and IconPickerWidget for improved code readability. Removed unnecessary whitespace in GameObjectHeader. No functional changes were made.
1 parent 41d9132 commit 93a047b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

game/addons/tools/Code/Scene/GameObjectInspector/GameObjectHeader/GameObjectHeader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public static void OpenPopup( Widget parent, string currentIcon, Color currentCo
331331
// Icon Picker with color button
332332
var iconPicker = popup.Layout.Add( new IconPickerWidget( popup ), 1 );
333333
iconPicker.Icon = currentIcon;
334-
334+
335335
// Update color when changed via the color button
336336
iconPicker.ColorChanged = ( c ) =>
337337
{

game/addons/tools/Code/Scene/SceneTree/GameObjectNode.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ public override void OnPaint( VirtualWidget item )
317317
else
318318
{
319319
Paint.Pen = Theme.Blue;
320-
Paint.DrawText( r, $"{connection.DisplayName}", TextFlag.LeftCenter );
321-
r.Left += 22;
322-
}
320+
Paint.DrawText( r, $"{connection.DisplayName}", TextFlag.LeftCenter );
321+
r.Left += 22;
322+
}
323323

324324

325325
}

game/addons/tools/Code/Widgets/IconPicker/IconPickerWidget.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ public static void OpenPopup( Widget parent, string icon, Action<string> onChang
752752
};
753753

754754
// Content icons
755-
static readonly string[] ContentIcons = new[]
756-
{
755+
static readonly string[] ContentIcons = new[]
756+
{
757757
"add", "add_box", "add_circle", "add_circle_outline", "archive", "backspace", "block",
758758
"clear", "content_copy", "content_cut", "content_paste", "create", "delete_sweep",
759759
"drafts", "filter_list", "flag", "font_download", "forward", "gesture", "how_to_reg",

0 commit comments

Comments
 (0)