mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Finalize theme support
This commit is contained in:
parent
4f746193a0
commit
ac0e0b5e0d
2 changed files with 16 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue