Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(media): make image lightbox readable in glass-style day themes

Adam Eivyd43a024ee95b
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 13119c18e7..2752c8b4d8 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -4,6 +4,10 @@
- **Dismissible AI Recommendations on the Learning tab.** Each recommendation in the Chief of Staff Learning Analytics panel now has an X to dismiss it. Dismissals persist to `data/cos/dismissed-recommendations.json` and are filtered out of future loads. For count-based alerts (e.g., "unknown errors occurred 74 times"), the dismissal records the count snapshot and only re-surfaces if the count grows materially worse (≥1.5× and at least +20). Rate-based recommendations stay dismissed until restored. A "Show dismissed" expander lets you restore individual entries or clear them all.
+## Fixed
+
+- **Image preview lightbox readable in glass-style day themes.** The MediaLightbox panel (used by Image Gen and Video Gen) inherited `--port-card-alpha: 0.6` from glass themes like Lumen Glass Day, rendering as muddy translucent grey over the modal's `bg-black/90` overlay. Combined with the existing tinted action buttons (`bg-port-accent/20 text-port-accent`), the Remix and Send to Video buttons became nearly invisible. The panel now pins `--port-card-alpha` and `--port-border-alpha` to 1 within the lightbox scope so it renders solid in any theme, and the action buttons switched from translucent-tint to solid-fill (`bg-port-accent text-white`, `bg-port-success text-white`) for high contrast across all day and night themes.
+
## Changed
- **Browser downloads default to `~/Downloads`.** The CDP browser previously sent downloads to `data/browser-downloads/` inside the project; it now writes to the OS-native user Downloads directory (`~/Downloads` on macOS/Linux, `C:\Users\<u>\Downloads` on Windows) via `os.homedir()`. Both the keep-alive `Browser.setDownloadBehavior` call in `browser/server.js` and `PATHS.browserDownloads` in `server/lib/fileUtils.js` were updated so the Browser page UI's listing/delete operations stay in sync with where Chrome actually writes. Existing installs without an explicit `downloadDir` in `data/browser-config.json` pick up the new location automatically; users who want the old behavior can pin it by setting `downloadDir` in that config file.
diff --git a/client/src/components/media/MediaLightbox.jsx b/client/src/components/media/MediaLightbox.jsx
index c466c9c51d..ac947aa7dd 100644
--- a/client/src/components/media/MediaLightbox.jsx
+++ b/client/src/components/media/MediaLightbox.jsx
@@ -52,6 +52,10 @@ export default function MediaLightbox({ item, onClose, onRemix, onSendToVideo, o
className="relative bg-port-card border border-port-border rounded-xl overflow-hidden max-w-6xl w-full max-h-[92vh] flex flex-col md:flex-row"
onClick={(e) => e.stopPropagation()}
role="presentation"
+ // Pin card/border alpha to 1 inside this focused modal so glass-style themes
+ // (Lumen Glass Day, Pastel Dawn, etc.) render an opaque panel against the
+ // bg-black/90 overlay — the translucent default makes button text illegible.
+ style={{ '--port-card-alpha': 1, '--port-border-alpha': 1 }}
>
<div className="flex-1 bg-black flex items-center justify-center min-h-0">
{isVideo ? (
@@ -126,7 +130,7 @@ export default function MediaLightbox({ item, onClose, onRemix, onSendToVideo, o
<button
type="button"
onClick={() => { onRemix(item); onClose(); }}
- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/20 hover:bg-port-accent/40 text-port-accent rounded"
+ className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"
>
<Sparkles className="w-3.5 h-3.5" /> Remix
</button>
@@ -135,7 +139,7 @@ export default function MediaLightbox({ item, onClose, onRemix, onSendToVideo, o
<button
type="button"
onClick={() => { onSendToVideo(item); onClose(); }}
- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-success/20 hover:bg-port-success/40 text-port-success rounded"
+ className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-success text-white hover:opacity-90 rounded"
>
<Film className="w-3.5 h-3.5" /> Send to Video
</button>
@@ -144,7 +148,7 @@ export default function MediaLightbox({ item, onClose, onRemix, onSendToVideo, o
<button
type="button"
onClick={() => { onContinue(item); onClose(); }}
- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/20 hover:bg-port-accent/40 text-port-accent rounded"
+ className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"
>
<ImageIcon className="w-3.5 h-3.5" /> Continue
</button>