refactored theme names

This commit is contained in:
0ceanSlim 2023-08-22 13:05:50 -04:00
parent 0f05216ab2
commit 6f5678c38f
6 changed files with 22 additions and 4 deletions

View File

@ -13,8 +13,10 @@
<div class="theme-dropdown"> <div class="theme-dropdown">
<label for="theme-select"> </label> <label for="theme-select"> </label>
<select id="theme-select"> <select id="theme-select">
<option value="usd">Dark</option> <option value="Dark">Dark</option>
<option value="ars">wip</option> <option value="Lava">Lava</option>
<option value="Midnight">Midnight</option>
<option value="Solar">Solar</option>
</select> </select>
</div> </div>
<div class="currency-dropdown"> <div class="currency-dropdown">

View File

@ -35,7 +35,13 @@ class MainActivity : AppCompatActivity() {
} }
val assetManager = assets val assetManager = assets
val scriptFiles = listOf("scripts/viewBitcoinPrice.js", "scripts/viewFiatToSats.js", "scripts/selectCurrency.js", "scripts/calcSatsToFiat.js") val scriptFiles = listOf(
"scripts/selectTheme.js",
"scripts/viewBitcoinPrice.js",
"scripts/viewFiatToSats.js",
"scripts/selectCurrency.js",
"scripts/calcSatsToFiat.js"
)
val scriptContents = scriptFiles.map { fileName -> val scriptContents = scriptFiles.map { fileName ->
try { try {
@ -46,7 +52,17 @@ class MainActivity : AppCompatActivity() {
} }
} }
val cssFiles = listOf("themes/themeDark.css", /*"themes/themeMidnight.css", "themes/themeLava.css", "themes/themeSolar.css",*/ "styles/settings.css", "styles/bitcoinPrice.css","styles/exchange.css", "styles/fiatToSats.css", "styles/satsToFiat.css") // List of your CSS files val cssFiles = listOf(
"themes/Dark.css",
/*"themes/Midnight.css",
"themes/Lava.css",
"themes/Solar.css",*/
"styles/settings.css",
"styles/bitcoinPrice.css",
"styles/exchange.css",
"styles/fiatToSats.css",
"styles/satsToFiat.css"
) // List of your CSS files
val cssCode = cssFiles.joinToString("\n") { fileName -> val cssCode = cssFiles.joinToString("\n") { fileName ->
try { try {