fix(linux): make the frameless settings window edge readable

#595 follow-up: the 1px --border-window hairline is nearly invisible on
the dark theme (#40434a against a dark desktop), which fuqiuluo confirmed
on Fedora 44 GNOME Wayland after the first edge commit. Blend the
foreground tone into the ring so the boundary reads on every theme;
still CSS-only, since Wayland gives undecorated windows no compositor
shadow to paint outside the surface.
This commit is contained in:
arookieofc
2026-11-03 07:05:16 +08:00
parent 58ff3e93d0
commit bbb1be69a2
@@ -204,9 +204,10 @@
color: var(--fg);
}
/* Linux draws no shadow for a frameless window (Wayland/KDE give undecorated
windows no CSD), so mark its edge in CSS instead. */
windows no CSD), so mark its edge in CSS instead. --border-window alone is
near-invisible on the dark theme, so blend the foreground tone into it. */
.windowEdge {
box-shadow: inset 0 0 0 1px var(--border-window);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 32%, var(--border-window));
}
.windowBody {
flex: 1;