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 ************
|
// ************ Themes ************
|
||||||
var themes = ["default", "aqua"]
|
var themes = ["default", "aqua", "verdant"]
|
||||||
|
|
||||||
var colors = {
|
var colors = {
|
||||||
default: {
|
default: {
|
||||||
|
@ -22,6 +22,16 @@ var colors = {
|
||||||
background: "#001f3f",
|
background: "#001f3f",
|
||||||
background_tooltip: "rgba(0, 15, 31, 0.75)",
|
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() {
|
function changeTheme() {
|
||||||
|
|
||||||
|
@ -33,7 +43,7 @@ function changeTheme() {
|
||||||
document.body.style.setProperty("--locked", colors_theme["locked"]);
|
document.body.style.setProperty("--locked", colors_theme["locked"]);
|
||||||
}
|
}
|
||||||
function getThemeName() {
|
function getThemeName() {
|
||||||
return options.theme? options.theme : "default";
|
return options.theme ? options.theme : "default";
|
||||||
}
|
}
|
||||||
|
|
||||||
function switchTheme() {
|
function switchTheme() {
|
||||||
|
@ -44,7 +54,6 @@ function switchTheme() {
|
||||||
else {
|
else {
|
||||||
index ++;
|
index ++;
|
||||||
options.theme = themes[index];
|
options.theme = themes[index];
|
||||||
options.theme = themes[1];
|
|
||||||
}
|
}
|
||||||
changeTheme();
|
changeTheme();
|
||||||
resizeCanvas();
|
resizeCanvas();
|
||||||
|
|
Loading…
Add table
Reference in a new issue