Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix: model picker light-mode — opaque bg, stronger shadow, no blur

vastsa37a0563f7f8f
diff --git a/apps/desktop/src/styles/composer-menus.css b/apps/desktop/src/styles/composer-menus.css
index 27f5e5269..0d3045666 100644
--- a/apps/desktop/src/styles/composer-menus.css
+++ b/apps/desktop/src/styles/composer-menus.css
@@ -486,6 +486,25 @@
}
}
+/* Light mode: the glassmorphism layer needs an opaque white base because
+ 82% white-on-white is invisible. Use a solid background with a subtle
+ border and a stronger shadow instead of backdrop-filter translucency. */
+:root[data-theme="light"] .composer-model-menu {
+ background: var(--ds-bg-elevated-opaque);
+ backdrop-filter: none;
+ -webkit-backdrop-filter: none;
+ box-shadow:
+ 0 0 0 0.5px color-mix(in oklab, #1a1c1f 10%, transparent),
+ 0 8px 32px rgba(0, 0, 0, 0.1),
+ 0 2px 8px rgba(0, 0, 0, 0.06);
+}
+
+:root[data-theme="light"] .composer-model-group-label {
+ background: var(--ds-bg-elevated-opaque);
+ backdrop-filter: none;
+ -webkit-backdrop-filter: none;
+}
+
.composer-model-heading {
display: flex;
flex-direction: column;