diff options
| author | dam <dam@gudinoff> | 2022-06-17 23:53:52 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-06-17 23:53:52 +0000 |
| commit | bc7df6808b404f96dd8a0677a90b4dcfaf9eca47 (patch) | |
| tree | 9666debba4bb7a9a476f308a883444c5a8aa1021 /main.gd | |
| parent | 075aa00b2bdda61640c3e089a8d01c898506903a (diff) | |
| download | surgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.tar.zst surgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.zip | |
First iteration over the day/night themes.
Diffstat (limited to 'main.gd')
| -rw-r--r-- | main.gd | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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")) |
