[refactor] improve theme presets to use default state values

This commit is contained in:
zombieFox 2020-01-13 14:30:19 +00:00
parent 6dd4b19354
commit 887ab26f73

View File

@ -173,56 +173,15 @@ var theme = (function() {
}, },
all: [{ all: [{
name: "nightTab (default)", name: "nightTab (default)",
font: { font: state.get.default().theme.font,
display: { color: state.get.default().theme.color,
name: "", accent: state.get.default().theme.accent.current,
weight: 400, radius: state.get.default().theme.radius,
style: "normal" shadow: state.get.default().theme.shadow,
}, style: state.get.default().theme.style
ui: {
name: "",
weight: 400,
style: "normal"
},
},
color: {
hsl: {
h: 222,
s: 14,
l: 56
},
rgb: {
r: 129,
g: 138,
b: 160
},
contrast: {
light: 4,
dark: 4
}
},
accent: {
r: 0,
g: 80,
b: 255
},
radius: 0.25,
shadow: 1,
style: "dark"
}, { }, {
name: "Black", name: "Black",
font: { font: state.get.default().theme.font,
display: {
name: "Sniglet",
weight: 400,
style: "normal"
},
ui: {
name: "Averia Sans Libre",
weight: 400,
style: "normal"
}
},
color: { color: {
hsl: { hsl: {
h: 0, h: 0,
@ -244,23 +203,12 @@ var theme = (function() {
g: 128, g: 128,
b: 128 b: 128
}, },
radius: 0.25, radius: state.get.default().theme.radius,
shadow: 0.5, shadow: state.get.default().theme.shadow,
style: "dark" style: "dark"
}, { }, {
name: "White", name: "White",
font: { font: state.get.default().theme.font,
display: {
name: "Sniglet",
weight: 400,
style: "normal"
},
ui: {
name: "Averia Sans Libre",
weight: 400,
style: "normal"
}
},
color: { color: {
hsl: { hsl: {
h: 0, h: 0,
@ -282,8 +230,8 @@ var theme = (function() {
g: 128, g: 128,
b: 128 b: 128
}, },
radius: 0.25, radius: state.get.default().theme.radius,
shadow: 0.5, shadow: state.get.default().theme.shadow,
style: "light" style: "light"
}, { }, {
name: "Midnight", name: "Midnight",