shell: a pane's edges follow its own theme
themeStore marks every dock group whose theme (the pane's own, else the global one) is bevelled with .wb-bevel; edges.css draws tabs, toolbar, address field, wB button and the settings panel per group. The window-level parts (title bar, caption buttons, menus, palette, scrollbars) keep following the global theme. A Windows 98 pane is bevelled inside a flat window, and a flat pane stays flat inside a Windows 98 window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1edc6440ef
commit
ec548a53d4
2 changed files with 70 additions and 60 deletions
|
|
@ -9,10 +9,14 @@
|
||||||
* own face color (--wb-c-face, --wb-c-bevel-*), so any palette can be bevelled.
|
* own face color (--wb-c-face, --wb-c-bevel-*), so any palette can be bevelled.
|
||||||
*
|
*
|
||||||
* Square corners come from the radius scale (the theme's radius 0 makes --bt-rs 0); this file only
|
* Square corners come from the radius scale (the theme's radius 0 makes --bt-rs 0); this file only
|
||||||
* draws faces, edges, the title bar and selection. Global only: a pane with another theme keeps its
|
* draws faces, edges, the title bar and selection. Two levels: the window (title bar, caption
|
||||||
* colors, fonts and radii under these edges.
|
* buttons, menus, palette, scrollbars) follows the global theme on `html[data-wb-edges]`; each pane
|
||||||
|
* (its tabs, toolbar, address field, settings panel) follows its own theme on `.dv-groupview.wb-bevel`,
|
||||||
|
* which themeStore sets on every dock group whose theme (the pane's own, else the global one) is
|
||||||
|
* bevelled. So a Windows 98 pane is bevelled inside a flat window, and a flat pane stays flat inside
|
||||||
|
* a Windows 98 window.
|
||||||
*/
|
*/
|
||||||
html[data-wb-edges=bevel] {
|
html[data-wb-edges=bevel], .dv-groupview.wb-bevel {
|
||||||
--bt-bv-face: var(--wb-c-face, #c0c0c0); --bt-bv-text: var(--wb-c-face-text, #000000);
|
--bt-bv-face: var(--wb-c-face, #c0c0c0); --bt-bv-text: var(--wb-c-face-text, #000000);
|
||||||
--bt-bv-hi: var(--wb-c-bevel-hi, #ffffff); --bt-bv-lt: var(--wb-c-bevel-lt, #dfdfdf); --bt-bv-sh: var(--wb-c-bevel-sh, #808080); --bt-bv-dk: var(--wb-c-bevel-dk, #0a0a0a);
|
--bt-bv-hi: var(--wb-c-bevel-hi, #ffffff); --bt-bv-lt: var(--wb-c-bevel-lt, #dfdfdf); --bt-bv-sh: var(--wb-c-bevel-sh, #808080); --bt-bv-dk: var(--wb-c-bevel-dk, #0a0a0a);
|
||||||
--bt-bv-out: inset -1px -1px var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px -2px var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
--bt-bv-out: inset -1px -1px var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px -2px var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
|
|
@ -35,27 +39,27 @@ html[data-wb-edges=bevel] :where(.bt-shell, .bt-menu, .bt-palette, .bt-media, .b
|
||||||
* Title bar: the active window's gradient across the tab row; tabs are a tab control on its floor. */
|
* Title bar: the active window's gradient across the tab row; tabs are a tab control on its floor. */
|
||||||
html[data-wb-edges=bevel] .bt-shell { background: var(--bt-bv-title) top / 100% var(--bt-titlebar-h) no-repeat, var(--bt-bv-face); }
|
html[data-wb-edges=bevel] .bt-shell { background: var(--bt-bv-title) top / 100% var(--bt-titlebar-h) no-repeat, var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .bt-shell--empty .bt-titlebar { background: var(--bt-bv-title); }
|
html[data-wb-edges=bevel] .bt-shell--empty .bt-titlebar { background: var(--bt-bv-title); }
|
||||||
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar > .dv-tabs-and-actions-container { background: transparent; }
|
.bt-shell .dv-groupview.wb-bevel.bt-group--in-titlebar > .dv-tabs-and-actions-container { background: transparent; }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-and-actions-container { background: var(--bt-bv-face); }
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-and-actions-container { background: var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab {
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-container .dv-tab {
|
||||||
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text);
|
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text);
|
||||||
height: 28px; margin: 8px 2px 0 0; box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
height: 28px; margin: 8px 2px 0 0; box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
}
|
}
|
||||||
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-container .dv-tab { height: 30px; margin-top: 14px; }
|
.bt-shell .dv-groupview.wb-bevel.bt-group--in-titlebar .dv-tabs-container .dv-tab { height: 30px; margin-top: 14px; }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-inactive-tab:hover { --bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); }
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-container .dv-tab.dv-inactive-tab:hover { --bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); }
|
||||||
/* The selected tab stands 2px taller and runs into the toolbar under it, like a 98 tab control. */
|
/* The selected tab stands 2px taller and runs into the toolbar under it, like a 98 tab control. */
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-active-tab,
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-container .dv-tab.dv-active-tab,
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab {
|
.bt-shell .dv-groupview.wb-bevel.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab {
|
||||||
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); z-index: 1; font-weight: 700;
|
--bt-tab-bg: var(--bt-bv-face); --bt-tab-fg: var(--bt-bv-text); z-index: 1; font-weight: 700;
|
||||||
box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
box-shadow: inset -1px 0 var(--bt-bv-dk), inset 1px 1px var(--bt-bv-hi), inset -2px 0 var(--bt-bv-sh), inset 2px 2px var(--bt-bv-lt);
|
||||||
}
|
}
|
||||||
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-container .dv-tab.dv-active-tab { height: 32px; margin-top: 12px; }
|
.bt-shell .dv-groupview.wb-bevel.bt-group--in-titlebar .dv-tabs-container .dv-tab.dv-active-tab { height: 32px; margin-top: 12px; }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab.dv-active-tab::after { display: none; }
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-container .dv-tab.dv-active-tab::after { display: none; }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-groupview.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab { font-weight: 400; }
|
.bt-shell .dv-groupview.wb-bevel.dv-inactive-group .dv-tabs-container .dv-tab.dv-active-tab { font-weight: 400; }
|
||||||
html[data-wb-edges=bevel] .bt-shell .dv-tabs-container .dv-tab:has(.bt-tab--pinned) + .dv-tab:not(:has(.bt-tab--pinned))::before { background: var(--bt-bv-sh); }
|
.bt-shell .dv-groupview.wb-bevel .dv-tabs-container .dv-tab:has(.bt-tab--pinned) + .dv-tab:not(:has(.bt-tab--pinned))::before { background: var(--bt-bv-sh); }
|
||||||
html[data-wb-edges=bevel] .bt-tab-close { color: var(--bt-bv-text); }
|
.dv-groupview.wb-bevel .bt-tab-close { color: var(--bt-bv-text); }
|
||||||
html[data-wb-edges=bevel] .bt-tab-close:hover { background: transparent; box-shadow: var(--bt-bv-out); }
|
.dv-groupview.wb-bevel .bt-tab-close:hover { background: transparent; box-shadow: var(--bt-bv-out); }
|
||||||
html[data-wb-edges=bevel] .bt-tab-close:active { box-shadow: var(--bt-bv-pressed); }
|
.dv-groupview.wb-bevel .bt-tab-close:active { box-shadow: var(--bt-bv-pressed); }
|
||||||
/* Things drawn straight on the title bar take its label color. */
|
/* Things drawn straight on the title bar take its label color. */
|
||||||
html[data-wb-edges=bevel] .bt-group--in-titlebar .bt-group-actions .bt-icon,
|
html[data-wb-edges=bevel] .bt-group--in-titlebar .bt-group-actions .bt-icon,
|
||||||
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-overflow-dropdown-default { color: var(--bt-bv-title-text); }
|
html[data-wb-edges=bevel] .bt-shell .bt-group--in-titlebar .dv-tabs-overflow-dropdown-default { color: var(--bt-bv-title-text); }
|
||||||
|
|
@ -75,19 +79,19 @@ html[data-wb-edges=bevel] :is(.bt-profile-switcher[aria-expanded=true], .bt-upda
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Toolbar: flat buttons that rise under the pointer, a sunken address field, the wB button raised. */
|
* Toolbar: flat buttons that rise under the pointer, a sunken address field, the wB button raised. */
|
||||||
html[data-wb-edges=bevel] .bt-addressbar { background: var(--bt-bv-face); border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .bt-addressbar { background: var(--bt-bv-face); border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .bt-icon { color: var(--bt-bv-text); }
|
.dv-groupview.wb-bevel .bt-icon { color: var(--bt-bv-text); }
|
||||||
html[data-wb-edges=bevel] .bt-icon:hover:not(:disabled) { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .bt-icon:hover:not(:disabled) { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .bt-icon:active:not(:disabled) { box-shadow: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-sh); }
|
.dv-groupview.wb-bevel .bt-icon:active:not(:disabled) { box-shadow: inset -1px -1px var(--bt-bv-hi), inset 1px 1px var(--bt-bv-sh); }
|
||||||
html[data-wb-edges=bevel] .bt-icon:disabled { color: var(--bt-bv-sh); }
|
.dv-groupview.wb-bevel .bt-icon:disabled { color: var(--bt-bv-sh); }
|
||||||
html[data-wb-edges=bevel] .bt-omni { border: 0; background: var(--bt-field); box-shadow: var(--bt-bv-in); padding-inline: 6px; }
|
.dv-groupview.wb-bevel .bt-omni { border: 0; background: var(--bt-field); box-shadow: var(--bt-bv-in); padding-inline: 6px; }
|
||||||
html[data-wb-edges=bevel] .bt-omni:hover { box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .bt-omni:hover { box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .bt-omni:focus-within, html[data-wb-edges=bevel] .bt-omni:focus-visible { box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .bt-omni:focus-within, .dv-groupview.wb-bevel .bt-omni:focus-visible { box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .bt-omni-progress { background: var(--bt-bv-select); }
|
.dv-groupview.wb-bevel .bt-omni-progress { background: var(--bt-bv-select); }
|
||||||
html[data-wb-edges=bevel] .bt-brand-button { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
.dv-groupview.wb-bevel .bt-brand-button { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
html[data-wb-edges=bevel] .bt-brand-button:hover { border: 0; background: var(--bt-bv-face); }
|
.dv-groupview.wb-bevel .bt-brand-button:hover { border: 0; background: var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .bt-brand-button:active, html[data-wb-edges=bevel] .bt-pane-menu[aria-expanded=true] { background: var(--bt-bv-face); box-shadow: var(--bt-bv-pressed); }
|
.dv-groupview.wb-bevel .bt-brand-button:active, .dv-groupview.wb-bevel .bt-pane-menu[aria-expanded=true] { background: var(--bt-bv-face); box-shadow: var(--bt-bv-pressed); }
|
||||||
html[data-wb-edges=bevel] .bt-brand-button:hover .bt-wb { transform: none; }
|
.dv-groupview.wb-bevel .bt-brand-button:hover .bt-wb { transform: none; }
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Menus, the palette, popovers: a window edge on the face; the row under the pointer is selected. */
|
* Menus, the palette, popovers: a window edge on the face; the row under the pointer is selected. */
|
||||||
|
|
@ -113,37 +117,37 @@ html[data-wb-edges=bevel] .bt-menu :is(input[type=text], input:not([type]), .bt-
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* The settings panel: a dialog face, etched group boxes, raised buttons, sunken fields, a selected
|
* The settings panel: a dialog face, etched group boxes, raised buttons, sunken fields, a selected
|
||||||
* section in the title bar's color. */
|
* section in the title bar's color. */
|
||||||
html[data-wb-edges=bevel] .btp {
|
.dv-groupview.wb-bevel .btp {
|
||||||
--c-ground: var(--bt-bv-face); --c-chrome: var(--bt-bv-face); --c-card: var(--bt-bv-face); --c-raise: var(--bt-bv-face); --c-popover: var(--bt-bv-face);
|
--c-ground: var(--bt-bv-face); --c-chrome: var(--bt-bv-face); --c-card: var(--bt-bv-face); --c-raise: var(--bt-bv-face); --c-popover: var(--bt-bv-face);
|
||||||
--c-text: var(--bt-bv-text); --c-line: var(--bt-bv-sh); --c-line-soft: var(--bt-bv-sh); --c-line-strong: var(--bt-bv-dk);
|
--c-text: var(--bt-bv-text); --c-line: var(--bt-bv-sh); --c-line-soft: var(--bt-bv-sh); --c-line-strong: var(--bt-bv-dk);
|
||||||
--c-accent: var(--bt-bv-select); --c-accent-ink: var(--bt-bv-select-text); --c-brush: var(--bt-bv-title);
|
--c-accent: var(--bt-bv-select); --c-accent-ink: var(--bt-bv-select-text); --c-brush: var(--bt-bv-title);
|
||||||
letter-spacing: 0; -webkit-font-smoothing: auto;
|
letter-spacing: 0; -webkit-font-smoothing: auto;
|
||||||
}
|
}
|
||||||
html[data-wb-edges=bevel] .btp-head { background: var(--bt-bv-face); }
|
.dv-groupview.wb-bevel .btp-head { background: var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .btp-head::after { opacity: 1; height: 2px; background: none; box-shadow: inset 0 1px var(--bt-bv-sh), inset 0 -1px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .btp-head::after { opacity: 1; height: 2px; background: none; box-shadow: inset 0 1px var(--bt-bv-sh), inset 0 -1px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .btp-nav { border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .btp-nav { border-bottom: 0; box-shadow: inset 0 -1px var(--bt-bv-sh), inset 0 -2px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .btp-nav button { color: var(--bt-bv-text); }
|
.dv-groupview.wb-bevel .btp-nav button { color: var(--bt-bv-text); }
|
||||||
html[data-wb-edges=bevel] .btp-nav button:hover { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .btp-nav button:hover { background: transparent; box-shadow: inset -1px -1px var(--bt-bv-sh), inset 1px 1px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .btp-nav button.is-on { background: var(--bt-bv-select); color: var(--bt-bv-select-text); box-shadow: none; }
|
.dv-groupview.wb-bevel .btp-nav button.is-on { background: var(--bt-bv-select); color: var(--bt-bv-select-text); box-shadow: none; }
|
||||||
html[data-wb-edges=bevel] .btp-nav button.is-on svg { color: var(--bt-bv-select-text); }
|
.dv-groupview.wb-bevel .btp-nav button.is-on svg { color: var(--bt-bv-select-text); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-card { border: 0; box-shadow: var(--bt-bv-etched); padding: 2px; }
|
.dv-groupview.wb-bevel .btp .bt-card { border: 0; box-shadow: var(--bt-bv-etched); padding: 2px; }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button) { border: 0; background: var(--bt-bv-face); color: var(--bt-bv-text); box-shadow: var(--bt-bv-out); }
|
.dv-groupview.wb-bevel .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button) { border: 0; background: var(--bt-bv-face); color: var(--bt-bv-text); box-shadow: var(--bt-bv-out); }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button):hover:not(:disabled) { border: 0; background: var(--bt-bv-face); }
|
.dv-groupview.wb-bevel .btp :is(.bt-btn, .bt-select-button, .bt-stepper button, .bt-inputrow button):hover:not(:disabled) { border: 0; background: var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-btn, .bt-stepper button, .bt-inputrow button):active:not(:disabled) { transform: none; box-shadow: var(--bt-bv-pressed); }
|
.dv-groupview.wb-bevel .btp :is(.bt-btn, .bt-stepper button, .bt-inputrow button):active:not(:disabled) { transform: none; box-shadow: var(--bt-bv-pressed); }
|
||||||
/* The default button carries the extra dark frame of a 98 dialog's default button. */
|
/* The default button carries the extra dark frame of a 98 dialog's default button. */
|
||||||
html[data-wb-edges=bevel] .btp .bt-btn.is-primary { box-shadow: inset 0 0 0 1px var(--bt-bv-dk), inset -2px -2px var(--bt-bv-dk), inset 2px 2px var(--bt-bv-hi), inset -3px -3px var(--bt-bv-sh), inset 3px 3px var(--bt-bv-lt); }
|
.dv-groupview.wb-bevel .btp .bt-btn.is-primary { box-shadow: inset 0 0 0 1px var(--bt-bv-dk), inset -2px -2px var(--bt-bv-dk), inset 2px 2px var(--bt-bv-hi), inset -3px -3px var(--bt-bv-sh), inset 3px 3px var(--bt-bv-lt); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-btn.is-ghost { box-shadow: none; }
|
.dv-groupview.wb-bevel .btp .bt-btn.is-ghost { box-shadow: none; }
|
||||||
html[data-wb-edges=bevel] .btp .bt-btn.is-ghost:hover:not(:disabled) { box-shadow: var(--bt-bv-out); }
|
.dv-groupview.wb-bevel .btp .bt-btn.is-ghost:hover:not(:disabled) { box-shadow: var(--bt-bv-out); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-btn:disabled { opacity: 1; color: var(--bt-bv-sh); text-shadow: 1px 1px var(--bt-bv-hi); }
|
.dv-groupview.wb-bevel .btp .bt-btn:disabled { opacity: 1; color: var(--bt-bv-sh); text-shadow: 1px 1px var(--bt-bv-hi); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-btn.is-danger { background: var(--bt-bv-face); color: var(--c-danger); }
|
.dv-groupview.wb-bevel .btp .bt-btn.is-danger { background: var(--bt-bv-face); color: var(--c-danger); }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search, .bt-hex, .bt-code, .wb-builder-name) { border: 0; background: var(--wb-c-ground, #ffffff); box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search, .bt-hex, .bt-code, .wb-builder-name) { border: 0; background: var(--wb-c-ground, #ffffff); box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search):is(:focus, :focus-within) { box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .btp :is(.bt-input, .btp-input, .bt-inputrow, .bt-search):is(:focus, :focus-within) { box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-seg { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .btp .bt-seg { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-seg-thumb { background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
.dv-groupview.wb-bevel .btp .bt-seg-thumb { background: var(--bt-bv-face); box-shadow: var(--bt-bv-out); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-toggle { box-shadow: var(--bt-bv-in); }
|
.dv-groupview.wb-bevel .btp .bt-toggle { box-shadow: var(--bt-bv-in); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-toggle-knob { box-shadow: var(--bt-bv-out); background: var(--bt-bv-face); }
|
.dv-groupview.wb-bevel .btp .bt-toggle-knob { box-shadow: var(--bt-bv-out); background: var(--bt-bv-face); }
|
||||||
html[data-wb-edges=bevel] .btp :is(.bt-select-list, .bt-popover) { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-window); }
|
.dv-groupview.wb-bevel .btp :is(.bt-select-list, .bt-popover) { border: 0; background: var(--bt-bv-face); box-shadow: var(--bt-bv-window); }
|
||||||
html[data-wb-edges=bevel] .btp .bt-select-list li.is-active { background: var(--bt-bv-select); color: var(--bt-bv-select-text); }
|
.dv-groupview.wb-bevel .btp .bt-select-list li.is-active { background: var(--bt-bv-select); color: var(--bt-bv-select-text); }
|
||||||
|
|
||||||
/* Classic scrollbars: a dithered track, raised thumb and arrows. */
|
/* Classic scrollbars: a dithered track, raised thumb and arrows. */
|
||||||
html[data-wb-edges=bevel] :is(.bt-shell, .bt-menu, .bt-palette, .btp) * { scrollbar-width: auto; scrollbar-color: auto; }
|
html[data-wb-edges=bevel] :is(.bt-shell, .bt-menu, .bt-palette, .btp) * { scrollbar-width: auto; scrollbar-color: auto; }
|
||||||
|
|
|
||||||
|
|
@ -235,13 +235,19 @@ export function createThemeStore<Choice, Spec extends ThemeDoc>(adapter: ThemeAd
|
||||||
if (scoped && scoped.source !== 'global') {
|
if (scoped && scoped.source !== 'global') {
|
||||||
chromeFontsFor(scoped.theme);
|
chromeFontsFor(scoped.theme);
|
||||||
element.classList.add('wb-pane-theme');
|
element.classList.add('wb-pane-theme');
|
||||||
setVars(element, chromeVars(adapter.chrome(scoped.theme)));
|
const vars = chromeVars(adapter.chrome(scoped.theme));
|
||||||
|
setVars(element, vars);
|
||||||
element.dataset.wbTheme = scoped.id;
|
element.dataset.wbTheme = scoped.id;
|
||||||
} else if (element.classList.contains('wb-pane-theme')) {
|
// A pane's edges are its own theme's (edges.css: `.dv-groupview.wb-bevel`).
|
||||||
|
element.classList.toggle('wb-bevel', chromeEdges(vars) === 'bevel');
|
||||||
|
} else {
|
||||||
|
if (element.classList.contains('wb-pane-theme')) {
|
||||||
element.classList.remove('wb-pane-theme');
|
element.classList.remove('wb-pane-theme');
|
||||||
setVars(element, {});
|
setVars(element, {});
|
||||||
delete element.dataset.wbTheme;
|
delete element.dataset.wbTheme;
|
||||||
}
|
}
|
||||||
|
element.classList.toggle('wb-bevel', !own && !safe.active && document.documentElement.dataset.wbEdges === 'bevel');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue