Finalize theme support

This commit is contained in:
Zed
2019-10-23 12:32:37 +02:00
parent 4f746193a0
commit ac0e0b5e0d
2 changed files with 16 additions and 15 deletions

View File

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