From 1024 points wide (SIDE_AT) the window lays its pages down the left as a Mac app's sidebar: Work (Agents, Sessions, Library), Models (Providers, Routing, Gateway), Insights (Usage), Extend (Plugins), with Settings and the gateway's address at the foot. The open page's own tabs (Usage, Library, Plugins, Settings) are listed under it, opening and folding on an iOS-like spring, and the page's strip is hidden. The header becomes a breadcrumb, and pages whose head held only tools have them in the title bar. Graphite: the open page is in the text's ink, not purple. A pressed row darkens and never shrinks. The selection under the tabs sets off as the row is pressed, on a 0.3s curve (it felt behind the finger), and is the list's only shape: a sub-row hovered or pressed has no ground of its own, which showed a block under the finger before the selection slid there. The page's tab is clicked at once, so what is typed next goes to it. The title bar's button (or ⌃⌘S, Ctrl+Shift+S), there at every width, picks the sidebar or the header's tabs. The choice is kept in localStorage magpie.navLayout (side or top) at every width, so it is laid out from the first frame; picked in a narrow window the sidebar is 184 points under 860. The two trade places in a view transition: the sidebar slides, each tab flies to its place, and the page slides as one. Without view transitions or under reduced motion, the change is at once. With nothing picked, narrower than 1024 the page beside a sidebar would be narrower than Usage's requests table needs, so the header's tabs come back. A resize drops what a click held (heldWidth). Usage's KPI strip goes two to a line by the room the page gives it (a container query), and Japanese counts wrap there. Tests whose window is 1024+ were updated for the sidebar, and docs/subsystems/gui-shell.md says how it works. Run: sidebar.test.cjs and side-toggle.test.cjs 16/16 in chromium and webkit, in en, zh, zh-TW, ja and de. Each was broken by hand (press shrink, address cut, press glide, sub-row ground, view transition, kept choice) and went red. Every page at 560 points with the sidebar picked, zh and de, both engines: nothing scrolls sideways. session-identity's ledger row sits under the footer beside the sidebar; WebKit's click doesn't scroll to it, so the test wheels it up first. Animation frames were checked from a recorded video. The 105 affected GUI files in both engines; their reds were rerun alone and fixed (filter-ime: the sub-row's click now at once; session-identity, above) or fail the same on main (tray-logos). The full GUI suite in chromium, on the rebase ontod5cae267a, was cut short at 352 tests on the owner's "ship": 6 reds (account-alias, account-models, codex-auto-review, codex-credits, context-text) each pass alone, here and on maind5cae267a, so they are timing under the full run's load and are to be filed. After rebasing ontoe4e22b23e: sidebar, side-toggle, session-identity, filter-ime, library-instr-busy, usage-speed-count and view-scrollbar, 50/50 in chromium and webkit. go build ./... passes.
71 lines
4.9 KiB
CSS
71 lines
4.9 KiB
CSS
/* Omarchy: magpie drawn in Omarchy's own design language, only on Omarchy.
|
|
omarchy.js puts the class on <html> and the theme's colours, font, border
|
|
and rounding (from ~/.local/state/omarchy/current/theme and Hyprland) in
|
|
the variables; everything here is scoped under html.omarchy, so no other
|
|
system sees any of it. Omarchy's shell draws flat: no shadows, no blur, no
|
|
rounding (Hyprland's decoration:rounding, 0 by default), popups framed by
|
|
the window border's colour, uppercase letter-spaced labels, and a row
|
|
picked out by a faint fill with its text in the accent. */
|
|
|
|
/* what only Omarchy shows, and what it hides: the Appearance setting follows
|
|
Omarchy's theme instead of offering light and dark */
|
|
.om-only { display: none !important; }
|
|
html.omarchy .om-hide { display: none !important; }
|
|
html.omarchy .om-only { display: revert !important; }
|
|
html.omarchy .om-theme-name { color: var(--accent); font-size: 12px; white-space: nowrap; }
|
|
|
|
html.omarchy, html.omarchy body { font-family: var(--ui-font, var(--font)); font-size: var(--om-size); }
|
|
html:where([data-fonts]).omarchy, html:where([data-fonts]).omarchy body { font-style: var(--ui-style, inherit); font-weight: var(--ui-weight, inherit); font-stretch: var(--ui-stretch, 100%); }
|
|
html.omarchy body { -webkit-font-smoothing: antialiased; }
|
|
|
|
/* square, or rounded as far as Hyprland rounds its windows; what spins or
|
|
draws a dial stays round, as does a slider.s knob; a status dot goes square, like Omarchy.s workspace marks */
|
|
html.omarchy *, html.omarchy *::before, html.omarchy *::after { border-radius: var(--om-radius) !important; }
|
|
html.omarchy :is(.pq-dial, .pq-dial b, .sk-ring, .si-spin, .mk-spin, .signing .spinner, .eslide .knob, .effort-ticks i),
|
|
html.omarchy input[type="range"]::-webkit-slider-thumb { border-radius: 50% !important; }
|
|
|
|
/* no shadows or frosted glass: surfaces are the theme's background */
|
|
html.omarchy * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
|
|
html.omarchy :is(.pop, .modal .dialog, .status.lift, body.panel .profiles.open, .list, body.panel .list, .seg > .thumb) { box-shadow: none; }
|
|
html.omarchy body.panel { background: var(--bg); border: var(--om-border) solid var(--om-edge); }
|
|
|
|
/* popups, menus and dialogs: framed by the window border's colour */
|
|
html.omarchy :is(.pop, body.panel .profiles.open, .status.lift) { background: var(--pop-bg); border: var(--om-border) solid var(--om-edge) !important; }
|
|
html.omarchy .modal { background: color-mix(in srgb, var(--bg) 55%, transparent); }
|
|
html.omarchy .modal .dialog { background: var(--bg); border: var(--om-border) solid var(--om-edge); }
|
|
|
|
/* labels as Omarchy's shell sets its headings: uppercase, spaced out */
|
|
html.omarchy :is(.label, .pop li.group, .kpi span, .editor .ehead + * .k) { letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
|
|
html.omarchy .brand { letter-spacing: 0; font-weight: 700; }
|
|
|
|
/* the tabs: no track, the chosen one a faint square with its text in the accent */
|
|
html.omarchy .seg { background: transparent; }
|
|
html.omarchy .seg > .thumb { background: var(--om-sel); }
|
|
html.omarchy :is(.seg button.on, .ptabs button.on, .opt.on) { color: var(--accent); }
|
|
html.omarchy :is(.segs, .ptabs) { background: transparent; }
|
|
html.omarchy :is(.segs, .ptabs) > .thumb { background: var(--om-sel); box-shadow: inset 0 0 0 1px var(--om-sel-line); }
|
|
|
|
/* lists: a hairline frame, rows picked out by a faint fill */
|
|
html.omarchy .list { border: 1px solid var(--line); background: transparent; }
|
|
html.omarchy .row:hover { background: var(--om-hover); }
|
|
|
|
/* controls: Omarchy's buttons are a faint fill under a thin edge */
|
|
html.omarchy .field, html.omarchy body.panel .field, html.omarchy body.panel .field:hover { background: var(--om-hover); box-shadow: inset 0 0 0 1px var(--om-hover-line); }
|
|
html.omarchy .field:hover { background: var(--om-sel); }
|
|
html.omarchy .field.open, html.omarchy body.panel .field.open { box-shadow: inset 0 0 0 1px var(--accent); }
|
|
html.omarchy .icon:hover { background: var(--om-sel); color: var(--accent); }
|
|
html.omarchy .text.primary { background: var(--accent); color: var(--accent-fg); }
|
|
|
|
/* a menu's row under the cursor or keys: the fill and the accent, like Walker's */
|
|
html.omarchy :is(.pop li.sel, .pop li:hover:not(.group), .row-menu .rm-item:not(:disabled):is(:hover, :focus)) { background: var(--om-sel); color: var(--accent); }
|
|
html.omarchy :is(.pop li.sel, .pop li:hover) :is(.v, .n) { color: inherit; }
|
|
|
|
/* Linux's close button: square like the rest */
|
|
html.omarchy .icon.winclose { background: transparent; }
|
|
html.omarchy .icon.winclose:hover { background: var(--red-soft); color: var(--red); }
|
|
|
|
html.omarchy ::selection { background: var(--om-sel); color: var(--accent); }
|
|
html.omarchy body.side-nav :is(#nav button[data-view], #prefs).on { background: var(--om-sel); box-shadow: inset 0 0 0 1px var(--om-sel-line); color: var(--accent); }
|
|
html.omarchy .nav-hl { background: var(--om-sel); }
|
|
html.omarchy .nav-s.cur { color: var(--accent); }
|