Use generated list of themes instead of hardcoded array

This commit is contained in:
glacambre 2018-08-16 21:03:56 +02:00
parent b13956010c
commit d77a3fa127
No known key found for this signature in database
GPG key ID: B9625DB1767553AC

View file

@ -1,11 +1,10 @@
import { staticThemes } from "./.metadata.generated"
import * as config from "./config" import * as config from "./config"
import * as Logging from "./logging" import * as Logging from "./logging"
const logger = new Logging.Logger("styling") const logger = new Logging.Logger("styling")
// find a way of getting theme list without hard-coding it const THEMES = staticThemes
// using a macro might be an option
const THEMES = ["dark", "greenmat", "shydactyl", "quake"]
function capitalise(str) { function capitalise(str) {
if (str === "") return str if (str === "") return str