From fa05ee34ea23e49cb9e537d3f5144a214599df91 Mon Sep 17 00:00:00 2001 From: Kenneth Hendricks <50819541+kenhendricks00@users.noreply.github.com> Date: Sun, 25 Jan 2026 12:31:23 -0500 Subject: [PATCH] Add files via upload --- src/pub/index.html | 9 + src/pub/index.js | 19 +- src/pub/settings-page.html | 1236 ++++++++++++++++++------------------ src/pub/welcome-page.html | 592 +++++++++-------- 4 files changed, 922 insertions(+), 934 deletions(-) diff --git a/src/pub/index.html b/src/pub/index.html index 77d2b77..1551669 100644 --- a/src/pub/index.html +++ b/src/pub/index.html @@ -29,6 +29,15 @@ --hover-bg: rgba(0, 0, 0, 0.1); } + [data-theme="amoled"] { + --background-color: #000000; + --text-color: #848a94; + --text-color-light: #e8e8e8; + --accent-color: #c4b5fd; + --link-color: #78b3e2; + --hover-bg: rgba(255, 255, 255, 0.08); + } + body { text-align: center; background-color: var(--background-color); diff --git a/src/pub/index.js b/src/pub/index.js index 083323f..1f5d106 100644 --- a/src/pub/index.js +++ b/src/pub/index.js @@ -29,14 +29,17 @@ document.addEventListener("DOMContentLoaded", async () => { async function applyTheme() { try { - const { theme } = await browserAPI.storage.sync.get("theme"); - const prefersDark = window.matchMedia( - "(prefers-color-scheme: dark)" - ).matches; - document.body.setAttribute( - "data-theme", - theme || (prefersDark ? "dark" : "light") - ); + const { theme } = await browserAPI.storage.local.get("theme"); + if (theme && theme !== "system") { + // Apply specific theme (dark, light, or amoled) + document.body.setAttribute("data-theme", theme); + } else { + // System default - detect preference + const prefersDark = window.matchMedia( + "(prefers-color-scheme: dark)" + ).matches; + document.body.setAttribute("data-theme", prefersDark ? "dark" : "light"); + } } catch (error) { console.error("Error applying theme:", error); } diff --git a/src/pub/settings-page.html b/src/pub/settings-page.html index bda5e1f..d1a3394 100644 --- a/src/pub/settings-page.html +++ b/src/pub/settings-page.html @@ -1,700 +1,700 @@ -
- - -- Choose your preferred appearance mode -
-- Show warning page for unsafe sites -
-- Visually highlight safe and unsafe links in web pages -
- -- Highlight safe links (green) -
-+ Choose your preferred appearance mode +
- Highlight unsafe links (red) -
-- Show warning banners next to unsafe links -
-- Safe link color -
-- Unsafe link color -
-- Automatically update security filters -
-- Manually add domains to safe or unsafe lists -
- -- Safe Domains (one per line) -
- -- Unsafe Domains (one per line) -
- -+ Show warning page for unsafe sites +
+