aboutsummaryrefslogtreecommitdiff
path: root/main.gd
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-06-17 23:53:52 +0000
committerdam <dam@gudinoff>2022-06-17 23:53:52 +0000
commitbc7df6808b404f96dd8a0677a90b4dcfaf9eca47 (patch)
tree9666debba4bb7a9a476f308a883444c5a8aa1021 /main.gd
parent075aa00b2bdda61640c3e089a8d01c898506903a (diff)
downloadsurgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.tar.zst
surgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.zip
First iteration over the day/night themes.
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"))