diff --git a/README.md b/README.md index deae8af..f263c2f 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,9 @@ Active momentum day trading requires spotting low-float runners the split second **NewsAlerts bridges this gap with a focused, zero-bloat institutional trading terminal designed for pure execution speed:** +- ✨ **iOS Frosted Glass Theme (Default in v3.0.0) & Hover Intensity Popover**: Modern institutional frosted dark-glass interface with unified rounded panes, capsules, and circular icons, a compact topbar percentage trigger (`πŸ’§ 70%`) that pops up a `0%`–`100%` Glass Intensity bar on hover/scroll/click (with strict non-transparent readability floor), and instant 1-click switching back to classic **Standard** dark mode. - ⚑ **Zero-Latency Inbound Alerts & Dual Topbar Toggles**: Instant audio chimes (with interactive volume control & dedicated in-app audio bell) alongside independent Telegram push notifications with a dedicated 1-click topbar toggle (Telegram paper plane + bell) to silence mobile phone alerts when operating directly at your desk. -- 🌊 **Running Momentum Tape**: Warrior-Trading style High of Day (HOD) and Squeeze Breakout prints with 4-day local disk persistence for weekend and off-hours trade review. +- 🌊 **Running Momentum Tape**: Warrior-Trading style High of Day (HOD) and Squeeze Breakout prints with 4-day local disk persistence and an automatic bottom-centered **`↑ Back to Top`** pill alongside `New Events ↑` for effortless deep history review. - 🎯 **Interactive Strategy Builder & Tape Quick-Filter**: Construct customized momentum rules (`+ Add Strategy`) with trigger selectors, float ranges, and surge velocities in Settings, with instant one-click toggles right from the tape header (`Strategies 11/13`). - πŸ“‹ **TradingView Cloud Watchlist Sync & 1-Click Quick-Add**: Real-time cloud watchlist selector bar docked directly above news headlines, paired with 1-click quick-add (`+`) buttons next to tickers in the Screener, Tape, and News header. Features 3-second green/red flickering feedback and instant cloud sync directly into your TradingView Desktop app. - πŸ“° **Zero-Lag Catalyst Confirmation (Beat the 15-Min Delay)**: Unlike retail charting platforms where news lags by 5 to 15 minutes, NewsAlerts pulls fresh headlines the second they cross the wire (Benzinga, GlobeNewswire, PR Newswire), enabling immediate verification of whether a runner is moving on real PR or sym-play noise. @@ -55,7 +56,7 @@ Active momentum day trading requires spotting low-float runners the split second NewsAlerts Real-Time Momentum Terminal
- Live institutional terminal capture (v2.15.0): Multi-tab real-time screener with inline duplicate & right-side Γ— close buttons, high-of-day momentum tape, TradingView cloud watchlist selector, 1-click topbar Prevent Screen Lock toggle, dual in-app audio & Telegram alert toggles, interactive topbar 🚫 Banned / Closing-Only filter, catalyst news wire, and BamSEC SEC filings intelligence. + Live institutional terminal capture (v3.0.0 β€” Default iOS Frosted Glass Theme): Rounded frosted glass surfaces & circular icon buttons, compact topbar πŸ’§ 70% glass hover slider, multi-tab real-time screener (+ / ⧉ / Γ—), running momentum tape with floating ↑ Back to Top pill, TradingView cloud watchlist sync, 1-click Prevent Screen Lock toggle, interactive 🚫 Banned filter, catalyst news wire, and BamSEC SEC filings intelligence.

@@ -66,6 +67,28 @@ Active momentum day trading requires spotting low-float runners the split second + + + + + + + + `/`
+

✨ iOS Frosted Glass Theme & Hover Slider (v3.0)

+

Default frosted glass look with compact topbar hover control & classic Standard toggle

+
    +
  • Zero Topbar Bloat: Compact πŸ’§ 70% percentage pill expands on hover, mouse-wheel scroll (Β±5%), or click into a floating frosted Appearance popover.
  • +
  • Bar-Level Intensity (0%–100%): Smoothly adjusts blur and frosted translucency with a strict readability floorβ€”never full transparency.
  • +
  • Switch to Standard Anytime: Flip instantly back to classic flat dark mode (shown below) with state persisted across restarts and pop-out Tape windows.
  • +
+
+ + Topbar Glass Intensity Hover Popover + +
+ + Standard Dark Theme Switch with New Events and Back to Top Pills + +
+ Top: Hovering the topbar πŸ’§ 70% pill reveals the Glass Intensity bar. Bottom: Switching to classic Standard mode (also showcasing side-by-side New Events ↑ and ↑ Back to Top tape pills). +

⚑ Real-Time Momentum Screener

@@ -254,9 +277,10 @@ Active momentum day trading requires spotting low-float runners the split second
-

πŸ”‹ Power & Keep-Awake Controls

-

Keep active trading desks awake & unlocked without changing OS power plans

+

πŸ”‹ Appearance, Power & Keep-Awake Settings

+

