mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Fix theme color preview spacing in the Preferences
This commit is contained in:
parent
85b255032f
commit
5c58562d6b
2 changed files with 5 additions and 11 deletions
|
@ -14,7 +14,7 @@ var theme_button_group := ButtonGroup.new()
|
|||
]
|
||||
|
||||
@onready var buttons_container: BoxContainer = $ThemeButtons
|
||||
@onready var colors_container: BoxContainer = $ThemeColorsSpacer/ThemeColors
|
||||
@onready var colors_container: BoxContainer = $ThemeColors
|
||||
@onready var theme_color_preview_scene := preload("res://src/Preferences/ThemeColorPreview.tscn")
|
||||
|
||||
|
||||
|
@ -62,8 +62,8 @@ func add_theme(theme: Theme) -> void:
|
|||
|
||||
func remove_theme(theme: Theme) -> void:
|
||||
var index := themes.find(theme)
|
||||
var theme_button = buttons_container.get_child(index)
|
||||
var color_previews = colors_container.get_child(index)
|
||||
var theme_button := buttons_container.get_child(index)
|
||||
var color_previews := colors_container.get_child(index)
|
||||
buttons_container.remove_child(theme_button)
|
||||
theme_button.queue_free()
|
||||
colors_container.remove_child(color_previews)
|
||||
|
|
|
@ -256,16 +256,10 @@ script = ExtResource("5")
|
|||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="ThemeColorsSpacer" type="VBoxContainer" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Interface/Themes"]
|
||||
[node name="ThemeColors" type="VBoxContainer" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Interface/Themes"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Control" type="Control" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Interface/Themes/ThemeColorsSpacer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ThemeColors" type="VBoxContainer" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Interface/Themes/ThemeColorsSpacer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 12
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="ButtonHeader" type="HBoxContainer" parent="HSplitContainer/VBoxContainer/ScrollContainer/RightSide/Interface"]
|
||||
layout_mode = 2
|
||||
|
|
Loading…
Add table
Reference in a new issue