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

Fix create and edit palette dialogs being very long

This commit is contained in:
Emmanouil Papadeas 2023-12-16 22:07:11 +02:00
parent b42c2d4cae
commit 0996d0405e
3 changed files with 11 additions and 12 deletions

View file

@ -2403,7 +2403,8 @@ msgstr ""
msgid "Palette name is required!"
msgstr ""
msgid "Reducing palette size will reset positions of colors. Colors that don't fit in new palette size will be lost!"
msgid "Reducing palette size will reset positions of colors.\n"
"Colors that don't fit in new palette size will be lost!"
msgstr ""
msgid "Position:"

View file

@ -4,7 +4,7 @@
[node name="CreatePaletteDialog" type="ConfirmationDialog"]
title = "Create a new palette"
size = Vector2i(325, 437)
size = Vector2i(386, 406)
exclusive = false
popup_window = true
script = ExtResource("1")
@ -13,10 +13,10 @@ script = ExtResource("1")
anchors_preset = -1
anchor_left = 0.000793701
anchor_right = 0.000793701
offset_left = 7.74205
offset_left = 7.69363
offset_top = 8.0
offset_right = 316.742
offset_bottom = 388.0
offset_right = 377.694
offset_bottom = 361.0
[node name="PaletteMetadata" type="GridContainer" parent="VBoxContainer"]
layout_mode = 2
@ -124,7 +124,6 @@ theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Palette with the same name and path already exists!"
horizontal_alignment = 1
vertical_alignment = 2
autowrap_mode = 3
[node name="EnterNameWarning" type="Label" parent="VBoxContainer"]
layout_mode = 2
@ -133,7 +132,6 @@ theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Palette name is required!"
horizontal_alignment = 1
vertical_alignment = 2
autowrap_mode = 3
[connection signal="confirmed" from="." to="." method="_on_CreatePaletteDialog_confirmed"]
[connection signal="visibility_changed" from="." to="." method="_on_CreatePaletteDialog_visibility_changed"]

View file

@ -4,7 +4,7 @@
[node name="EditPaletteDialog" type="ConfirmationDialog"]
title = "Edit Palette"
size = Vector2i(409, 559)
size = Vector2i(409, 359)
exclusive = false
popup_window = true
script = ExtResource("1")
@ -16,7 +16,7 @@ anchor_bottom = 1.0
offset_left = 8.0
offset_top = 8.0
offset_right = -8.0
offset_bottom = -49.0
offset_bottom = -45.0
[node name="PaletteMetadata" type="GridContainer" parent="VBoxContainer"]
layout_mode = 2
@ -79,12 +79,13 @@ layout_mode = 2
size_flags_horizontal = 3
[node name="SizeReducedWarning" type="Label" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 27)
layout_mode = 2
theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Reducing palette size will reset positions of colors. Colors that don't fit in new palette size will be lost!"
text = "Reducing palette size will reset positions of colors.
Colors that don't fit in new palette size will be lost!"
horizontal_alignment = 1
vertical_alignment = 2
autowrap_mode = 3
[node name="AlreadyExistsWarning" type="Label" parent="VBoxContainer"]
layout_mode = 2
@ -92,7 +93,6 @@ theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Palette with the same name and path already exists!"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
[node name="DeleteConfirmation" type="ConfirmationDialog" parent="."]
size = Vector2i(445, 105)