Unified General Settings for iOS Glass intensity, keep-awake locks, and BamSEC layout

    +
  • Window & Appearance: Switch between ✦ iOS Glass (Default) and Standard and fine-tune Glass intensity with live preview and Cancel rollback.
  • Prevent Screen Lock: Keeps OS sessions unlocked, awake, and displays powered on during active trading sessions.
  • 1-Click Topbar Lock Toggle: Dedicated padlock toggle icon on the topbar synchronized live with Settings → General.
  • Prevent Sleep & Monitors Off: Independent checkboxes to block system standby or display sleep across Windows, macOS, and Linux.
  • diff --git a/VERSION b/VERSION index 7524906..4a36342 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.16.0 +3.0.0 diff --git a/app/config.py b/app/config.py index 90c0893..e4c5218 100644 --- a/app/config.py +++ b/app/config.py @@ -236,7 +236,14 @@ def find_secrets_file() -> Path | None: "prevent_sleep": False, "prevent_display_off": False, }, - "ui": {"always_on_top": False, "font_size": 13, "news_width": 420, "tape_height": 300}, + "ui": { + "always_on_top": False, + "font_size": 13, + "news_width": 420, + "tape_height": 300, + "theme": "glass", + "glass_intensity": 65, + }, } @@ -256,6 +263,17 @@ def _merge(base: dict, override: dict) -> dict: out["tape"]["strategies"].append(copy.deepcopy(default_s)) if "enabled" in out["tape"] and isinstance(out["tape"]["enabled"], list): out["tape"]["enabled"].append(default_s["name"]) + if "ui" in out and isinstance(out["ui"], dict): + theme = out["ui"].get("theme") + out["ui"]["theme"] = theme if theme in ("glass", "standard") else "glass" + raw_intensity = out["ui"].get("glass_intensity", 65) + try: + if isinstance(raw_intensity, bool): + raise ValueError("bool not allowed") + clamped = int(round(float(raw_intensity))) + except (TypeError, ValueError): + clamped = 65 + out["ui"]["glass_intensity"] = max(0, min(100, clamped)) return out diff --git a/assets/hero.jpg b/assets/hero.jpg index 23592e9..376d5c5 100644 Binary files a/assets/hero.jpg and b/assets/hero.jpg differ diff --git a/assets/social_preview.png b/assets/social_preview.png index da82214..6837ff1 100644 Binary files a/assets/social_preview.png and b/assets/social_preview.png differ diff --git a/docs/RELEASES.md b/docs/RELEASES.md index bf2eecf..81bea1e 100644 --- a/docs/RELEASES.md +++ b/docs/RELEASES.md @@ -37,6 +37,7 @@ All official releases are produced deterministically through GitHub Actions: ## Release History +- [v3.0.0 Release Notes](releases/v3.0.0.md) β€” Major visual milestone introducing the default **iOS Frosted Glass** theme with unified rounded surfaces/icons, compact topbar hover-popover intensity bar (`0%`–`100%` with strict readability floor), instant switch to classic **Standard** mode, persistent saved state, and live `web/tape.html` parity (Resolves #96). - [v2.16.0 Release Notes](releases/v2.16.0.md) β€” Added floating `↑ Back to Top` (`#tape-scroll-top`) pill when scrolling the Running Tape, paired side-by-side with `New Events ↑` in `.tape-float-bar` across both main and pop-out `web/tape.html` windows (Resolves #94). - [v2.15.0 Release Notes](releases/v2.15.0.md) β€” Added dedicated screener tab Add (`+`), inline Duplicate (`⧉`), and right-side inline Close (`Γ—`) buttons without right-clicking, plus stale screen state pruning in `ScreenerWorker` (Resolves #85). - [v2.14.0 Release Notes](releases/v2.14.0.md) β€” Added responsive horizontal topbar scrolling with auto-shown left/right arrow buttons on both sides of the screen for narrow windows and multi-tab layouts (Resolves #84). diff --git a/docs/SPEC.md b/docs/SPEC.md index f386b25..baf8cc2 100644 --- a/docs/SPEC.md +++ b/docs/SPEC.md @@ -21,6 +21,26 @@ A lightweight cross-platform desktop trading terminal (`Windows x64`, `macOS arm
+

✨ iOS Frosted Glass Theme & Standard Mode Toggle (v3.0)

+

Default rounded frosted glass workspace with compact topbar hover intensity slider

