aboutsummaryrefslogtreecommitdiff
path: root/main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'main.gd')
-rw-r--r--main.gd6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.gd b/main.gd
index c054940..393d6f0 100644
--- a/main.gd
+++ b/main.gd
@@ -6,10 +6,6 @@ var themes := [
preload("res://themes/day.tres") as Theme,
preload("res://themes/night.tres") as Theme
]
-var themes_color := [
- Color.white,
- Color.black
-]
onready var settings := Settings.new()
onready var popup := get_node("/root/main/popup") as ModalPopup
@@ -87,6 +83,6 @@ func toggle_theme():
func apply_theme(theme_idx: int) -> void:
self.theme = themes[theme_idx]
- VisualServer.set_default_clear_color(themes_color[theme_idx])
+ VisualServer.set_default_clear_color(get_color("background", "theme"))