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
- 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.
+ β¨ iOS Frosted Glass Theme & Hover Slider (v3.0)+Default frosted glass look with compact topbar hover control & classic Standard toggle +
|
+
+
+
+
+ + +
+
+ + 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
| |
+ β¨ iOS Frosted Glass Theme & Standard Mode Toggle (v3.0)+Default rounded frosted glass workspace with compact topbar hover intensity slider +
|
+
+
+
+
+ + +
+
+ |
+
β‘ 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
+
+
+ ` 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 ` |
+
+
+
+
- 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%
+
+
+
|