mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Merge pull request #156 from YeldhamDev/colorpicker_presets_hide
Hide presets in ColorPickers
This commit is contained in:
commit
3b570ccf82
|
@ -1,5 +1,8 @@
|
||||||
extends ConfirmationDialog
|
extends ConfirmationDialog
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$OptionsContainer/OutlineColor.get_picker().presets_visible = false
|
||||||
|
|
||||||
func _on_OutlineDialog_confirmed() -> void:
|
func _on_OutlineDialog_confirmed() -> void:
|
||||||
var outline_color : Color = $OptionsContainer/OutlineColor.color
|
var outline_color : Color = $OptionsContainer/OutlineColor.color
|
||||||
var thickness : int = $OptionsContainer/ThickValue.value
|
var thickness : int = $OptionsContainer/ThickValue.value
|
||||||
|
|
|
@ -82,6 +82,10 @@ func _ready() -> void:
|
||||||
Global.default_fill_color = fill_color
|
Global.default_fill_color = fill_color
|
||||||
default_fill_color.color = Global.default_fill_color
|
default_fill_color.color = Global.default_fill_color
|
||||||
|
|
||||||
|
$"HSplitContainer/ScrollContainer/VBoxContainer/Grid&Guides/GridOptions/GridColor".get_picker().presets_visible = false
|
||||||
|
$"HSplitContainer/ScrollContainer/VBoxContainer/Grid&Guides/GridOptions/GridColor".get_picker().presets_visible = false
|
||||||
|
$HSplitContainer/ScrollContainer/VBoxContainer/Image/ImageOptions/DefaultFillColor.get_picker().presets_visible = false
|
||||||
|
|
||||||
func _on_PreferencesDialog_about_to_show(changed_language := false) -> void:
|
func _on_PreferencesDialog_about_to_show(changed_language := false) -> void:
|
||||||
var root := tree.create_item()
|
var root := tree.create_item()
|
||||||
var general_button := tree.create_item(root)
|
var general_button := tree.create_item(root)
|
||||||
|
|
|
@ -167,6 +167,9 @@ func _ready() -> void:
|
||||||
|
|
||||||
Import.import_brushes("Brushes")
|
Import.import_brushes("Brushes")
|
||||||
|
|
||||||
|
$MenuAndUI/UI/ToolPanel/Tools/ColorAndToolOptions/ColorButtonsVertical/ColorPickersCenter/ColorPickersHorizontal/LeftColorPickerButton.get_picker().presets_visible = false
|
||||||
|
$MenuAndUI/UI/ToolPanel/Tools/ColorAndToolOptions/ColorButtonsVertical/ColorPickersCenter/ColorPickersHorizontal/RightColorPickerButton.get_picker().presets_visible = false
|
||||||
|
|
||||||
if not Global.config_cache.has_section_key("preferences", "startup"):
|
if not Global.config_cache.has_section_key("preferences", "startup"):
|
||||||
Global.config_cache.set_value("preferences", "startup", true)
|
Global.config_cache.set_value("preferences", "startup", true)
|
||||||
if not Global.config_cache.get_value("preferences", "startup"):
|
if not Global.config_cache.get_value("preferences", "startup"):
|
||||||
|
|
|
@ -11,6 +11,9 @@ onready var palette_grid = $VBoxContainer/HBoxContainer/Panel/ScrollContainer/Ed
|
||||||
onready var color_name_edit = $VBoxContainer/PaletteOptions/EditPaletteColorNameLineEdit
|
onready var color_name_edit = $VBoxContainer/PaletteOptions/EditPaletteColorNameLineEdit
|
||||||
onready var palette_name_edit = $VBoxContainer/PaletteOptions/EditPaletteNameLineEdit
|
onready var palette_name_edit = $VBoxContainer/PaletteOptions/EditPaletteNameLineEdit
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
$VBoxContainer/HBoxContainer/EditPaletteColorPicker.presets_visible = false
|
||||||
|
|
||||||
func open(palette : String) -> void:
|
func open(palette : String) -> void:
|
||||||
current_palette = palette
|
current_palette = palette
|
||||||
palette_name_edit.text = current_palette
|
palette_name_edit.text = current_palette
|
||||||
|
|
Loading…
Reference in a new issue