Make menus and hover fills translucent over a background image
With a background image, menus use the surface transparency of Appearance (82% by default) instead of at least 92%, and they keep the blur. Hovered rows and controls in the work area, hovered menu rows, and the workspace button use the new --rs-hover-bg token. With an image, it is a 6% veil of the strong text color. The image stays visible, and the hover shows over light and dark image areas. Without an image, nothing changes. Silver Serpent dim text is now #c2c6cc. It keeps 4.5:1 contrast on a hovered row over a white image. UI-061 replaces the image rule of UI-043. Card 05b9bfa1.
This commit is contained in:
@@ -11,7 +11,7 @@ export const silverSerpent = {
|
||||
variants: {
|
||||
dark: {
|
||||
bg: '#141619', 'bg-elevated': '#1c1e21', 'bg-active': '#2b3034', border: '#3b4046',
|
||||
text: '#e5e8ec', 'text-dim': '#b3b8be', 'text-strong': '#fcf9ea',
|
||||
text: '#e5e8ec', 'text-dim': '#c2c6cc', 'text-strong': '#fcf9ea',
|
||||
accent: '#bfd4e7', 'accent-2': '#31d78c', selection: '#0c6944', 'item-selection-bg': '#0c6944a6',
|
||||
error: '#ff645f', 'warn-hot': '#fd923e', warn: '#fec84b', ok: '#5cdc78', special: '#fb9989',
|
||||
'syntax-keyword': '#31d78c', 'syntax-string': '#f0de99', 'syntax-number': '#fda293', 'syntax-comment': '#b2b7bd',
|
||||
|
||||
@@ -37,13 +37,17 @@
|
||||
--rs-menu-icon-gap: 8px;
|
||||
--rs-menu-font-size: 13px;
|
||||
--rs-menu-border: transparent;
|
||||
/* Menus are opaque. With a background image, they stay at least 92% opaque and blur the image (UI-043). */
|
||||
/* Menus are opaque (UI-043). With a background image, they use the surface transparency and blur the image (UI-061). */
|
||||
--rs-menu-bg: var(--rs-bg-elevated);
|
||||
--rs-menu-active-bg: var(--rs-bg-active);
|
||||
--rs-menu-backdrop: none;
|
||||
--rs-image-menu-bg: color-mix(in srgb, var(--rs-bg-elevated) max(92%, var(--rs-surface-opacity)), transparent);
|
||||
--rs-image-menu-active-bg: color-mix(in srgb, var(--rs-bg-active) max(92%, var(--rs-surface-opacity)), transparent);
|
||||
--rs-image-menu-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
||||
--rs-image-menu-active-bg: var(--rs-image-hover-bg);
|
||||
--rs-image-menu-backdrop: blur(18px) saturate(1.2);
|
||||
/* The fill of hovered rows and filled controls in the work area. With a background image, a thin veil of the text color
|
||||
keeps the image visible and the hover visible over light and dark image areas (UI-061). */
|
||||
--rs-hover-bg: var(--rs-bg-active);
|
||||
--rs-image-hover-bg: color-mix(in srgb, var(--rs-text-strong) 6%, transparent);
|
||||
--rs-menu-shadow: 0 8px 30px #0006;
|
||||
--rs-item-selection-radius: var(--rs-control-radius);
|
||||
--rs-item-selection-bg: color-mix(in srgb, var(--rs-accent) 12%, transparent);
|
||||
|
||||
Reference in New Issue
Block a user