mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
style(folder-browser): auto-contrast text on selected row
Replace hardcoded #fff on `.folder-col-row.selected` with a relative OKLCH expression that picks black or white based on the accent's lightness. Keeps rows readable on bright-accent themes (Muma, pastel sets) without per-theme overrides. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7814,11 +7814,11 @@ html.no-compositing .fsr-lyric-line.fsrl-active .fsr-lyric-word.active {
|
|||||||
|
|
||||||
.folder-col-row.selected {
|
.folder-col-row.selected {
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: #fff;
|
color: oklch(from var(--accent) clamp(0, (0.58 - l) * 100, 1) 0 h);
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-col-row.selected .folder-col-chevron {
|
.folder-col-row.selected .folder-col-chevron {
|
||||||
color: rgba(255, 255, 255, 0.7);
|
color: oklch(from var(--accent) clamp(0, (0.58 - l) * 100, 1) 0 h / 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-col-icon {
|
.folder-col-icon {
|
||||||
|
|||||||
Reference in New Issue
Block a user