From 23e3094b1305ee4fd3ec11831dc554929d1d9545 Mon Sep 17 00:00:00 2001 From: TJCgames Date: Sun, 10 Mar 2024 18:02:16 +0000 Subject: [PATCH] verdant a new theme --- js/utils/themes.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/js/utils/themes.js b/js/utils/themes.js index 36a5c6e..d86f5e1 100644 --- a/js/utils/themes.js +++ b/js/utils/themes.js @@ -1,5 +1,5 @@ // ************ Themes ************ -var themes = ["default", "aqua"] +var themes = ["default", "aqua", "verdant"] var colors = { default: { @@ -22,6 +22,16 @@ var colors = { background: "#001f3f", background_tooltip: "rgba(0, 15, 31, 0.75)", }, + verdant: { + 1: "#ceffbd", + 2: "#8fd376", + 3: "#6e965f", + color: "#ceffbd", + points: "#edf3eb", + locked: "#c4a7b3", + background: "#102012", + background_tooltip: "rgba(0, 22, 3, 0.75)", + }, } function changeTheme() { @@ -33,7 +43,7 @@ function changeTheme() { document.body.style.setProperty("--locked", colors_theme["locked"]); } function getThemeName() { - return options.theme? options.theme : "default"; + return options.theme ? options.theme : "default"; } function switchTheme() { @@ -44,7 +54,6 @@ function switchTheme() { else { index ++; options.theme = themes[index]; - options.theme = themes[1]; } changeTheme(); resizeCanvas();