mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Use generated list of themes instead of hardcoded array
This commit is contained in:
parent
b13956010c
commit
d77a3fa127
1 changed files with 2 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
|||
import { staticThemes } from "./.metadata.generated"
|
||||
import * as config from "./config"
|
||||
import * as Logging from "./logging"
|
||||
|
||||
const logger = new Logging.Logger("styling")
|
||||
|
||||
// find a way of getting theme list without hard-coding it
|
||||
// using a macro might be an option
|
||||
const THEMES = ["dark", "greenmat", "shydactyl", "quake"]
|
||||
const THEMES = staticThemes
|
||||
|
||||
function capitalise(str) {
|
||||
if (str === "") return str
|
||||
|
|
Loading…
Add table
Reference in a new issue