1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix issue where color sliders wouldn't be visible during startup, if the color options button was expanded

This commit is contained in:
Emmanouil Papadeas 2024-08-16 19:29:32 +03:00
parent 783a138779
commit 410f06435c

View file

@ -23,9 +23,6 @@ var color_sliders_vbox: VBoxContainer
func _ready() -> void:
Tools.color_changed.connect(update_color)
_average(left_color_rect.color, right_color_rect.color)
expand_button.button_pressed = Global.config_cache.get_value(
"color_picker", "is_expanded", false
)
color_picker.color_mode = Global.config_cache.get_value(
"color_picker", "color_mode", ColorPicker.MODE_RGB
)
@ -85,6 +82,10 @@ func _ready() -> void:
picker_vbox_container.add_child(expand_button)
picker_vbox_container.move_child(expand_button, 2)
expand_button.button_pressed = Global.config_cache.get_value(
"color_picker", "is_expanded", false
)
func _notification(what: int) -> void:
if what == NOTIFICATION_THEME_CHANGED and is_instance_valid(hsv_rectangle_control):