mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +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:
parent
783a138779
commit
410f06435c
|
@ -23,9 +23,6 @@ var color_sliders_vbox: VBoxContainer
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
Tools.color_changed.connect(update_color)
|
Tools.color_changed.connect(update_color)
|
||||||
_average(left_color_rect.color, right_color_rect.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 = Global.config_cache.get_value(
|
||||||
"color_picker", "color_mode", ColorPicker.MODE_RGB
|
"color_picker", "color_mode", ColorPicker.MODE_RGB
|
||||||
)
|
)
|
||||||
|
@ -85,6 +82,10 @@ func _ready() -> void:
|
||||||
picker_vbox_container.add_child(expand_button)
|
picker_vbox_container.add_child(expand_button)
|
||||||
picker_vbox_container.move_child(expand_button, 2)
|
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:
|
func _notification(what: int) -> void:
|
||||||
if what == NOTIFICATION_THEME_CHANGED and is_instance_valid(hsv_rectangle_control):
|
if what == NOTIFICATION_THEME_CHANGED and is_instance_valid(hsv_rectangle_control):
|
||||||
|
|
Loading…
Reference in a new issue