Phase 5-4. - The workspace button sits at the left end of the header. It shows the workspace name and opens the workspace list below it. - The left ribbon is always present: plugin views at the top, Help and Settings at the bottom. The left pane footer is gone. - Tabs keep 120 pixels and scroll. Fades show tabs out of view, and a list button names all tabs, with pinned and unsaved marks. The active tab now scrolls into view with its close button. - A drag area of 120 pixels follows the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels. - Caption buttons are square, 46 pixels wide, and full height. When the pointer rests on maximize, the new window_snap_layouts command opens Snap Layouts with Win+Z for the focused window. - macOS keeps its native traffic lights: tauri.macos.conf.json and the runtime window builders use an overlay title bar. Title bars leave --rs-titlebar-inset-start free for the traffic lights. - 3 new catalog rows and 1 removed row, in French, Japanese, and Simplified Chinese. - Docs: UI-050, the user guide, and ui-design.md. Tests: the new layout/titleBar. Tests that used the left pane footer, the rounded caption buttons, the 600-pixel theme editor pane, or a ribbon of no width now follow the new layout.
109 lines
4.3 KiB
CSS
109 lines
4.3 KiB
CSS
/* Defaults until ThemeSync applies the theme. src/lib/theme/roles.ts lists the color roles that each theme sets. */
|
|
:root {
|
|
--rs-selection-text: var(--rs-text);
|
|
--rs-tooltip-padding: 6px 10px;
|
|
--rs-tooltip-bg: var(--rs-bg-active);
|
|
--rs-tooltip-text: var(--rs-text-strong);
|
|
--rs-tooltip-shadow: 0 4px 16px #0005;
|
|
--rs-tooltip-font-size: 12px;
|
|
--rs-control-radius: 5px;
|
|
--rs-surface-opacity: 82%;
|
|
--rs-editor-surface-opacity: 90%;
|
|
--rs-hover-surface-opacity: 92%;
|
|
--rs-transparent-plugin-bg: transparent;
|
|
--rs-image-control-bg: color-mix(in srgb, var(--rs-bg) var(--rs-surface-opacity), transparent);
|
|
--rs-image-control-hover-bg: color-mix(in srgb, var(--rs-bg-active) var(--rs-hover-surface-opacity), transparent);
|
|
--rs-image-sidebar-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
|
--rs-image-editor-bg: color-mix(in srgb, var(--rs-bg) var(--rs-editor-surface-opacity), transparent);
|
|
--rs-code-block-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
|
--rs-workarea-sidebar-bg: var(--rs-bg-elevated);
|
|
--rs-workarea-editor-bg: var(--rs-bg);
|
|
--rs-workarea-surface-opacity: 100%;
|
|
--rs-workarea-plugin-bg: var(--rs-bg);
|
|
--rs-titlebar-height: 36px;
|
|
/* The space at the start of a title bar for the macOS traffic lights (src/routes/+layout.svelte). */
|
|
--rs-titlebar-inset-start: 0px;
|
|
--rs-settings-row-padding: 10px;
|
|
--rs-settings-control-height: 28px;
|
|
--rs-settings-heading-size: 18px;
|
|
--rs-settings-description-size: 12px;
|
|
--rs-settings-gap: 8px;
|
|
--rs-settings-section-gap: 16px;
|
|
--rs-menu-width: 248px;
|
|
--rs-menu-padding: 5px;
|
|
--rs-menu-row-height: 24px;
|
|
--rs-menu-row-padding: 2px 10px;
|
|
--rs-menu-icon-size: 14px;
|
|
--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). */
|
|
--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-backdrop: blur(18px) saturate(1.2);
|
|
--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);
|
|
--rs-item-selection-border: var(--rs-accent);
|
|
--rs-item-selection-width: 2px;
|
|
--rs-bg: #151617;
|
|
--rs-bg-elevated: #1b1c1d;
|
|
--rs-bg-active: #2b2d2e;
|
|
--rs-border: #343637;
|
|
--rs-text-dim: #ababab;
|
|
--rs-text: #e4e4e4;
|
|
--rs-text-strong: #f5f5f5;
|
|
--rs-accent-2: #92c1fd;
|
|
--rs-accent: #55dcf5;
|
|
--rs-accent-dim: #48b4c9;
|
|
--rs-accent-deep: #3b8d9c;
|
|
--rs-error: #ff525b;
|
|
--rs-warn-hot: #fe8c2c;
|
|
--rs-warn: #f6c919;
|
|
--rs-ok: #5cdc78;
|
|
--rs-special: #cb89fa;
|
|
--rs-link: var(--rs-accent);
|
|
--rs-focus: var(--rs-accent);
|
|
--rs-on-accent: #000000;
|
|
--rs-highlight: #edc65b;
|
|
--rs-scrim: #00000088;
|
|
|
|
--rs-font-ui: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
|
|
--rs-font-prose: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
|
|
--rs-font-heading: var(--rs-font-prose);
|
|
--rs-font-mono: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, ui-monospace, monospace;
|
|
--rs-code-font-weight: 300;
|
|
--rs-code-font-size: 13px;
|
|
--rs-code-line-height: 21px;
|
|
--rs-font-weight: 400;
|
|
--rs-heading-weight: 500;
|
|
--rs-table-cell-padding: 4px 10px;
|
|
--rs-table-line-height: 1.5;
|
|
--rs-prose-size: 15px;
|
|
--rs-prose-line: 1.6;
|
|
--rs-code-size: 13px;
|
|
--rs-h1-size: 1.6em;
|
|
--rs-h2-size: 1.4em;
|
|
--rs-h3-size: 1.25em;
|
|
--rs-h4-size: 1.15em;
|
|
--rs-h5-size: 1.08em;
|
|
--rs-h6-size: 1em;
|
|
--rs-selection: #01596d;
|
|
--rs-line-highlight: #ffffff0d;
|
|
--rs-h1: var(--rs-text-strong);
|
|
--rs-h2: var(--rs-text-strong);
|
|
--rs-h3: var(--rs-text);
|
|
--rs-h4: var(--rs-text);
|
|
--rs-h5: var(--rs-text-dim);
|
|
--rs-h6: var(--rs-text-dim);
|
|
/* Fixed colors that do not change with the theme. */
|
|
--rs-caption-close-bg: #c42b1c;
|
|
--rs-image-viewer-bg: #090a0de8;
|
|
}
|
|
|
|
/* macOS draws its traffic lights over the start of each title bar. */
|
|
:root[data-title-bar="mac"] { --rs-titlebar-inset-start: 78px; }
|