+
    +
  • Compact Topbar Control (#btn-glass-theme): Shows only the droplet icon + percentage; hovering, scrolling, or clicking opens #glass-popover.
  • +
  • Readability Floor: Bar-level 0%–100% intensity never becomes fully transparent; zero per-row backdrop-filter preserves 60fps tape scrolling.
  • +
  • Classic Standard Mode: Instant 1-click switch back to flat dark theme (persisted in config.json and synced to pop-out web/tape.html).
  • +
+
+ + Topbar Glass Intensity Hover Popover + +
+ + Standard Mode Switch and Tape Floating Pills + +

⚑ Real-Time Momentum Screener

@@ -209,9 +229,10 @@ A lightweight cross-platform desktop trading terminal (`Windows x64`, `macOS arm
-

πŸ”‹ Power & Keep-Awake Controls

-

Cross-platform keep-awake & prevent screen lock directly in General Settings & Topbar

+

πŸ”‹ Appearance, Power & Keep-Awake Settings

+

Unified General Settings for iOS Glass intensity, cross-platform keep-awake, and BamSEC

    +
  • Window & Appearance: Live-preview theme switcher (iOS Glass default / Standard) and 0%–100% Glass intensity slider with Cancel rollback.
  • Prevent Screen Lock: Keeps OS sessions unlocked and awake, also toggleable with 1 click from the topbar lock icon (#btn-prevent-lock).
  • Prevent System Sleep: Blocks OS sleep/standby while NewsAlerts is running.
  • Prevent Monitors Turning Off: Keeps trading displays powered on without changing system-wide power plans.
  • @@ -345,8 +366,11 @@ Non-session fields: `float_shares_outstanding`, `market_cap_basic`, `sector`, - News pane features custom US equity symbol inspection (`#news-sym-input`) and quick watchlist chips. - Tape header features instant quick-filter popout (`Strategies 11/13`) with color bullets and select/unselect all. - Tape floating pill bar (`.tape-float-bar`) houses both `New Events ↑` (`#tape-new-events`) and an auto-shown `↑ Back to Top` (`#tape-scroll-top`) scroll utility button side-by-side without overlap across both embedded and pop-out `web/tape.html` views. -- Tape can pop out into its own window (second `pywebview` window serving `web/tape.html` with full watchlist `+` and floating `↑ Back to Top` parity). -- Dark theme matching TradingView look. +- Tape can pop out into its own window (second `pywebview` window serving `web/tape.html` with full watchlist `+`, floating `↑ Back to Top`, and live theme synchronization parity). +- **Default iOS Frosted Glass Theme & Compact Topbar Hover Slider (`v3.0.0`)**: + - **iOS Frosted Glass (`ui.theme = "glass"`, default)** renders a modern institutional glass-morphism workspace (`body.theme-glass`) layered over a deep ambient dark backdrop, with rounded surfaces (`16px`–`20px`), capsule tabs/pills/buttons/icons (`999px`), specular hairline borders, and strictly bounded `backdrop-filter` / `-webkit-backdrop-filter` applied only to static chrome & pane containers (never to individual table rows/cells, preserving 60fps scrolling at 3,000 rows and 4K). + - **Switchable to Standard (`ui.theme = "standard"`)**: Traders can switch instantly back to the classic flat dark theme anytime; choice and intensity persist in `config.json` and synchronize live across both `web/index.html` and detached `web/tape.html` via shared `App.applyTheme(ui)` in `web/js/util.js`. + - **Compact Topbar Percentage Trigger (`#btn-glass-theme`, `#glass-level-text`) & Hover Popover (`#glass-popover`)**: Displays only a minimal glass icon + percentage level (`65%` in Glass mode, `Std` in Standard mode) to conserve topbar width. Hovering, wheel-scrolling over it, focusing, or clicking opens the fixed floating `#glass-popover` containing the `iOS Glass` / `Standard` segmented switch and a `0%`–`100%` **Glass Intensity** bar (`ui.glass_intensity`, default `65`) enforcing a strict readability floor (surface opacity β‰₯ `0.60`, never full transparency). ## 6. Screener ### 6.1 Screens (presets) @@ -561,7 +585,7 @@ Optional tape sound (default off β€” the tape is noisy). ## 10. Settings, Integrations & Local HTTP API Settings modal (`#settings`, 9 tabs): **General & TV Login** Β· **Short Borrow** Β· **Sound Alerts** Β· **News** Β· **Tape Strategies** Β· **🚫 Banned Stocks** Β· **Hotkeys** Β· **Backup & Sync** Β· **About**. - **Live In-Flight Credential Testing**: Both Alpaca (`POST /api/test_alpaca`) and Telegram (`POST /api/test_telegram`) support live testing directly with unsaved form values before saving Settings. -- **Reactive Topbar Sync**: Saving Settings, importing a Backup `.json`, or restoring Factory Defaults synchronously updates topbar Mute, Telegram, Volume, Prevent Lock, and Banned badge controls without restarting. +- **Reactive Topbar Sync**: Saving Settings, importing a Backup `.json`, or restoring Factory Defaults synchronously updates topbar Mute, Telegram, Volume, Prevent Lock, Glass Theme/Intensity, and Banned badge controls without restarting. - **Storage Transparency & Direct Directory Access**: Settings β†’ About and Settings β†’ Backup & Sync display the active resolved OS directory (`APP_DIR`) on disk alongside a one-click `πŸ“‚ Open App Data Folder` button (`POST /api/open_app_dir`, spawning Windows Explorer, macOS Finder, or Linux file manager) and `β†Ί Restore Factory Defaults` (`POST /api/reset_config`). Full Backup `.json` exports sanitize credentials by default unless explicitly opted in. - **Local HTTP API Security & Concurrency**: Mutating `POST /api/*` routes enforce localhost `Origin`/`Referer` verification (`guard_local_csrf` in `app/server.py`, blocking cross-site CSRF with HTTP 403). All responses disable caching (`Cache-Control: no-cache, no-store, must-revalidate`). - **Local HTTP API Routes (`app/server.py` ↔ `web/js/util.js`)**: @@ -578,6 +602,10 @@ Settings modal (`#settings`, 9 tabs): **General & TV Login** Β· **Short Borrow** - `bamsec_enabled` (bool, default `true`): Master opt-in toggle controlling BamSEC utilization across the terminal. When disabled, all BamSEC buttons, badges, drawers, and tabs are removed from the DOM, and all network calls to `/api/bamsec` are halted. - `bamsec_mode` (`"drawer"` | `"tabs"`, default `"drawer"`): Default layout mode when BamSEC is enabled. - `bamsec_drawer_open` (bool, default `true`): Drawer expansion state persistence. +- **Appearance & Theme Controls (`ui`)**: + - Configurable in **Settings β†’ General & TV Login** under *Window & Appearance* (with live preview and Cancel rollback) and from the topbar `#btn-glass-theme` hover popover (`#glass-popover`), persisted under `config.json -> ui`: + - `ui.theme` (`"glass"` | `"standard"`, default `"glass"`): Enables the default **iOS Frosted Glass** theme (`body.theme-glass`) or classic **Standard** dark theme (`body.theme-standard`). + - `ui.glass_intensity` (`0`–`100`, default `65`, clamped in both `app/config.py` and `web/js/util.js`): Controls frosted blur (`6px`–`20px`), saturation, specular border sheen, and translucency with a strict non-transparent readability floor (surface alpha `0.86` β†’ `0.60`). - **Power & Keep-Awake Controls (`power`)**: - Configurable in **Settings β†’ General & TV Login** under *Power & Keep-Awake*, persisted under `config.json -> power`: - `prevent_lock` (bool, default `false`): Prevents automatic screen lock / screensaver while keeping system and displays awake. Also exposed directly as a 1-click **Prevent Screen Lock** toggle button (`#btn-prevent-lock`) in the topbar (`POST /api/set_power`), bidirectionally synchronized with General Settings. diff --git a/docs/img/glass_popover.png b/docs/img/glass_popover.png new file mode 100644 index 0000000..64f0a9a Binary files /dev/null and b/docs/img/glass_popover.png differ diff --git a/docs/img/power_settings.png b/docs/img/power_settings.png index eecb751..990ca4f 100644 Binary files a/docs/img/power_settings.png and b/docs/img/power_settings.png differ diff --git a/docs/img/terminal.png b/docs/img/terminal.png index 37cecf8..4d0e657 100644 Binary files a/docs/img/terminal.png and b/docs/img/terminal.png differ diff --git a/docs/img/theme_standard.png b/docs/img/theme_standard.png new file mode 100644 index 0000000..9e1f3bb Binary files /dev/null and b/docs/img/theme_standard.png differ diff --git a/docs/releases/v3.0.0.md b/docs/releases/v3.0.0.md new file mode 100644 index 0000000..f9f27c2 --- /dev/null +++ b/docs/releases/v3.0.0.md @@ -0,0 +1,60 @@ +# NewsAlerts v3.0.0 β€” Release Notes + +**Release Date:** December 2026 +**Type:** Major Visual Milestone (`MAJOR` β€” Default iOS Frosted Glass Theme, Hover Glass Intensity Slider & Unified Rounded UI) +**Single Source of Truth:** `VERSION` (`3.0.0`) + +--- + +## πŸš€ Overview + +NewsAlerts **v3.0.0** introduces a major visual refresh with a sleek, institutional **iOS Frosted Glass** default theme (`body.theme-glass`) featuring unified rounded geometry across panes, controls, tabs, inputs, modals, and iconsβ€”while keeping 100% backwards compatibility with existing `config.json` files and allowing instant 1-click switching back to the classic **Standard** dark look. + +

    + NewsAlerts v3.0.0 iOS Frosted Glass Terminal +
    + NewsAlerts v3.0.0 β€” Default iOS Frosted Glass Theme (70% intensity). +

    + +

    + Topbar Glass Intensity Hover Popover +
    + Compact topbar πŸ’§ 70% hover popover for switching themes and adjusting Glass Intensity. +

    + +

    + Classic Standard Theme Toggle +
    + 1-click switch back to classic Standard dark mode (persisted in config.json). +

    + +--- + +## ✨ What's New + +- **iOS Frosted Glass Default Theme (`ui.theme = "glass"`)**: + - Enabled by default for both fresh installs and upgrading users (non-breaking `_merge` upgrade in `app/config.py`). + - Frosted dark-glass surfaces (`backdrop-filter` + `-webkit-backdrop-filter`) layered over a deep multi-stop institutional ambient backdrop with subtle specular hairline bordersβ€”never using fragile OS window transparency hacks. + - **60fps High-Density Table Safety**: `backdrop-filter` is strictly scoped to static chrome & pane containers (~8–12 layers) and never applied to individual `
` rows, preserving crisp 60fps scrolling at 3,000 rows and 4K (`3840x2160`). + - **Unified Rounded Geometry**: Refined rounded panes (`16px`), topbar (`18px`), filterbar (`15px`), capsule tabs/pills/buttons/icon buttons (`999px`), rounded inputs/cards/modals (`12px`–`20px`), and full compatibility with `Bright tape colors`. +- **Compact Topbar Percentage Trigger (`#btn-glass-theme`) & Hover Popover (`#glass-popover`)**: + - Occupies minimal topbar space by showing only a compact glass droplet icon and percentage level (`65%`, or `Std` in Standard mode). + - Hovering, mouse-wheel scrolling over it (Β±5% steps), focusing, or clicking opens a fixed floating frosted popover (`#glass-popover`, never clipped by `#topbar-track` overflow) with an **`iOS Glass` | `Standard`** switch and a **`0%`–`100%` Glass Intensity** slider. + - **Strict Readability Floor (Never Full Transparency)**: Glass intensity (`ui.glass_intensity`, default `65`) is clamped to a readable frosted band (`surface alpha β‰₯ 0.60`, blur `6px`–`20px`) so ticker symbols, prices, `% Chg`, and `ETB`/`HTB` badges always stay razor-sharp. +- **Persistent State & Sibling Window Parity**: + - `ui.theme` and `ui.glass_intensity` persist atomically in `/config.json` and sync live across both the main terminal (`web/index.html`) and detached pop-out tape (`web/tape.html`) via shared `App.applyTheme(ui)` in `web/js/util.js`. + - Also configurable in **Settings β†’ General & TV Login** (*Window & Appearance*) with live preview and clean rollback on Cancel. + +--- + +## 🎯 Closed Issues + +- Resolves [#96](https://github.com/mlgitdev/NewsAlerts/issues/96): `feat(ui): add default iOS glass theme with adjustable intensity, rounded UI, and standard mode toggle` + +--- + +## πŸ§ͺ Verification & Test Suite + +- Added test-first regression suite in `tests/test_theme.py` verifying `3.0.0` version lockstep, default `"glass"` / `65` config upgrade & clamping, round-trip persistence, shared `App.applyTheme`, `#btn-glass-theme` / `#glass-popover`, `?v=13` sibling parity, no per-row `backdrop-filter`, and `docs/SPEC.md` documentation. +- Verified live in the integrated browser against an isolated `NEWSALERTS_DIR` server across desktop (`1920x1080`, `1600x900`) and narrow (`820x900`, `640x520`) viewports plus detached `web/tape.html`, confirming hover/click popover positioning, intensity bar live updates, Glass ↔ Standard switching, Bright Tape contrast, reload persistence, and `0` console errors. +- Passed full syntax compilation, unit test suite, PyInstaller portable build, and deterministic package verification gate. diff --git a/docs/wiki/Configuration-&-Secrets-Guide.md b/docs/wiki/Configuration-&-Secrets-Guide.md index 1bd565b..71852b5 100644 --- a/docs/wiki/Configuration-&-Secrets-Guide.md +++ b/docs/wiki/Configuration-&-Secrets-Guide.md @@ -67,6 +67,26 @@ Inside `config.json`, credentials are structured as follows: } ``` +- **`ui` Appearance & Theme (`v3.0.0+`)**: + - `theme` (`"glass"` | `"standard"`, default `"glass"`): Sets the default **iOS Frosted Glass** theme with rounded geometry or switches back to the classic flat **Standard** dark look. + - `glass_intensity` (`0`–`100`, default `65`): Controls frosted blur and surface translucency within a strict readability floor (never fully transparent). Adjustable via the compact topbar percentage hover popover or **Settings β†’ General β†’ Window & Appearance**. + +

+ + Topbar Glass Intensity Hover Popover + +
+ Compact topbar πŸ’§ 70% hover popover for instant Glass Intensity adjustment or switching to Standard mode. +

+ +

+ + Standard Classic Dark Theme + +
+ Switching to classic Standard mode in one click β€” state is persisted in config.json and synced to pop-out Tape windows. +

+ ### 2. Optional Standalone Secrets File: `/keys.toml` For traders, institutions, or automated environments requiring strict file-level separation between general UI preferences and private keys (e.g., to share `config.json` without exposing keys): diff --git a/docs/wiki/Home.md b/docs/wiki/Home.md index 3e6f7c5..a4c3666 100644 --- a/docs/wiki/Home.md +++ b/docs/wiki/Home.md @@ -9,7 +9,7 @@ Built on a native, ultra-responsive architecture (`pywebview` + Vanilla ES6+/CSS NewsAlerts Real-Time Momentum Terminal
- Live institutional terminal capture (v2.15.0): Multi-tab real-time screener with inline duplicate & right-side Γ— close buttons, high-of-day momentum tape, TradingView cloud watchlist selector, 1-click topbar Prevent Screen Lock toggle, dual in-app audio & Telegram alert toggles, interactive topbar 🚫 Banned / Closing-Only filter, catalyst news wire, and BamSEC SEC filings intelligence. + Live institutional terminal capture (v3.0.0 β€” Default iOS Frosted Glass Theme): Rounded frosted glass surfaces & circular icons, compact topbar πŸ’§ 70% glass hover slider, multi-tab real-time screener (+ / ⧉ / Γ—), high-of-day momentum tape with ↑ Back to Top pill, TradingView cloud watchlist selector, 1-click topbar Prevent Screen Lock toggle, dual in-app audio & Telegram alert toggles, interactive topbar 🚫 Banned filter, catalyst news wire, and BamSEC SEC filings intelligence.

--- diff --git a/docs/wiki/_Footer.md b/docs/wiki/_Footer.md index 18f9895..c6cd7ee 100644 --- a/docs/wiki/_Footer.md +++ b/docs/wiki/_Footer.md @@ -1,7 +1,7 @@ ---

- NewsAlerts v2.16.0 Β· Institutional Trading Terminal Β· Maintained by @mlgitdev Β· GitHub Repository Β· Wiki Home + NewsAlerts v3.0.0 Β· Institutional Trading Terminal Β· Maintained by @mlgitdev Β· GitHub Repository Β· Wiki Home

diff --git a/scripts/make_social_preview.py b/scripts/make_social_preview.py index ec1e1a0..9ffabbb 100644 --- a/scripts/make_social_preview.py +++ b/scripts/make_social_preview.py @@ -117,15 +117,15 @@ def draw_glow(cx, cy, radius, color): draw.text((48, 158), sub_line1, font=font_reg_14, fill=(148, 163, 184)) draw.text((48, 178), sub_line2, font=font_reg_14, fill=(148, 163, 184)) - # Core + v2.15.0 Flagship Features (with crisp indicator dots) + # Core + v3.0.0 Flagship Features (with crisp indicator dots) bullets = [ + ((56, 189, 248), "iOS Frosted Glass UI (v3.0)", "Rounded glass chrome, hover slider & Standard mode"), ((34, 201, 147), "Multi-Tab Screener & Alerts", "+ Add, duplicate, inline x close & Telegram bells"), - ((34, 211, 238), "Running Momentum Tape", "Warrior-style HOD & squeeze breakout prints"), + ((34, 211, 238), "Running Momentum Tape", "HOD & squeeze prints with Back-to-Top jump pill"), ((251, 191, 36), "Zero-Lag Catalyst Wire", "Real-time Benzinga PRs without retail delay"), ((244, 63, 94), "BamSEC SEC Filings Radar", "Spot shelf registrations (F-3/S-3) & dilution risk"), ((59, 130, 246), "TradingView Cloud Sync", "Real-time cloud watchlists & 1-click quick-add"), - ((168, 85, 247), "Institutional Short Locates", "Real-time ETB Β· HTB Β· NO BORROW badges"), - ((56, 189, 248), "Keep-Awake & Scroll Topbar", "Topbar lock toggle & narrow-window scroll arrows"), + ((168, 85, 247), "Locates & Keep-Awake", "ETB/HTB/NO BORROW badges + topbar lock guard"), ] by = 216 @@ -178,7 +178,7 @@ def round_corners(image: Image.Image, radius: int) -> Image.Image: out.putalpha(mask) return out - # 6. Right Side Visual Showcase: Elevated v2.15.0 Terminal Window + # 6. Right Side Visual Showcase: Elevated v3.0.0 iOS Glass Terminal Window terminal_path = base_dir / "docs" / "img" / "terminal.png" if terminal_path.exists(): term_img = Image.open(terminal_path).convert("RGBA") @@ -228,7 +228,7 @@ def round_corners(image: Image.Image, radius: int) -> Image.Image: ) img.paste(strat_rounded, (sx, sy), strat_rounded) - # 8. Overlaid Live Momentum Alert Card (matching live v2.15.0 terminal capture) + # 8. Overlaid Live Momentum Alert Card (matching live v3.0.0 Glass terminal capture) bx, by_card = 910, 356 bw, bh = 324, 68 b_shadow = Image.new("RGBA", (bw + 40, bh + 40), (0, 0, 0, 0)) @@ -260,11 +260,11 @@ def round_corners(image: Image.Image, radius: int) -> Image.Image: ) draw = ImageDraw.Draw(img) draw.text((bx + 20, by_card + 12), "!", font=font_bold_15, fill=(52, 211, 153)) - draw.text((bx + 42, by_card + 12), "EVRL", font=font_bold_15, fill=(255, 255, 255)) - draw.text((bx + 88, by_card + 12), "+276.52%", font=font_bold_15, fill=(74, 222, 128)) - draw.rounded_rectangle([bx + 170, by_card + 13, bx + 206, by_card + 29], radius=4, fill=(234, 179, 8, 255)) - draw.text((bx + 176, by_card + 14), "HTB", font=font_mono_11, fill=(0, 0, 0)) - draw.text((bx + 42, by_card + 39), "HOD Squeeze Β· 42.7M Vol Β· Pre-Mkt", font=font_mono_11, fill=(56, 189, 248)) + draw.text((bx + 42, by_card + 12), "CCTG", font=font_bold_15, fill=(255, 255, 255)) + draw.text((bx + 90, by_card + 12), "+145.95%", font=font_bold_15, fill=(74, 222, 128)) + draw.rounded_rectangle([bx + 172, by_card + 13, bx + 208, by_card + 29], radius=4, fill=(234, 179, 8, 255)) + draw.text((bx + 178, by_card + 14), "HTB", font=font_mono_11, fill=(0, 0, 0)) + draw.text((bx + 42, by_card + 39), "654K Float Β· 20.4M Vol Β· 1060x rVol", font=font_mono_11, fill=(56, 189, 248)) # 9. Overlaid BamSEC SEC Filings Card fx, fy = 910, 438 @@ -297,12 +297,12 @@ def round_corners(image: Image.Image, radius: int) -> Image.Image: outline=(244, 63, 94, 150), ) draw = ImageDraw.Draw(img) - draw.text((fx + 17, fy + 14), "35 SEC", font=font_mono_11, fill=(251, 113, 133)) + draw.text((fx + 17, fy + 14), "33 SEC", font=font_mono_11, fill=(251, 113, 133)) draw.text((fx + 70, fy + 12), "BamSEC", font=font_bold_15, fill=(255, 255, 255)) draw.text((fx + 132, fy + 13), "EDGAR Dilution Radar", font=font_bold_14, fill=(244, 63, 94)) draw.text((fx + 70, fy + 39), "F-3 / S-3 / 424B Β· Drawer & Sub-Tabs", font=font_mono_11, fill=(148, 163, 184)) - # 10. Overlaid Desk Controls Highlight Pill (v2.13–v2.15) + # 10. Overlaid v3.0.0 iOS Glass & Desk Controls Highlight Card dx, dy = 910, 520 dw, dh = 324, 60 d_shadow = Image.new("RGBA", (dw + 40, dh + 40), (0, 0, 0, 0)) @@ -326,8 +326,8 @@ def round_corners(image: Image.Image, radius: int) -> Image.Image: fill=(56, 189, 248, 255), ) draw = ImageDraw.Draw(img) - draw.text((dx + 16, dy + 11), "Multi-Tab Screener Β· Keep-Awake", font=font_bold_14, fill=(255, 255, 255)) - draw.text((dx + 16, dy + 34), "Inline + / Dup / x Β· Lock Guard Β· Scroll Bar", font=font_mono_11, fill=(125, 211, 252)) + draw.text((dx + 16, dy + 11), "iOS Frosted Glass Β· Desk Controls", font=font_bold_14, fill=(255, 255, 255)) + draw.text((dx + 16, dy + 34), "0-100% Slider Β· Rounded UI Β· Back to Top", font=font_mono_11, fill=(125, 211, 252)) # Save PNG and JPG versions output_path.parent.mkdir(parents=True, exist_ok=True) diff --git a/tests/test_theme.py b/tests/test_theme.py new file mode 100644 index 0000000..d4b1f64 --- /dev/null +++ b/tests/test_theme.py @@ -0,0 +1,112 @@ +"""Unit tests for v3.0.0 default iOS Glass theme, intensity clamping, topbar popover, and sibling parity.""" +from __future__ import annotations + +import json +import re +import tempfile +import unittest +from pathlib import Path +from unittest.mock import patch + +import app.config as cfg_mod +from app.config import Config, DEFAULT_CONFIG, _merge + +ROOT = Path(__file__).resolve().parent.parent + + +class TestGlassThemeConfig(unittest.TestCase): + def test_defaults_enable_ios_glass_theme_at_65_percent(self): + self.assertEqual(DEFAULT_CONFIG["ui"]["theme"], "glass") + self.assertEqual(DEFAULT_CONFIG["ui"]["glass_intensity"], 65) + + def test_legacy_config_upgrades_to_glass_default_without_losing_ui_prefs(self): + legacy = {"ui": {"always_on_top": True, "font_size": 15, "news_width": 480}} + merged = _merge(DEFAULT_CONFIG, legacy) + self.assertEqual(merged["ui"]["theme"], "glass") + self.assertEqual(merged["ui"]["glass_intensity"], 65) + self.assertTrue(merged["ui"]["always_on_top"]) + self.assertEqual(merged["ui"]["font_size"], 15) + self.assertEqual(merged["ui"]["news_width"], 480) + + def test_merge_preserves_standard_theme_and_clamps_intensity(self): + std = _merge(DEFAULT_CONFIG, {"ui": {"theme": "standard", "glass_intensity": 25}}) + self.assertEqual(std["ui"]["theme"], "standard") + self.assertEqual(std["ui"]["glass_intensity"], 25) + + self.assertEqual(_merge(DEFAULT_CONFIG, {"ui": {"glass_intensity": -20}})["ui"]["glass_intensity"], 0) + self.assertEqual(_merge(DEFAULT_CONFIG, {"ui": {"glass_intensity": 180}})["ui"]["glass_intensity"], 100) + self.assertEqual(_merge(DEFAULT_CONFIG, {"ui": {"glass_intensity": "bad"}})["ui"]["glass_intensity"], 65) + self.assertEqual(_merge(DEFAULT_CONFIG, {"ui": {"theme": "unknown"}})["ui"]["theme"], "glass") + + def test_theme_and_intensity_persist_across_config_reloads(self): + with tempfile.TemporaryDirectory() as td: + app_dir = Path(td) + cfg_path = app_dir / "config.json" + with patch.object(cfg_mod, "APP_DIR", app_dir), patch.object(cfg_mod, "CONFIG_PATH", cfg_path): + c1 = Config() + data = c1.get() + self.assertEqual(data["ui"]["theme"], "glass") + self.assertEqual(data["ui"]["glass_intensity"], 65) + + data["ui"]["theme"] = "standard" + data["ui"]["glass_intensity"] = 42 + c1.update(data) + + raw = json.loads(cfg_path.read_text(encoding="utf-8")) + self.assertEqual(raw["ui"]["theme"], "standard") + self.assertEqual(raw["ui"]["glass_intensity"], 42) + + c2 = Config() + self.assertEqual(c2.get()["ui"]["theme"], "standard") + self.assertEqual(c2.get()["ui"]["glass_intensity"], 42) + + +class TestGlassThemeFrontendAndContracts(unittest.TestCase): + def test_version_is_major_3_0_0_and_wiki_footer_matches(self): + ver = (ROOT / "VERSION").read_text(encoding="utf-8").strip() + self.assertEqual(ver, "3.0.0") + footer = (ROOT / "docs" / "wiki" / "_Footer.md").read_text(encoding="utf-8") + self.assertIn("v3.0.0", footer) + + def test_util_js_exposes_shared_apply_theme_with_readability_floor(self): + util_js = (ROOT / "web" / "js" / "util.js").read_text(encoding="utf-8") + self.assertIn("applyTheme(", util_js) + self.assertIn("theme-glass", util_js) + self.assertIn("theme-standard", util_js) + self.assertIn("--g-surface-a", util_js) + self.assertIn("--g-blur", util_js) + + def test_topbar_has_compact_glass_percentage_trigger_and_popout_tape_syncs_theme(self): + idx_html = (ROOT / "web" / "index.html").read_text(encoding="utf-8") + tape_html = (ROOT / "web" / "tape.html").read_text(encoding="utf-8") + app_js = (ROOT / "web" / "js" / "app.js").read_text(encoding="utf-8") + + self.assertIn('id="btn-glass-theme"', idx_html) + self.assertIn('id="glass-level-text"', idx_html) + self.assertIn("initGlassThemeControl", app_js) + self.assertIn("glass-popover", app_js) + self.assertIn("App.applyTheme", tape_html) + + for asset in ("css/app.css", "js/util.js", "js/tape.js"): + m_idx = re.search(rf"{re.escape(asset)}\?v=(\d+)", idx_html) + m_tape = re.search(rf"{re.escape(asset)}\?v=(\d+)", tape_html) + self.assertIsNotNone(m_idx) + self.assertIsNotNone(m_tape) + self.assertEqual(m_idx.group(1), m_tape.group(1)) + + def test_css_implements_ios_glass_theme_without_per_row_backdrop_filter(self): + css = (ROOT / "web" / "css" / "app.css").read_text(encoding="utf-8") + self.assertIn("body.theme-glass", css) + self.assertIn(".glass-popover", css) + self.assertIn("-webkit-backdrop-filter", css) + # Never apply backdrop-filter directly to table rows/cells (protects 3,000-row scroll FPS) + self.assertNotRegex(css, r"table\.grid\s+t[rd][^{]*\{[^}]*backdrop-filter") + + def test_spec_md_documents_glass_theme_and_topbar_popover(self): + spec = (ROOT / "docs" / "SPEC.md").read_text(encoding="utf-8") + for token in ("ui.theme", "ui.glass_intensity", "#btn-glass-theme", "#glass-popover"): + self.assertIn(token, spec) + + +if __name__ == "__main__": + unittest.main() diff --git a/web/css/app.css b/web/css/app.css index a43c2fe..08d22c4 100644 --- a/web/css/app.css +++ b/web/css/app.css @@ -1752,3 +1752,396 @@ body.tape-only .tape-pane { height: 100vh; min-height: 0; overflow: hidden; } color: #fff; } + +/* ============================================================================ + v3.0.0 β€” Topbar Glass Hover Control & iOS Frosted Glass Default Theme + ============================================================================ */ +:root { + --g-blur: 15.1px; + --g-sat: 166%; + --g-surface-a: 0.691; + --g-head-a: 0.757; + --g-border-a: 0.152; + --g-spec-a: 0.164; + --g-glow-a: 0.249; +} + +/* Compact topbar glass percentage pill (works in both Glass & Standard themes) */ +.glass-theme-btn { + cursor: pointer; + height: 30px; + padding: 0 10px; + gap: 5px; + font-size: 11.5px; + font-weight: 650; + color: var(--text); + transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; +} +.glass-theme-btn svg { + width: 13px; + height: 13px; + flex-shrink: 0; +} +.glass-theme-btn.is-glass { + color: var(--cyan); + border-color: rgba(34, 211, 238, 0.38); + background: rgba(34, 211, 238, 0.10); +} +.glass-theme-btn.is-glass:hover { + border-color: rgba(34, 211, 238, 0.72); + background: rgba(34, 211, 238, 0.18); + box-shadow: 0 0 12px rgba(34, 211, 238, 0.22); +} +.glass-theme-btn.is-standard { + color: var(--text-2); +} +.glass-theme-btn.is-standard:hover { + color: var(--text); + border-color: var(--border-2); +} + +/* Fixed floating Glass hover popover (never clipped by #topbar-track overflow-x) */ +.glass-popover { + position: fixed; + z-index: 80; + width: 232px; + padding: 12px 14px; + border-radius: 16px; + background: rgba(15, 21, 35, 0.93); + backdrop-filter: blur(18px) saturate(165%); + -webkit-backdrop-filter: blur(18px) saturate(165%); + border: 1px solid rgba(255, 255, 255, 0.15); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, 0.18), + 0 18px 46px rgba(0, 0, 0, 0.62); + display: none; + flex-direction: column; + gap: 10px; +} +.glass-popover.show { + display: flex; + animation: popIn .14s ease-out; +} +.glass-pop-head { + font-size: 11px; + font-weight: 700; + letter-spacing: .6px; + text-transform: uppercase; + color: var(--text-2); +} +.glass-pop-seg { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 3px; + padding: 3px; + border-radius: 999px; + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(255, 255, 255, 0.12); +} +.glass-pop-seg button { + border: none; + background: transparent; + color: var(--text-2); + font-size: 11.5px; + font-weight: 650; + padding: 5px 8px; + border-radius: 999px; + cursor: pointer; + transition: all .15s ease; +} +.glass-pop-seg button:hover { color: var(--text); } +.glass-pop-seg button.active { + background: var(--grad); + color: #fff; + box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35); +} +.glass-pop-slider { + display: flex; + flex-direction: column; + gap: 6px; + transition: opacity .15s ease; +} +.glass-pop-slider.disabled { + opacity: 0.4; + pointer-events: none; +} +.glass-pop-row { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 12px; +} +.glass-pop-label { color: var(--text); font-weight: 600; } +.glass-pop-val { color: var(--cyan); font-weight: 700; } +.glass-pop-slider input[type="range"] { + width: 100%; + margin: 0; + accent-color: var(--cyan); + cursor: pointer; +} +.glass-pop-scale { + display: flex; + justify-content: space-between; + font-size: 10.5px; + color: var(--muted); +} + +/* --------------------------------------------------------------------------- + iOS Frosted Glass Theme (body.theme-glass β€” Default in v3.0.0) + Note: backdrop-filter is strictly limited to static chrome & pane containers + (~8-12 layers) and NEVER applied to table rows/cells to keep 60fps scrolling. + --------------------------------------------------------------------------- */ +body.theme-glass { + background: + radial-gradient(760px 460px at 10% 10%, rgba(56, 189, 248, var(--g-glow-a)), transparent 64%), + radial-gradient(680px 440px at 90% 14%, rgba(139, 92, 246, var(--g-glow-a)), transparent 64%), + radial-gradient(820px 460px at 48% 98%, rgba(34, 201, 147, calc(var(--g-glow-a) * 0.7)), transparent 68%), + linear-gradient(155deg, #070b14 0%, #0a1020 52%, #070c17 100%); +} +body.theme-glass .app { + padding: 8px; + gap: 8px; +} +body.tape-only.theme-glass .app { + padding: 8px; + gap: 0; +} +body.tape-only.theme-glass #tape-host { + height: calc(100vh - 16px); +} +body.tape-only.theme-glass .tape-pane { + height: 100%; +} + +/* Frosted Topbar & Filterbar */ +body.theme-glass .topbar { + border-radius: 18px; + overflow: hidden; + background: rgba(16, 22, 36, var(--g-head-a)); + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + border: 1px solid rgba(255, 255, 255, var(--g-border-a)); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)), + 0 10px 28px rgba(0, 0, 0, 0.36); +} +body.theme-glass .topbar-scroll-btn { + background: rgba(16, 22, 36, 0.92); +} +body.theme-glass .topbar-scroll-btn.left { + border-right-color: rgba(255, 255, 255, var(--g-border-a)); +} +body.theme-glass .topbar-scroll-btn.right { + border-left-color: rgba(255, 255, 255, var(--g-border-a)); +} +body.theme-glass .filterbar { + border-radius: 15px; + background: rgba(16, 22, 36, calc(var(--g-surface-a) * 0.95)); + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + border: 1px solid rgba(255, 255, 255, var(--g-border-a)); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.8)), + 0 6px 20px rgba(0, 0, 0, 0.25); +} + +/* Frosted Rounded Panes & Splitters */ +body.theme-glass .pane { + border-radius: 16px; + overflow: hidden; + background: rgba(16, 22, 36, var(--g-surface-a)); + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + border: 1px solid rgba(255, 255, 255, var(--g-border-a)); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)), + 0 12px 32px rgba(0, 0, 0, 0.34); +} +body.theme-glass .pane-head, +body.theme-glass .watchlist-bar, +body.theme-glass .news-search-bar, +body.theme-glass .news-tools, +body.theme-glass .news-subtabs { + background: rgba(255, 255, 255, 0.032); + border-bottom-color: rgba(255, 255, 255, calc(var(--g-border-a) * 0.8)); +} +body.theme-glass .grid th { + background: rgba(14, 20, 33, 0.92); + border-bottom-color: rgba(255, 255, 255, var(--g-border-a)); +} +body.theme-glass .split-v::after, +body.theme-glass .split-h::after { + background: rgba(255, 255, 255, 0.08); + border-radius: 999px; +} +body.theme-glass .split-v::after { + top: 16px; + bottom: 16px; + width: 2px; + left: 2px; +} +body.theme-glass .split-h::after { + left: 16px; + right: 16px; + height: 2px; + top: 2px; +} + +/* Unified Rounded Geometry across Brand, Tabs, Pills, Controls & Icons */ +body.theme-glass .brand { border-radius: 13px; } +body.theme-glass .brand-logo { + border-radius: 10px; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(34, 201, 147, 0.22); +} +body.theme-glass .brand-ver { border-radius: 999px; } + +body.theme-glass .tab { + border-radius: 999px; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, calc(var(--g-border-a) * 0.9)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.7)); +} +body.theme-glass .tab:hover { + background: rgba(255, 255, 255, 0.10); + border-color: rgba(255, 255, 255, 0.22); +} +body.theme-glass .tab.active { + background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(139, 92, 246, 0.24)); + border-color: rgba(147, 197, 253, 0.50); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 4px 14px rgba(59, 130, 246, 0.20); +} +body.theme-glass .tab .tab-action { border-radius: 999px; } + +body.theme-glass .seg { + border-radius: 999px; + background: rgba(255, 255, 255, 0.055); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.65)); +} +body.theme-glass .seg button { border-radius: 999px; } + +body.theme-glass .pill, +body.theme-glass .vol-widget { + border-radius: 999px; + background: rgba(255, 255, 255, 0.06); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.75)); +} +body.theme-glass .icon-btn { + border-radius: 999px; + background: rgba(255, 255, 255, 0.065); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)); +} +body.theme-glass .icon-btn:hover { + background: rgba(255, 255, 255, 0.13); + border-color: rgba(255, 255, 255, 0.28); +} + +body.theme-glass .chip { + border-radius: 999px; + background: rgba(255, 255, 255, 0.065); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.6)); +} +body.theme-glass .chip.set { + background: linear-gradient(180deg, rgba(242, 246, 255, 0.94), rgba(218, 226, 242, 0.90)); + color: #0c1220; + border-color: rgba(255, 255, 255, 0.95); +} +body.theme-glass .chip .x { border-radius: 999px; } + +body.theme-glass .btn { + border-radius: 999px; + background: rgba(255, 255, 255, 0.075); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 0.75)); +} +body.theme-glass .btn.primary { + background: var(--grad); + border-color: transparent; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px rgba(99, 102, 241, 0.35); +} +body.theme-glass input[type=text], +body.theme-glass input[type=number], +body.theme-glass input[type=password], +body.theme-glass select, +body.theme-glass .news-sym-input, +body.theme-glass .watchlist-select { + border-radius: 12px; + background: rgba(11, 16, 28, 0.72); + border-color: rgba(255, 255, 255, var(--g-border-a)); +} +body.theme-glass .btn-wl-add, +body.theme-glass .btn-ban-sym, +body.theme-glass .btn-bamsec-link, +body.theme-glass .tag-borrow, +body.theme-glass .tag-bamsec-count, +body.theme-glass .watchlist-status-badge, +body.theme-glass .news-chip { + border-radius: 999px; +} + +/* Rounded News, BamSEC, Modals, Popovers, Drawers, Floating Pills & Corner Badge */ +body.theme-glass .story, +body.theme-glass .bamsec-drawer, +body.theme-glass .bamsec-item { + border-radius: 14px; + border-color: rgba(255, 255, 255, calc(var(--g-border-a) * 0.85)); +} +body.theme-glass .modal { + border-radius: 20px; + overflow: hidden; + background: rgba(16, 22, 36, calc(var(--g-head-a) + 0.10)); + backdrop-filter: blur(calc(var(--g-blur) + 4px)) saturate(175%); + -webkit-backdrop-filter: blur(calc(var(--g-blur) + 4px)) saturate(175%); + border: 1px solid rgba(255, 255, 255, calc(var(--g-border-a) * 1.3)); + box-shadow: + inset 0 1px 0 rgba(255, 255, 255, calc(var(--g-spec-a) * 1.3)), + 0 24px 64px rgba(0, 0, 0, 0.65); +} +body.theme-glass .pop { + border-radius: 16px; + background: rgba(16, 22, 36, calc(var(--g-head-a) + 0.10)); + backdrop-filter: blur(calc(var(--g-blur) + 4px)) saturate(175%); + -webkit-backdrop-filter: blur(calc(var(--g-blur) + 4px)) saturate(175%); + border-color: rgba(255, 255, 255, calc(var(--g-border-a) * 1.25)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)), var(--shadow); +} +body.theme-glass .drawer { + border-radius: 18px; + background: rgba(16, 22, 36, calc(var(--g-head-a) + 0.08)); + backdrop-filter: blur(calc(var(--g-blur) + 2px)) saturate(170%); + -webkit-backdrop-filter: blur(calc(var(--g-blur) + 2px)) saturate(170%); + border-color: rgba(255, 255, 255, calc(var(--g-border-a) * 1.25)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)), var(--shadow); +} +body.theme-glass .toast { + border-radius: 14px; + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); +} +body.theme-glass .tape-scroll-top { + background: rgba(20, 28, 46, var(--g-head-a)); + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + border-color: rgba(255, 255, 255, calc(var(--g-border-a) * 1.35)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)), var(--shadow); +} +body.theme-glass .version-corner { + bottom: 12px; + right: 16px; + border-radius: 999px; + background: rgba(16, 22, 36, var(--g-head-a)); + backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + -webkit-backdrop-filter: blur(var(--g-blur)) saturate(var(--g-sat)); + border-color: rgba(255, 255, 255, var(--g-border-a)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--g-spec-a)); +} +body.theme-glass ::-webkit-scrollbar-thumb { + border-radius: 999px; + background: rgba(148, 163, 184, 0.28); +} +body.theme-glass ::-webkit-scrollbar-thumb:hover { + background: rgba(148, 163, 184, 0.46); +} diff --git a/web/img/hero.jpg b/web/img/hero.jpg index 23592e9..376d5c5 100644 Binary files a/web/img/hero.jpg and b/web/img/hero.jpg differ diff --git a/web/index.html b/web/index.html index 34176d0..1d26b01 100644 --- a/web/index.html +++ b/web/index.html @@ -6,7 +6,7 @@ - +
@@ -83,6 +83,12 @@ 80%
+ + +