Alphabetize theme order

This commit is contained in:
Zed 2019-10-23 12:46:52 +02:00
parent 1bba009656
commit aaf079a141

View file

@ -11,7 +11,7 @@ export preferences
proc findThemes*(dir: string): seq[string] = proc findThemes*(dir: string): seq[string] =
for kind, path in walkDir(dir / "css" / "themes"): for kind, path in walkDir(dir / "css" / "themes"):
result.add path.splitFile.name.capitalizeAscii result.add path.splitFile.name.capitalizeAscii
reverse(result) sort(result)
proc createPrefRouter*(cfg: Config) = proc createPrefRouter*(cfg: Config) =
router preferences: router preferences: