mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user