feat(desktop): themes

This commit is contained in:
Adam
2025-12-28 05:12:32 -06:00
parent 80e87c86ec
commit 2435f24db7
31 changed files with 3573 additions and 1099 deletions
+16
View File
@@ -0,0 +1,16 @@
/**
* Generates the theme preload script content.
* Run this to get the script that should be embedded in index.html.
*/
import { generatePreloadScript, generatePreloadScriptFormatted } from "../src/theme/preload"
const formatted = process.argv.includes("--formatted")
if (formatted) {
console.log("<script>")
console.log(generatePreloadScriptFormatted())
console.log("</script>")
} else {
console.log("<script>" + generatePreloadScript() + "</script>")
}