mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Add theme support, light theme, and edgeless light
This commit is contained in:
parent
4e1f2b3607
commit
0d23d66700
45 changed files with 433 additions and 212 deletions
8
utils/icon-loader.js
Normal file
8
utils/icon-loader.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const fs = require("fs").promises
|
||||
|
||||
const names = ["subscriptions", "settings"]
|
||||
const icons = names.map(name => fs.readFile(`html/static/images/${name}.svg`, "utf8"))
|
||||
|
||||
module.exports.icons = Promise.all(icons).then(resolvedIcons => {
|
||||
return new Map(names.map((name, index) => [name, resolvedIcons[index]]))
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue