diff --git a/materialious/android/app/build.gradle b/materialious/android/app/build.gradle index 77197d89..924012ba 100644 --- a/materialious/android/app/build.gradle +++ b/materialious/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "us.materialio.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 173 - versionName "1.12.1" + versionCode 174 + versionName "1.12.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/materialious/electron/materialious.metainfo.xml b/materialious/electron/materialious.metainfo.xml index e1908758..7b342c99 100644 --- a/materialious/electron/materialious.metainfo.xml +++ b/materialious/electron/materialious.metainfo.xml @@ -70,7 +70,11 @@ - + + + https://github.com/Materialious/Materialious/releases/tag/1.12.2 + + https://github.com/Materialious/Materialious/releases/tag/1.12.1 diff --git a/materialious/electron/package.json b/materialious/electron/package.json index f6d7107e..b40bf7ed 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -1,6 +1,6 @@ { "name": "Materialious", - "version": "1.12.1", + "version": "1.12.2", "description": "Modern material design for Invidious.", "author": { "name": "Ward Pearce", diff --git a/materialious/package.json b/materialious/package.json index 9320d3ba..bfd77494 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -1,6 +1,6 @@ { "name": "materialious", - "version": "1.12.1", + "version": "1.12.2", "private": true, "scripts": { "dev": "vite dev", diff --git a/materialious/src/lib/components/settings/Interface.svelte b/materialious/src/lib/components/settings/Interface.svelte index b261ae39..d81b52c0 100644 --- a/materialious/src/lib/components/settings/Interface.svelte +++ b/materialious/src/lib/components/settings/Interface.svelte @@ -43,7 +43,6 @@ async function setColor(color: any) { const target = color.target; const hex = (target as { value: string }).value; - await ui('theme', hex); setAmoledTheme(); themeColorStore.set(hex); } diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte index 0d4a2981..53816a65 100644 --- a/materialious/src/routes/(app)/+layout.svelte +++ b/materialious/src/routes/(app)/+layout.svelte @@ -197,21 +197,22 @@ notifications = feed.notifications; } + themeColorStore.subscribe(async (hex) => { + if (!hex) return; + await ui('theme', hex); + }); + onMount(async () => { ui(); let themeHex = get(themeColorStore); - if (themeHex) { - await ui('theme', themeHex); - } else if (Capacitor.getPlatform() === 'android') { - if (!themeHex) { - try { - const colorPalette = await colorTheme.getColorPalette(); - themeHex = convertToHexColorCode(colorPalette.primary); - await ui('theme', themeHex); - } catch { - // Continue regardless of error - } + if (Capacitor.getPlatform() === 'android' && !themeHex) { + try { + const colorPalette = await colorTheme.getColorPalette(); + themeHex = convertToHexColorCode(colorPalette.primary); + await ui('theme', themeHex); + } catch { + // Continue regardless of error } } diff --git a/update_versions.py b/update_versions.py index 414c42d9..d9353713 100644 --- a/update_versions.py +++ b/update_versions.py @@ -3,7 +3,7 @@ import os import re from datetime import datetime -LATEST_VERSION = "1.12.1" +LATEST_VERSION = "1.12.2" RELEASE_DATE = datetime.now().strftime("%Y-%-m-%d") # Format: YYYY-M-D WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")