mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -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 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue