Added Etterna beatmap support

This commit is contained in:
2018-03-13 16:45:40 +01:00
parent e9385ec079
commit b3257e78b6
5 changed files with 18 additions and 16 deletions

View File

@ -45,16 +45,16 @@ let dark = {
// Toggle theme
export function toggleTheme(arn: AnimeNotifier) {
if(currentTheme === "light") {
darkTheme()
darkTheme(arn)
arn.statusMessage.showInfo("Previewing Dark theme. If you would like to use it permanently, please buy a PRO account.", 4000)
return
}
lightTheme()
lightTheme(arn)
}
// Light theme
export function lightTheme() {
export function lightTheme(arn: AnimeNotifier) {
let root = document.documentElement
for(let property in light) {
@ -69,9 +69,13 @@ export function lightTheme() {
}
// Dark theme
export function darkTheme() {
export function darkTheme(arn: AnimeNotifier) {
let root = document.documentElement
if(arn.user.dataset.pro !== "true") {
alert("You need a PRO account!")
}
for(let property in dark) {
if(!dark.hasOwnProperty(property)) {
continue