generated from incremental-social/The-Modding-Tree
verdant
a new theme
This commit is contained in:
parent
3152cb8968
commit
23e3094b13
1 changed files with 12 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue