diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0c94df50f..e730c5dde 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,15 +10,17 @@ This update has been brought to you by the contributions of:
Igor Santarek (jegor377), rob-a-bolton
### Added
-- Ability to remove the current palette
+- Ability to remove the current palette.
- You can now drag & drop files into the program while it's running to open them.
-
### Changed
- Drawing is no longer limited by the canvas boundaries. This means that, if you have a brush largen than 1px, you can draw on the edges of the canvas. All pixels that are being drawn outside of the canvas will still have no effect.
+- Language and theme checkboxes are now radio buttons.
+- The Blue theme has more similar margins and seperations with the rest of the themes.
### Fixed
-- Fixed failed imports of gpl palettes by adding support for the newer variant of gpl files ([#250](https://github.com/Orama-Interactive/Pixelorama/pull/250))
+- Fixed failed imports of gpl palettes by adding support for the newer variant of gpl files. ([#250](https://github.com/Orama-Interactive/Pixelorama/pull/250))
+
## [v0.7] - 2020-05-16
This update has been brought to you by the contributions of:
diff --git a/src/Preferences/HandleLanguages.gd b/src/Preferences/HandleLanguages.gd
index 924adf48d..1c2559cd2 100644
--- a/src/Preferences/HandleLanguages.gd
+++ b/src/Preferences/HandleLanguages.gd
@@ -30,9 +30,7 @@ func _ready() -> void:
func _on_Language_pressed(index : int) -> void:
- for child in get_children():
- if child is Button:
- child.pressed = child.get_index() == index
+ get_child(index).pressed = true
if index == 0:
TranslationServer.set_locale(OS.get_locale())
else:
diff --git a/src/Preferences/HandleThemes.gd b/src/Preferences/HandleThemes.gd
index 8598fff08..ff56bf248 100644
--- a/src/Preferences/HandleThemes.gd
+++ b/src/Preferences/HandleThemes.gd
@@ -16,9 +16,7 @@ func _ready() -> void:
func _on_Theme_pressed(index : int) -> void:
- for child in get_children():
- if child is Button:
- child.pressed = child.get_index() == index
+ get_child(index).pressed = true
change_theme(index)
Global.config_cache.set_value("preferences", "theme", index)
diff --git a/src/Preferences/PreferencesDialog.tscn b/src/Preferences/PreferencesDialog.tscn
index d9a64d47e..5ac758ea9 100644
--- a/src/Preferences/PreferencesDialog.tscn
+++ b/src/Preferences/PreferencesDialog.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=9 format=2]
[ext_resource path="res://src/Preferences/PreferencesDialog.gd" type="Script" id=1]
[ext_resource path="res://assets/fonts/Roboto-Regular.tres" type="DynamicFont" id=2]
@@ -7,6 +7,10 @@
[ext_resource path="res://src/Preferences/HandleThemes.gd" type="Script" id=5]
[ext_resource path="res://src/Preferences/HandleShortcuts.gd" type="Script" id=6]
+[sub_resource type="ButtonGroup" id=1]
+
+[sub_resource type="ButtonGroup" id=2]
+
[node name="PreferencesDialog" type="AcceptDialog"]
margin_left = -3.0
margin_top = 9.0
@@ -203,6 +207,7 @@ margin_right = 506.0
margin_bottom = 24.0
mouse_default_cursor_shape = 2
pressed = true
+group = SubResource( 1 )
text = "System Language"
[node name="Czech" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -210,6 +215,7 @@ margin_top = 28.0
margin_right = 506.0
margin_bottom = 52.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Czech [cs]"
[node name="German" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -217,6 +223,7 @@ margin_top = 56.0
margin_right = 506.0
margin_bottom = 80.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Deutsch [de]"
[node name="Greek" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -225,6 +232,7 @@ margin_right = 506.0
margin_bottom = 108.0
mouse_default_cursor_shape = 2
custom_fonts/font = ExtResource( 2 )
+group = SubResource( 1 )
text = "Ελληνικά [el]"
[node name="English" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -232,6 +240,7 @@ margin_top = 112.0
margin_right = 506.0
margin_bottom = 136.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "English [en]"
[node name="Esperanto" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -239,6 +248,7 @@ margin_top = 140.0
margin_right = 506.0
margin_bottom = 164.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Esperanto [eo]"
[node name="Spanish" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -246,6 +256,7 @@ margin_top = 168.0
margin_right = 506.0
margin_bottom = 192.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Español [es]"
[node name="French" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -253,6 +264,7 @@ margin_top = 196.0
margin_right = 506.0
margin_bottom = 220.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Français [fr]"
[node name="Indonesian" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -260,6 +272,7 @@ margin_top = 224.0
margin_right = 506.0
margin_bottom = 248.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Indonesian [id]"
[node name="Italian" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -267,6 +280,7 @@ margin_top = 252.0
margin_right = 506.0
margin_bottom = 276.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Italiano [it]"
[node name="Latvian" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -274,6 +288,7 @@ margin_top = 280.0
margin_right = 506.0
margin_bottom = 304.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Latvian [lv]"
[node name="Polish" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -281,6 +296,7 @@ margin_top = 308.0
margin_right = 506.0
margin_bottom = 332.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Polski [pl]"
[node name="Brazilian Portuguese" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -288,6 +304,7 @@ margin_top = 336.0
margin_right = 506.0
margin_bottom = 360.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Português Brasileiro [pt_BR]"
[node name="Russian" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -295,6 +312,7 @@ margin_top = 364.0
margin_right = 506.0
margin_bottom = 388.0
mouse_default_cursor_shape = 2
+group = SubResource( 1 )
text = "Русский [ru]"
[node name="Chinese Simplified" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -303,6 +321,7 @@ margin_right = 506.0
margin_bottom = 418.0
mouse_default_cursor_shape = 2
custom_fonts/font = ExtResource( 3 )
+group = SubResource( 1 )
text = "简体中文 [zh_CN]"
[node name="Chinese Traditional" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
@@ -311,6 +330,7 @@ margin_right = 506.0
margin_bottom = 448.0
mouse_default_cursor_shape = 2
custom_fonts/font = ExtResource( 3 )
+group = SubResource( 1 )
text = "繁體中文 [zh_TW]"
[node name="Themes" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
@@ -323,6 +343,7 @@ script = ExtResource( 5 )
margin_right = 506.0
margin_bottom = 24.0
mouse_default_cursor_shape = 2
+group = SubResource( 2 )
text = "Dark"
[node name="Gray Theme" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Themes"]
@@ -330,6 +351,7 @@ margin_top = 28.0
margin_right = 506.0
margin_bottom = 52.0
mouse_default_cursor_shape = 2
+group = SubResource( 2 )
text = "Gray"
[node name="Blue Theme" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Themes"]
@@ -337,6 +359,7 @@ margin_top = 56.0
margin_right = 506.0
margin_bottom = 80.0
mouse_default_cursor_shape = 2
+group = SubResource( 2 )
text = "Blue"
[node name="Caramel Theme" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Themes"]
@@ -344,6 +367,7 @@ margin_top = 84.0
margin_right = 506.0
margin_bottom = 108.0
mouse_default_cursor_shape = 2
+group = SubResource( 2 )
text = "Caramel"
[node name="Light Theme" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Themes"]
@@ -351,6 +375,7 @@ margin_top = 112.0
margin_right = 506.0
margin_bottom = 136.0
mouse_default_cursor_shape = 2
+group = SubResource( 2 )
text = "Light"
[node name="Canvas" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]