mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Have the Dark theme button pressed by default if the user hasn't saved any preferences
This commit is contained in:
parent
d72c79b349
commit
ff3b5e321b
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ func _ready() -> void:
|
|||
var theme_id = Global.config_cache.get_value("preferences", "theme")
|
||||
change_theme(theme_id)
|
||||
themes.get_child(theme_id + 1).pressed = true
|
||||
else:
|
||||
change_theme(0)
|
||||
themes.get_child(1).pressed = true
|
||||
|
||||
func _on_PreferencesDialog_about_to_show() -> void:
|
||||
var root := tree.create_item()
|
||||
|
|
Loading…
Add table
Reference in a new issue