Skip to content

feat(ui): add default iOS glass theme with adjustable intensity, rounded UI, and standard mode toggle #96

Done

Description

@mlgitdev

Summary & Motivation

Introduce a modern, institutional iOS-inspired Frosted Glass Theme as the new default visual style for NewsAlerts, featuring subtle bar-level adjustable glass intensity (strictly bounded — never full transparency), refined rounded geometry across surfaces, edges, controls, badges, and icons, and one-click switching back to the classic Standard dark theme with persistent saved state.

Proposed Solution

  • Theme System (ui.theme: "glass" | "standard", default "glass"):
    • New iOS Glass default theme built on pure CSS custom properties (body.theme-glass) over a rich deep ambient gradient backdrop, layered frosted surfaces (backdrop-filter: blur(...) saturate(...)), delicate specular hairline borders, and unified rounded geometry across panes, topbar controls, filter pills, inputs, icon buttons, modals, popovers, drawers, and floating tape pills.
    • Full toggle back to Standard (body.theme-standard) preserving the existing classic flat institutional look.
  • Adjustable Glass Intensity (ui.glass_intensity: 0–100, default 65):
    • Slider control in Settings (with live preview and cancel rollback) adjusting blur depth, frosted translucency, and specular sheen within strict readability bounds (never fully transparent so high-density prices, tickers, and alerts remain crystal clear).
  • Persistence & Sibling Window Parity:
    • Persisted atomically in config.json under ui.theme and ui.glass_intensity (backwards-compatible via _merge(DEFAULT_CONFIG, loaded)).
    • Applied via shared helper in web/js/util.js so both web/index.html and detached pop-out web/tape.html stay synchronized on startup and live on config updates.

Technical & UI Specifications

  • In-App CSS Glass Only (Zero Native OS Transparency Hacks): Keep opaque pywebview windows (background_color="#0b0e14") to guarantee cross-platform stability across Windows Edge WebView2, macOS Safari WebKit, and Linux WebKit2GTK.
  • 60fps High-Density Table Safety: Restrict backdrop-filter to static structural surfaces/overlays (~8–12 composited layers); never apply backdrop-filter to individual <tr> / <td> table rows.
  • Compatibility: Verify Bright tape colors (body.bright) compatibility under both Glass and Standard themes across 3840x2160 down to 640x520 viewports.
  • Versioning & Docs: Planned as v2.17.0 (MINOR) with docs/SPEC.md (spec-sync), release notes, and wiki updates once approved.

Alternatives Considered

  • Native OS Acrylic/Mica/Vibrancy (transparent=True in pywebview): rejected due to cross-platform fragility (Win32 focus/resize lag, Linux X11/Wayland compositor incompatibility, and uncontrolled desktop wallpaper bleed hurting trader legibility).

Additional Context

Planning phase only — awaiting @mlgitdev approval on effort, risk assessment, and design decisions before creating a worktree or writing code.

Activity

  1. self-assigned this
    on Dec 4, 2026
  2. added
    enhancement
    on Dec 4, 2026
  3. github-actions commented on Dec 4, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (feat(ui))
    • Verified issue type: FEATURE
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 4, 2026

    @mlgitdev
    OwnerAuthor

    Approved by @mlgitdev with finalized scope for NewsAlerts v3.0.0 (MAJOR):

    • SemVer 3.0.0: Major visual milestone (100% backwards-compatible with existing config.json).
    • Default Theme: iOS Glass (ui.theme = "glass", ui.glass_intensity = 65) enabled by default for both new and upgrading users, switchable anytime to Standard, persisted atomically.
    • Compact Topbar Glass Control (#btn-glass-theme): Shows only compact icon + percentage level (65%, or Std in Standard mode) in the topbar so it takes minimal space; hovering, scrolling over it, or clicking pops up a floating frosted glass popover (#glass-popover) containing the iOS Glass / Standard toggle and the 0%–100% Glass Intensity bar (with strict readability floor — never full transparency).
    • Unified Rounded Geometry: Rounded corners across panes, controls, tabs, badges, inputs, modals, popovers, and icons in Glass mode, synced across both web/index.html and detached web/tape.html.
  5. mlgitdev commented on Dec 4, 2026

    @mlgitdev
    OwnerAuthor

    Opened Pull Request: #97 (commit f34144259c7638dcbf5489cf5317e332d2fd26d0) resolving #96 for NewsAlerts v3.0.0.

    Implementation Summary

    • Default iOS Frosted Glass Theme (ui.theme = "glass", ui.glass_intensity = 65): Unified rounded surfaces/icons, specular hairline borders, strict readability floor (surface alpha >= 0.60), zero per-row backdrop-filter, and instant switch back to classic Standard mode.
    • Compact Topbar Percentage Trigger (#btn-glass-theme) & Hover Popover (#glass-popover): Shows compact droplet icon + percentage (65% / Std); hover, wheel-scroll (±5%), focus, or click opens the fixed floating frosted slider popover.
    • Persistence & Parity: Atomic save in config.json, Settings live preview + Cancel rollback, and live sync to detached web/tape.html via shared App.applyTheme.
    • Docs & Versioning: Bumped VERSION to 3.0.0, updated docs/SPEC.md (spec-sync), docs/releases/v3.0.0.md, docs/RELEASES.md, and docs/wiki/.

    Verification

    • Test-first tests/test_theme.py + full suite: 124/124 passed.
    • Live browser ui-qa-pass across 1920x1080, 1600x900, 820x900, 640x520, and /tape.html (1280x720): 0 overlaps, 0 console errors, reload persistence & Cancel rollback verified.
    • Portable v3.0.0 build & verify-packages gate passed (NewsAlerts.exe, 15.1 MB).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions