From bc7df6808b404f96dd8a0677a90b4dcfaf9eca47 Mon Sep 17 00:00:00 2001 From: dam Date: Fri, 17 Jun 2022 23:53:52 +0000 Subject: First iteration over the day/night themes. --- main.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.gd') 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")) -- cgit v1.2.3