From 41a394999dd8a5767d0b47bf6451def44a75d369 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Fri, 16 Aug 2024 12:47:58 +0200 Subject: [PATCH] Try to fix seperation in editor --- addons/dialogic/Editor/CharacterEditor/character_editor.tscn | 1 - addons/dialogic/Editor/editor_main.gd | 3 +-- addons/dialogic/Modules/StyleEditor/style_editor.tscn | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/dialogic/Editor/CharacterEditor/character_editor.tscn b/addons/dialogic/Editor/CharacterEditor/character_editor.tscn index 537ea4e83..cef90fd17 100644 --- a/addons/dialogic/Editor/CharacterEditor/character_editor.tscn +++ b/addons/dialogic/Editor/CharacterEditor/character_editor.tscn @@ -123,7 +123,6 @@ size_flags_vertical = 3 layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -theme_override_constants/separation = 0 [node name="HBoxContainer" type="HBoxContainer" parent="Scroll/VBox/MainHSplit/Split"] layout_mode = 2 diff --git a/addons/dialogic/Editor/editor_main.gd b/addons/dialogic/Editor/editor_main.gd index 26eca4982..5c60b1bb2 100644 --- a/addons/dialogic/Editor/editor_main.gd +++ b/addons/dialogic/Editor/editor_main.gd @@ -89,7 +89,7 @@ func update_theme_additions() -> void: var side_panel: StyleBoxFlat = panel_style.duplicate() side_panel.corner_radius_top_left = 0 side_panel.corner_radius_bottom_left = 0 - side_panel.expand_margin_left = 8 + side_panel.expand_margin_left = get_theme_constant("separation", "SplitContainer") side_panel.bg_color = get_theme_color("dark_color_2", "Editor") side_panel.set_border_width_all(1) side_panel.border_width_left = 0 @@ -251,4 +251,3 @@ func godot_file_dialog(callable:Callable, filter:String, mode := EditorFileDialo editor_file_dialog.dir_selected.connect(callable) editor_file_dialog.file_selected.connect(callable) return editor_file_dialog - diff --git a/addons/dialogic/Modules/StyleEditor/style_editor.tscn b/addons/dialogic/Modules/StyleEditor/style_editor.tscn index 3d21cf62e..7ec5c837e 100644 --- a/addons/dialogic/Modules/StyleEditor/style_editor.tscn +++ b/addons/dialogic/Modules/StyleEditor/style_editor.tscn @@ -62,7 +62,6 @@ offset_right = -3.0 offset_bottom = 3.0 grow_horizontal = 2 grow_vertical = 2 -theme_override_constants/separation = 0 script = ExtResource("1_gy14f") [node name="Panel" type="PanelContainer" parent="."]