@burdenoff/fe-libs 2026.1119.4 → 2026.1119.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chrome/HeaderThemeSwitcher.js +1 -1
- package/dist/chrome/ThemePreferences.js +16 -16
- package/dist/chrome/appearance/AppearanceColourSection.d.ts +17 -0
- package/dist/chrome/appearance/AppearanceColourSection.js +337 -0
- package/dist/chrome/appearance/AppearanceDisplaySection.d.ts +7 -0
- package/dist/chrome/appearance/AppearanceDisplaySection.js +137 -0
- package/dist/chrome/appearance/AppearanceModeDepth.d.ts +11 -0
- package/dist/chrome/appearance/AppearanceModeDepth.js +158 -0
- package/dist/chrome/appearance/AppearancePreferences.d.ts +13 -0
- package/dist/chrome/appearance/AppearancePreferences.js +308 -0
- package/dist/chrome/appearance/AppearancePreview.d.ts +23 -0
- package/dist/chrome/appearance/AppearancePreview.js +218 -0
- package/dist/chrome/appearance/AppearanceThemeSection.d.ts +14 -0
- package/dist/chrome/appearance/AppearanceThemeSection.js +162 -0
- package/dist/chrome/appearance/ColourPanel.d.ts +37 -0
- package/dist/chrome/appearance/ColourPanel.js +264 -0
- package/dist/chrome/appearance/ThemeDialog.d.ts +21 -0
- package/dist/chrome/appearance/ThemeDialog.js +378 -0
- package/dist/chrome/appearance/appearanceShared.d.ts +24 -0
- package/dist/chrome/appearance/appearanceShared.js +46 -0
- package/dist/chrome/appearance/appearanceUi.d.ts +49 -0
- package/dist/chrome/appearance/appearanceUi.js +98 -0
- package/dist/chrome/appearance/useAppearanceLabels.d.ts +181 -0
- package/dist/chrome/appearance/useAppearanceLabels.js +259 -0
- package/dist/chrome/index.d.ts +1 -0
- package/dist/chrome/shell/ShellSidebar.js +2 -0
- package/dist/chrome/shellLabelManifest.d.ts +6 -0
- package/dist/chrome.js +26 -25
- package/dist/platform-pages/AppearanceSettingsPage.d.ts +11 -1
- package/dist/platform-pages/AppearanceSettingsPage.js +15 -8
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +346 -345
- package/dist/shared/backgrounds/useBackgroundColors.js +3 -2
- package/dist/shared/providers/AppShellProvider.d.ts +20 -1
- package/dist/shared/providers/AppShellProvider.js +230 -222
- package/dist/shared/providers/shell/PaletteThemeProvider.d.ts +13 -0
- package/dist/shared/providers/shell/PaletteThemeProvider.js +366 -0
- package/dist/shared/providers/shell/ThemeProvider.d.ts +9 -76
- package/dist/shared/providers/shell/ThemeProvider.js +63 -55
- package/dist/shared/providers/shell/appearance/colour.d.ts +29 -0
- package/dist/shared/providers/shell/appearance/colour.js +79 -0
- package/dist/shared/providers/shell/appearance/contrastFix.d.ts +70 -0
- package/dist/shared/providers/shell/appearance/contrastFix.js +117 -0
- package/dist/shared/providers/shell/appearance/index.d.ts +9 -0
- package/dist/shared/providers/shell/appearance/model.d.ts +68 -0
- package/dist/shared/providers/shell/appearance/model.js +92 -0
- package/dist/shared/providers/shell/appearance/operations.d.ts +70 -0
- package/dist/shared/providers/shell/appearance/operations.js +160 -0
- package/dist/shared/providers/shell/appearance/palettes.d.ts +111 -0
- package/dist/shared/providers/shell/appearance/palettes.js +460 -0
- package/dist/shared/providers/shell/appearance/storage.d.ts +39 -0
- package/dist/shared/providers/shell/appearance/storage.js +186 -0
- package/dist/shared/providers/shell/appearance/tokens.d.ts +5 -0
- package/dist/shared/providers/shell/appearance/tokens.js +43 -0
- package/dist/shared/providers/shell/appearance/types.d.ts +80 -0
- package/dist/shared/providers/shell/appearance/types.js +28 -0
- package/dist/shared/providers/shell/index.d.ts +1 -1
- package/dist/shared/providers/shell/responsiveDisplaySettings.d.ts +27 -0
- package/dist/shared/providers/shell/responsiveDisplaySettings.js +6 -0
- package/dist/shared/providers/shell/themeContext.d.ts +162 -0
- package/dist/shared/providers/shell/themeContext.js +4 -0
- package/dist/shell-native/system-bars.d.ts +5 -1
- package/dist/shell-native/system-bars.js +1 -1
- package/dist/ui/dropdown-menu.js +2 -0
- package/dist/ui/popover.js +1 -0
- package/dist/ui/select.js +1 -0
- package/package.json +1 -1
- package/src/shared/tokens/build/themes.css +266 -0
- package/src/shared/tokens/display-settings.css +569 -0
- package/src/shared/tokens/tokens.css +4 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { normalizeHex as e } from "../../shared/providers/shell/appearance/colour.js";
|
|
2
|
+
import { accentHexOf as t } from "../../shared/providers/shell/appearance/model.js";
|
|
3
|
+
import { ACCENT_PRESETS as n } from "../../shared/providers/shell/appearance/palettes.js";
|
|
4
|
+
import { toast as r } from "sonner";
|
|
5
|
+
// src/chrome/appearance/appearanceShared.ts
|
|
6
|
+
function i(e, t, n) {
|
|
7
|
+
n ? r(t, {
|
|
8
|
+
duration: 6500,
|
|
9
|
+
action: {
|
|
10
|
+
label: e.undo,
|
|
11
|
+
onClick: () => {
|
|
12
|
+
n(), r(e.undone);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}) : r(t);
|
|
16
|
+
}
|
|
17
|
+
function a(e, r, i) {
|
|
18
|
+
if (e === "auto") return i.themeColour;
|
|
19
|
+
if (e.startsWith("preset:")) {
|
|
20
|
+
let t = e.slice(7), r = n.find((e) => e.id === t);
|
|
21
|
+
return r ? i.presets[r.id] : i.themeColour;
|
|
22
|
+
}
|
|
23
|
+
let a = t(e, r.settings.colours);
|
|
24
|
+
if (!a) return i.themeColour;
|
|
25
|
+
if (e.startsWith("colour:")) {
|
|
26
|
+
let t = e.slice(7), n = r.settings.colours.find((e) => e.id === t);
|
|
27
|
+
if (n) return n.name;
|
|
28
|
+
}
|
|
29
|
+
return r.settings.colours.find((e) => e.hex === a)?.name ?? a;
|
|
30
|
+
}
|
|
31
|
+
function o(t, n) {
|
|
32
|
+
return e(t) ? "colour" : t.trim() === "" && n ? "none" : "pending";
|
|
33
|
+
}
|
|
34
|
+
function s(t, n) {
|
|
35
|
+
let { accent: r, colours: i } = t;
|
|
36
|
+
if (n || r === "auto") return "auto";
|
|
37
|
+
if (r.startsWith("preset:")) return r;
|
|
38
|
+
if (r.startsWith("colour:")) {
|
|
39
|
+
let e = r.slice(7);
|
|
40
|
+
return i.some((t) => t.id === e) ? r : null;
|
|
41
|
+
}
|
|
42
|
+
let a = e(r), o = a ? i.find((e) => e.hex === a) : void 0;
|
|
43
|
+
return o ? `colour:${o.id}` : null;
|
|
44
|
+
}
|
|
45
|
+
var c = (e, t, n) => e === t || t === null && n ? 0 : -1;
|
|
46
|
+
export { a as accentNameOf, o as hexFieldState, i as notify, s as selectedSwatchOf, c as swatchTabIndex };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
/** Every option: a card-like button, focus ring in the accent. */
|
|
3
|
+
export declare const OPTION = "relative min-w-0 rounded-card border text-start text-text-primary transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50";
|
|
4
|
+
/** An option nobody chose. */
|
|
5
|
+
export declare const OPTION_IDLE = "border-border-default bg-bg-surface enabled:hover:border-border-strong enabled:hover:bg-bg-sunken";
|
|
6
|
+
/** The chosen option: tinted with the accent, ringed in it (and it shows a check). */
|
|
7
|
+
export declare const OPTION_ON = "border-action-primary-bg bg-[var(--color-accent-soft)] shadow-[inset_0_0_0_1px_var(--color-action-primary-bg)]";
|
|
8
|
+
export declare const optionClass: (selected: boolean, extra?: string) => string;
|
|
9
|
+
/** The check a chosen option shows, in the accent's ink. */
|
|
10
|
+
export declare function SelectedCheck({ selected, className }: {
|
|
11
|
+
selected: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import('react').JSX.Element | null;
|
|
14
|
+
/** A small label beside a name: Default, New, Dark only, Yours, Adjusted. */
|
|
15
|
+
export declare function Tag({ children, tone, }: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
tone?: 'neutral' | 'accent' | 'success' | 'warning';
|
|
18
|
+
}): import('react').JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Arrow keys, Home and End move through a radio group's enabled options and choose the one
|
|
21
|
+
* they land on, as a native radio group does (mirrored in a right-to-left page).
|
|
22
|
+
*/
|
|
23
|
+
export declare function useRadioGroupKeys(): (event: KeyboardEvent<HTMLElement>) => void;
|
|
24
|
+
/** The tab stop of a radio group: the chosen option, or the first when none is chosen. */
|
|
25
|
+
export declare const radioTabIndex: (selected: boolean, isFirst: boolean, anySelected: boolean) => 0 | -1;
|
|
26
|
+
/** One section of the page. */
|
|
27
|
+
export declare function AppearanceSection({ id, icon, title, description, aside, children, }: {
|
|
28
|
+
id: string;
|
|
29
|
+
icon: ReactNode;
|
|
30
|
+
title: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
aside?: ReactNode;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
}): import('react').JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* One colour to choose (a radio): a dot painted in the colour as it will be used, its name,
|
|
37
|
+
* and a line below (Default, the hex, Adjusted). The chosen one is tinted and its dot checked.
|
|
38
|
+
*/
|
|
39
|
+
export declare function Swatch({ selected, name, sub, fill, on, onSelect, tabIndex, title, testId, }: {
|
|
40
|
+
selected: boolean;
|
|
41
|
+
name: string;
|
|
42
|
+
sub?: string;
|
|
43
|
+
fill: string;
|
|
44
|
+
on: string;
|
|
45
|
+
onSelect: () => void;
|
|
46
|
+
tabIndex: number;
|
|
47
|
+
title?: string;
|
|
48
|
+
testId?: string;
|
|
49
|
+
}): import('react').JSX.Element;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Card as e, CardContent as t, CardDescription as n, CardHeader as r, CardTitle as i } from "../../ui/card.js";
|
|
2
|
+
import { cn as a } from "../../utils/cn.js";
|
|
3
|
+
import "../../utils/index.js";
|
|
4
|
+
import { useCallback as o } from "react";
|
|
5
|
+
import { Check as s } from "lucide-react";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
// src/chrome/appearance/appearanceUi.tsx
|
|
8
|
+
var u = "relative min-w-0 rounded-card border text-start text-text-primary transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50", d = "border-border-default bg-bg-surface enabled:hover:border-border-strong enabled:hover:bg-bg-sunken", f = "border-action-primary-bg bg-[var(--color-accent-soft)] shadow-[inset_0_0_0_1px_var(--color-action-primary-bg)]", p = (e, t) => a(u, e ? f : d, t);
|
|
9
|
+
function m({ selected: e, className: t }) {
|
|
10
|
+
return e ? /* @__PURE__ */ c(s, {
|
|
11
|
+
className: a("size-4 shrink-0 text-action-primary-bg", t),
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}) : null;
|
|
14
|
+
}
|
|
15
|
+
function h({ children: e, tone: t = "neutral" }) {
|
|
16
|
+
return /* @__PURE__ */ c("span", {
|
|
17
|
+
className: a("inline-flex items-center whitespace-nowrap rounded-full border px-1.5 text-[11px] font-semibold leading-4", t === "neutral" && "border-border-subtle bg-bg-sunken text-text-secondary", t === "accent" && "border-action-primary-bg/40 bg-[var(--color-accent-soft)] text-action-primary-bg", t === "success" && "border-[var(--color-status-success-border)] bg-[var(--color-status-success-bgSubtle)] text-[var(--color-status-success-text)]", t === "warning" && "border-[var(--color-status-warning-border)] bg-[var(--color-status-warning-bgSubtle)] text-[var(--color-status-warning-text)]"),
|
|
18
|
+
children: e
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function g() {
|
|
22
|
+
return o((e) => {
|
|
23
|
+
if (![
|
|
24
|
+
"ArrowRight",
|
|
25
|
+
"ArrowLeft",
|
|
26
|
+
"ArrowDown",
|
|
27
|
+
"ArrowUp",
|
|
28
|
+
"Home",
|
|
29
|
+
"End"
|
|
30
|
+
].includes(e.key)) return;
|
|
31
|
+
let t = e.target.closest("[role=\"radio\"]"), n = e.currentTarget;
|
|
32
|
+
if (!t || !n.contains(t)) return;
|
|
33
|
+
let r = Array.from(n.querySelectorAll("[role=\"radio\"]")).filter((e) => !e.disabled && e.getAttribute("aria-disabled") !== "true"), i = r.indexOf(t);
|
|
34
|
+
if (i < 0 || r.length === 0) return;
|
|
35
|
+
let a = getComputedStyle(n).direction === "rtl", o = e.key === "ArrowDown" || e.key === (a ? "ArrowLeft" : "ArrowRight"), s = e.key === "ArrowUp" || e.key === (a ? "ArrowRight" : "ArrowLeft"), c = i;
|
|
36
|
+
e.key === "Home" ? c = 0 : e.key === "End" ? c = r.length - 1 : o ? c = (i + 1) % r.length : s && (c = (i - 1 + r.length) % r.length), e.preventDefault();
|
|
37
|
+
let l = r[c];
|
|
38
|
+
l && (l.focus(), l.click());
|
|
39
|
+
}, []);
|
|
40
|
+
}
|
|
41
|
+
var _ = (e, t, n) => e || !n && t ? 0 : -1;
|
|
42
|
+
function v({ id: a, icon: o, title: s, description: u, aside: d, children: f }) {
|
|
43
|
+
return /* @__PURE__ */ l(e, {
|
|
44
|
+
"aria-labelledby": `${a}-title`,
|
|
45
|
+
role: "region",
|
|
46
|
+
"data-testid": a,
|
|
47
|
+
children: [/* @__PURE__ */ l(r, {
|
|
48
|
+
className: "gap-1",
|
|
49
|
+
children: [/* @__PURE__ */ l("div", {
|
|
50
|
+
className: "flex flex-wrap items-start justify-between gap-2",
|
|
51
|
+
children: [/* @__PURE__ */ l(i, {
|
|
52
|
+
id: `${a}-title`,
|
|
53
|
+
className: "flex items-center gap-2",
|
|
54
|
+
children: [/* @__PURE__ */ c("span", {
|
|
55
|
+
className: "text-text-secondary [&_svg]:size-4",
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
children: o
|
|
58
|
+
}), s]
|
|
59
|
+
}), d]
|
|
60
|
+
}), u && /* @__PURE__ */ c(n, { children: u })]
|
|
61
|
+
}), /* @__PURE__ */ c(t, {
|
|
62
|
+
className: "flex flex-col gap-4",
|
|
63
|
+
children: f
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function y({ selected: e, name: t, sub: n, fill: r, on: i, onSelect: o, tabIndex: d, title: p, testId: m }) {
|
|
68
|
+
return /* @__PURE__ */ l("button", {
|
|
69
|
+
type: "button",
|
|
70
|
+
role: "radio",
|
|
71
|
+
"aria-checked": e,
|
|
72
|
+
tabIndex: d,
|
|
73
|
+
onClick: o,
|
|
74
|
+
title: p,
|
|
75
|
+
"data-testid": m,
|
|
76
|
+
className: a(u, "flex w-[4.5rem] flex-col items-center gap-1 px-0.5 pt-1.5 pb-1 text-center text-xs", e ? f : "border-transparent text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ c("span", {
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: "flex size-8 items-center justify-center rounded-full bg-[var(--appearance-swatch)] text-[var(--appearance-swatch-on)] shadow-[inset_0_0_0_1px_color-mix(in_oklab,var(--color-text-primary)_25%,transparent)]",
|
|
81
|
+
style: {
|
|
82
|
+
"--appearance-swatch": r,
|
|
83
|
+
"--appearance-swatch-on": i
|
|
84
|
+
},
|
|
85
|
+
children: e && /* @__PURE__ */ c(s, { className: "size-4" })
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ c("span", {
|
|
88
|
+
className: a("max-w-full break-words leading-tight", e && "font-semibold"),
|
|
89
|
+
children: t
|
|
90
|
+
}),
|
|
91
|
+
n && /* @__PURE__ */ c("span", {
|
|
92
|
+
className: "text-[10px] leading-none text-text-muted",
|
|
93
|
+
children: n
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export { v as AppearanceSection, u as OPTION, d as OPTION_IDLE, f as OPTION_ON, m as SelectedCheck, y as Swatch, h as Tag, p as optionClass, _ as radioTabIndex, g as useRadioGroupKeys };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { ColorScheme } from '../../shared/providers/shell/appearance/types';
|
|
2
|
+
export declare function useAppearanceLabels(): {
|
|
3
|
+
product: string;
|
|
4
|
+
site: string;
|
|
5
|
+
palettes: Record<"fluidgrids" | "classic" | "forest" | "ocean" | "sunset" | "high-contrast", {
|
|
6
|
+
name: string;
|
|
7
|
+
hint: string;
|
|
8
|
+
}>;
|
|
9
|
+
presets: Record<"blue" | "cyan" | "fuchsia" | "green" | "indigo" | "purple" | "teal" | "amber" | "rose", string>;
|
|
10
|
+
schemes: Record<ColorScheme, string>;
|
|
11
|
+
depths: Record<"dark" | "black" | "darker", {
|
|
12
|
+
name: string;
|
|
13
|
+
hint: string;
|
|
14
|
+
}>;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
subtitlePlain: string;
|
|
18
|
+
reset: string;
|
|
19
|
+
resetAsk: string;
|
|
20
|
+
resetBody: string;
|
|
21
|
+
resetBodyPlain: string;
|
|
22
|
+
resetConfirm: string;
|
|
23
|
+
resetDone: string;
|
|
24
|
+
cancel: string;
|
|
25
|
+
undo: string;
|
|
26
|
+
undone: string;
|
|
27
|
+
keptOnDevice: string;
|
|
28
|
+
tagDefault: string;
|
|
29
|
+
tagNew: string;
|
|
30
|
+
tagDarkOnly: string;
|
|
31
|
+
tagYours: string;
|
|
32
|
+
themeTitle: string;
|
|
33
|
+
themeDescription: string;
|
|
34
|
+
createTheme: string;
|
|
35
|
+
createThemeHint: string;
|
|
36
|
+
themeNowDark: (theme: string) => string;
|
|
37
|
+
lookSummary: (theme: string, colour: string) => string;
|
|
38
|
+
lookSummaryMode: (theme: string, colour: string, mode: string) => string;
|
|
39
|
+
lookMore: (name: string) => string;
|
|
40
|
+
lookUse: string;
|
|
41
|
+
lookEdit: string;
|
|
42
|
+
lookDuplicate: string;
|
|
43
|
+
lookDelete: string;
|
|
44
|
+
lookDeleteAsk: (name: string) => string;
|
|
45
|
+
lookDeleteBody: string;
|
|
46
|
+
lookCreated: (name: string) => string;
|
|
47
|
+
lookSaved: (name: string) => string;
|
|
48
|
+
lookDuplicated: (name: string) => string;
|
|
49
|
+
lookCopyName: (name: string) => string;
|
|
50
|
+
lookDeleted: (name: string) => string;
|
|
51
|
+
lookDeletedActive: (name: string) => string;
|
|
52
|
+
modeTitle: string;
|
|
53
|
+
modeDescription: string;
|
|
54
|
+
system: string;
|
|
55
|
+
lightHint: string;
|
|
56
|
+
darkHint: string;
|
|
57
|
+
noLight: (theme: string) => string;
|
|
58
|
+
systemHint: (mode: string) => string;
|
|
59
|
+
staysDark: (theme: string) => string;
|
|
60
|
+
depthTitle: string;
|
|
61
|
+
depthDescription: string;
|
|
62
|
+
depthPage: string;
|
|
63
|
+
depthCard: string;
|
|
64
|
+
depthMenu: string;
|
|
65
|
+
depthNone: string;
|
|
66
|
+
depthLightNote: string;
|
|
67
|
+
colourTitle: string;
|
|
68
|
+
colourDescription: string;
|
|
69
|
+
colourFixed: string;
|
|
70
|
+
presetsTitle: string;
|
|
71
|
+
themeColour: string;
|
|
72
|
+
mine: string;
|
|
73
|
+
mineHint: string;
|
|
74
|
+
mineEmpty: string;
|
|
75
|
+
addColour: string;
|
|
76
|
+
manage: string;
|
|
77
|
+
done: string;
|
|
78
|
+
adjusted: string;
|
|
79
|
+
adjustedLine: (name: string, mode: string, fill: string, ratio: string, ink: string) => string;
|
|
80
|
+
addTitle: string;
|
|
81
|
+
editTitle: string;
|
|
82
|
+
panelHint: string;
|
|
83
|
+
pick: string;
|
|
84
|
+
hex: string;
|
|
85
|
+
name: string;
|
|
86
|
+
hexError: string;
|
|
87
|
+
fromSite: string;
|
|
88
|
+
saveColour: string;
|
|
89
|
+
saveChanges: string;
|
|
90
|
+
colourDefaultName: (count: number) => string;
|
|
91
|
+
colourSaved: (name: string) => string;
|
|
92
|
+
colourUpdated: (name: string) => string;
|
|
93
|
+
colourDeleted: (name: string) => string;
|
|
94
|
+
colourDeletedAccent: (name: string) => string;
|
|
95
|
+
colourFull: string;
|
|
96
|
+
colourRenamed: (name: string) => string;
|
|
97
|
+
colourMoved: (name: string) => string;
|
|
98
|
+
manageHint: string;
|
|
99
|
+
nameFor: (name: string) => string;
|
|
100
|
+
moveUp: (name: string) => string;
|
|
101
|
+
moveDown: (name: string) => string;
|
|
102
|
+
changeColour: (name: string) => string;
|
|
103
|
+
deleteColour: (name: string) => string;
|
|
104
|
+
dragHandle: string;
|
|
105
|
+
contrastLabel: string;
|
|
106
|
+
contrastWhere: string;
|
|
107
|
+
contrastIn: (mode: string) => string;
|
|
108
|
+
contrastButtons: string;
|
|
109
|
+
contrastButtonsRule: string;
|
|
110
|
+
contrastLinks: string;
|
|
111
|
+
contrastLinkSample: string;
|
|
112
|
+
contrastLinksRule: string;
|
|
113
|
+
contrastOutlines: string;
|
|
114
|
+
contrastOutlinesRule: string;
|
|
115
|
+
contrastOk: string;
|
|
116
|
+
contrastYours: (ratio: string) => string;
|
|
117
|
+
contrastReadable: string;
|
|
118
|
+
contrastTooLight: string;
|
|
119
|
+
contrastTooDark: string;
|
|
120
|
+
displayTitle: string;
|
|
121
|
+
displayDescription: string;
|
|
122
|
+
density: string;
|
|
123
|
+
densityHint: string;
|
|
124
|
+
textSize: string;
|
|
125
|
+
textSizeHint: string;
|
|
126
|
+
glass: string;
|
|
127
|
+
glassHint: string;
|
|
128
|
+
glassSolid: string;
|
|
129
|
+
reduceMotion: string;
|
|
130
|
+
reduceMotionHint: string;
|
|
131
|
+
densities: {
|
|
132
|
+
compact: string;
|
|
133
|
+
comfortable: string;
|
|
134
|
+
spacious: string;
|
|
135
|
+
};
|
|
136
|
+
textSizes: {
|
|
137
|
+
small: string;
|
|
138
|
+
default: string;
|
|
139
|
+
large: string;
|
|
140
|
+
};
|
|
141
|
+
glasses: {
|
|
142
|
+
off: string;
|
|
143
|
+
subtle: string;
|
|
144
|
+
full: string;
|
|
145
|
+
};
|
|
146
|
+
previewTitle: string;
|
|
147
|
+
previewHide: string;
|
|
148
|
+
previewShow: string;
|
|
149
|
+
previewUnsaved: string;
|
|
150
|
+
previewLabel: string;
|
|
151
|
+
previewAssistant: string;
|
|
152
|
+
previewWelcome: string;
|
|
153
|
+
previewWelcomeSub: string;
|
|
154
|
+
previewAsk: string;
|
|
155
|
+
previewSuggestion1: string;
|
|
156
|
+
previewSuggestion2: string;
|
|
157
|
+
dialogCreate: string;
|
|
158
|
+
dialogEdit: string;
|
|
159
|
+
dialogNameError: string;
|
|
160
|
+
dialogStartFrom: string;
|
|
161
|
+
dialogColour: string;
|
|
162
|
+
dialogAnyColour: string;
|
|
163
|
+
dialogPickAny: string;
|
|
164
|
+
dialogHex: string;
|
|
165
|
+
dialogMode: string;
|
|
166
|
+
dialogKeep: string;
|
|
167
|
+
dialogAlwaysLight: string;
|
|
168
|
+
dialogAlwaysDark: string;
|
|
169
|
+
dialogDarkOnly: (theme: string) => string;
|
|
170
|
+
dialogFixed: string;
|
|
171
|
+
dialogSave: string;
|
|
172
|
+
dialogSaveChanges: string;
|
|
173
|
+
dialogDelete: string;
|
|
174
|
+
dialogDeleteYes: string;
|
|
175
|
+
dialogKeepIt: string;
|
|
176
|
+
dialogClose: string;
|
|
177
|
+
dialogDefaultName: (count: number) => string;
|
|
178
|
+
dialogReadable: (ratio: string) => string;
|
|
179
|
+
dialogAdjusted: (fill: string, ratio: string) => string;
|
|
180
|
+
};
|
|
181
|
+
export type AppearanceLabels = ReturnType<typeof useAppearanceLabels>;
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { useAppShell as e } from "../../shared/providers/shell/AppShellContext.js";
|
|
2
|
+
import { PICKER_FALLBACK as t } from "../../shared/providers/shell/appearance/palettes.js";
|
|
3
|
+
import { useShellLabel as n } from "../../shared/providers/shell/useShellLabel.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
// src/chrome/appearance/useAppearanceLabels.ts
|
|
6
|
+
function i() {
|
|
7
|
+
let i = n(), { productName: a, domain: o } = e();
|
|
8
|
+
return r(() => {
|
|
9
|
+
let e = a, n = o || a;
|
|
10
|
+
return {
|
|
11
|
+
product: e,
|
|
12
|
+
site: n,
|
|
13
|
+
palettes: {
|
|
14
|
+
fluidgrids: {
|
|
15
|
+
name: i("appearance.palette.fluidgrids", "FluidGrids"),
|
|
16
|
+
hint: i("appearance.palette.fluidgridsHint", "The colours of fluidgrids.ai, in light and dark.")
|
|
17
|
+
},
|
|
18
|
+
classic: {
|
|
19
|
+
name: i("appearance.palette.classic", "Classic"),
|
|
20
|
+
hint: i("appearance.palette.classicHint", "The original Light and Dark.")
|
|
21
|
+
},
|
|
22
|
+
forest: {
|
|
23
|
+
name: i("themeSwitcher.forest", "Forest"),
|
|
24
|
+
hint: i("appearance.palette.forestHint", "Deep green surfaces, green accent.")
|
|
25
|
+
},
|
|
26
|
+
ocean: {
|
|
27
|
+
name: i("themeSwitcher.ocean", "Ocean"),
|
|
28
|
+
hint: i("appearance.palette.oceanHint", "Deep blue surfaces, blue accent.")
|
|
29
|
+
},
|
|
30
|
+
sunset: {
|
|
31
|
+
name: i("themeSwitcher.sunset", "Sunset"),
|
|
32
|
+
hint: i("appearance.palette.sunsetHint", "Warm plum surfaces, orange accent.")
|
|
33
|
+
},
|
|
34
|
+
"high-contrast": {
|
|
35
|
+
name: i("themeSwitcher.highContrastMenu", "High contrast"),
|
|
36
|
+
hint: i("appearance.palette.highContrastHint", "Pure black and white, solid surfaces, yellow focus.")
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
presets: {
|
|
40
|
+
purple: i("appearance.colour.purple", "Purple"),
|
|
41
|
+
indigo: i("appearance.colour.indigo", "Indigo"),
|
|
42
|
+
blue: i("appearance.colour.blue", "Blue"),
|
|
43
|
+
cyan: i("appearance.colour.cyan", "Cyan"),
|
|
44
|
+
teal: i("appearance.colour.teal", "Teal"),
|
|
45
|
+
green: i("appearance.colour.green", "Green"),
|
|
46
|
+
amber: i("appearance.colour.amber", "Amber"),
|
|
47
|
+
rose: i("appearance.colour.rose", "Rose"),
|
|
48
|
+
fuchsia: i("appearance.colour.fuchsia", "Fuchsia")
|
|
49
|
+
},
|
|
50
|
+
schemes: {
|
|
51
|
+
light: i("themeSwitcher.light", "Light"),
|
|
52
|
+
dark: i("themeSwitcher.dark", "Dark")
|
|
53
|
+
},
|
|
54
|
+
depths: {
|
|
55
|
+
dark: {
|
|
56
|
+
name: i("appearance.depth.dark", "Dark"),
|
|
57
|
+
hint: i("appearance.depth.darkHint", "The original level of dark.")
|
|
58
|
+
},
|
|
59
|
+
darker: {
|
|
60
|
+
name: i("appearance.depth.darker", "Darker"),
|
|
61
|
+
hint: i("appearance.depth.darkerHint", "As dark as {{site}}.", { site: n })
|
|
62
|
+
},
|
|
63
|
+
black: {
|
|
64
|
+
name: i("appearance.depth.black", "Black"),
|
|
65
|
+
hint: i("appearance.depth.blackHint", "Pure black. Best on OLED screens.")
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
title: i("appearance.title", "Appearance"),
|
|
69
|
+
subtitle: i("appearance.subtitle", "Theme, colour, display and background for {{product}} on this device.", { product: e }),
|
|
70
|
+
subtitlePlain: i("appearance.subtitlePlain", "Theme, colour and display for {{product}} on this device.", { product: e }),
|
|
71
|
+
reset: i("appearance.reset", "Reset to defaults"),
|
|
72
|
+
resetAsk: i("appearance.resetAsk", "Reset appearance?"),
|
|
73
|
+
resetBody: i("appearance.resetBody", "Theme, mode, depth, colour, display and background go back to the {{product}} defaults. Your saved colours and themes stay.", { product: e }),
|
|
74
|
+
resetBodyPlain: i("appearance.resetBodyPlain", "Theme, mode, depth, colour and display go back to the {{product}} defaults. Your saved colours and themes stay.", { product: e }),
|
|
75
|
+
resetConfirm: i("appearance.resetConfirm", "Reset"),
|
|
76
|
+
resetDone: i("appearance.resetDone", "Appearance is back to the {{product}} defaults.", { product: e }),
|
|
77
|
+
cancel: i("common.actions.cancel", "Cancel"),
|
|
78
|
+
undo: i("appearance.undo", "Undo"),
|
|
79
|
+
undone: i("appearance.undone", "Undone."),
|
|
80
|
+
keptOnDevice: i("appearance.keptOnDevice", "Appearance is kept on this device."),
|
|
81
|
+
tagDefault: i("appearance.tag.default", "Default"),
|
|
82
|
+
tagNew: i("appearance.tag.new", "New"),
|
|
83
|
+
tagDarkOnly: i("appearance.tag.darkOnly", "Dark only"),
|
|
84
|
+
tagYours: i("appearance.tag.yours", "Yours"),
|
|
85
|
+
themeTitle: i("appearance.theme.title", "Theme"),
|
|
86
|
+
themeDescription: i("appearance.theme.description", "The {{product}} theme is the default. Every theme from before stays.", { product: e }),
|
|
87
|
+
createTheme: i("appearance.theme.create", "Create a theme"),
|
|
88
|
+
createThemeHint: i("appearance.theme.createHint", "Start from any theme and add your colour. Your themes are kept on this device."),
|
|
89
|
+
themeNowDark: (e) => i("appearance.mode.nowDark", "{{theme}} is dark only, so Mode is now Dark.", { theme: e }),
|
|
90
|
+
lookSummary: (e, t) => i("appearance.look.summary", "{{theme}} · {{colour}}", {
|
|
91
|
+
theme: e,
|
|
92
|
+
colour: t
|
|
93
|
+
}),
|
|
94
|
+
lookSummaryMode: (e, t, n) => i("appearance.look.summaryMode", "{{theme}} · {{colour}} · {{mode}}", {
|
|
95
|
+
theme: e,
|
|
96
|
+
colour: t,
|
|
97
|
+
mode: n
|
|
98
|
+
}),
|
|
99
|
+
lookMore: (e) => i("appearance.look.more", "More for {{name}}", { name: e }),
|
|
100
|
+
lookUse: i("appearance.look.use", "Use this theme"),
|
|
101
|
+
lookEdit: i("appearance.look.edit", "Edit or rename"),
|
|
102
|
+
lookDuplicate: i("appearance.look.duplicate", "Duplicate"),
|
|
103
|
+
lookDelete: i("appearance.look.delete", "Delete"),
|
|
104
|
+
lookDeleteAsk: (e) => i("appearance.look.deleteAsk", "Delete “{{name}}”?", { name: e }),
|
|
105
|
+
lookDeleteBody: i("appearance.look.deleteBody", "Your colours stay."),
|
|
106
|
+
lookCreated: (e) => i("appearance.look.created", "Created “{{name}}” and switched to it.", { name: e }),
|
|
107
|
+
lookSaved: (e) => i("appearance.look.saved", "Saved “{{name}}”.", { name: e }),
|
|
108
|
+
lookDuplicated: (e) => i("appearance.look.duplicated", "Duplicated as “{{name}}”.", { name: e }),
|
|
109
|
+
lookCopyName: (e) => i("appearance.look.copyName", "{{name}} copy", { name: e }),
|
|
110
|
+
lookDeleted: (e) => i("appearance.look.deleted", "Deleted “{{name}}”.", { name: e }),
|
|
111
|
+
lookDeletedActive: (t) => i("appearance.look.deletedActive", "Deleted “{{name}}”. {{product}} is back to its default theme.", {
|
|
112
|
+
name: t,
|
|
113
|
+
product: e
|
|
114
|
+
}),
|
|
115
|
+
modeTitle: i("appearance.mode.title", "Mode"),
|
|
116
|
+
modeDescription: i("appearance.mode.description", "Light, dark, or follow your device."),
|
|
117
|
+
system: i("themeSwitcher.system", "System"),
|
|
118
|
+
lightHint: i("appearance.mode.lightHint", "Bright surfaces for daytime."),
|
|
119
|
+
darkHint: i("appearance.mode.darkHint", "Easier on the eyes at night."),
|
|
120
|
+
noLight: (e) => i("appearance.mode.noLight", "{{theme}} has no light version.", { theme: e }),
|
|
121
|
+
systemHint: (e) => i("appearance.mode.systemHint", "Follows your device. Now {{mode}}.", { mode: e }),
|
|
122
|
+
staysDark: (e) => i("appearance.mode.staysDark", "{{theme}} stays dark.", { theme: e }),
|
|
123
|
+
depthTitle: i("appearance.depth.title", "Dark depth"),
|
|
124
|
+
depthDescription: i("appearance.depth.description", "How dark the dark mode gets, for every dark theme."),
|
|
125
|
+
depthPage: i("appearance.depth.page", "Page"),
|
|
126
|
+
depthCard: i("appearance.depth.card", "Card"),
|
|
127
|
+
depthMenu: i("appearance.depth.menu", "Menu"),
|
|
128
|
+
depthNone: i("appearance.depth.none", "High contrast is already pure black, so it has no depth setting."),
|
|
129
|
+
depthLightNote: i("appearance.depth.lightNote", "You’re in Light mode. Depth applies whenever {{product}} is dark.", { product: e }),
|
|
130
|
+
colourTitle: i("appearance.colour.title", "Colour"),
|
|
131
|
+
colourDescription: i("appearance.colour.description", "Buttons, links, highlights and the current item in the sidebar."),
|
|
132
|
+
colourFixed: i("appearance.colour.fixed", "High contrast keeps its own colours so every control stays at its strongest contrast."),
|
|
133
|
+
presetsTitle: i("appearance.colour.presets", "Presets"),
|
|
134
|
+
themeColour: i("appearance.colour.themeColour", "Theme colour"),
|
|
135
|
+
mine: i("appearance.colour.mine", "My colours"),
|
|
136
|
+
mineHint: i("appearance.colour.mineHint", "Saved on this device"),
|
|
137
|
+
mineEmpty: i("appearance.colour.none", "No colours yet."),
|
|
138
|
+
addColour: i("appearance.colour.add", "Add colour"),
|
|
139
|
+
manage: i("appearance.colour.manage", "Rename, reorder or delete"),
|
|
140
|
+
done: i("appearance.colour.done", "Done"),
|
|
141
|
+
adjusted: i("appearance.colour.adjustedTag", "Adjusted"),
|
|
142
|
+
adjustedLine: (e, t, n, r, a) => i("appearance.colour.adjustedLine", "{{name}} is adjusted so it stays readable in {{mode}}: buttons use {{fill}} ({{ratio}}), links use {{ink}}. Your exact colour still shows in glows and the background.", {
|
|
143
|
+
name: e,
|
|
144
|
+
mode: t,
|
|
145
|
+
fill: n,
|
|
146
|
+
ratio: r,
|
|
147
|
+
ink: a
|
|
148
|
+
}),
|
|
149
|
+
addTitle: i("appearance.colour.addTitle", "Add a colour"),
|
|
150
|
+
editTitle: i("appearance.colour.editTitle", "Edit colour"),
|
|
151
|
+
panelHint: i("appearance.colour.panelHint", "The preview shows it before you save."),
|
|
152
|
+
pick: i("appearance.colour.pick", "Pick"),
|
|
153
|
+
hex: i("appearance.colour.hex", "Hex"),
|
|
154
|
+
name: i("common.name", "Name"),
|
|
155
|
+
hexError: i("appearance.colour.hexError", "Use 6 hex digits, like {{example}}.", { example: t }),
|
|
156
|
+
fromSite: i("appearance.colour.fromSite", "From {{site}}:", { site: n }),
|
|
157
|
+
saveColour: i("appearance.colour.save", "Save colour"),
|
|
158
|
+
saveChanges: i("appearance.colour.saveChanges", "Save changes"),
|
|
159
|
+
colourDefaultName: (e) => i("appearance.colour.defaultName", "Colour {{count}}", { count: e }),
|
|
160
|
+
colourSaved: (e) => i("appearance.colour.saved", "Saved {{name}} to My colours and switched to it.", { name: e }),
|
|
161
|
+
colourUpdated: (e) => i("appearance.colour.updated", "Saved {{name}}.", { name: e }),
|
|
162
|
+
colourDeleted: (e) => i("appearance.colour.deleted", "Deleted {{name}}.", { name: e }),
|
|
163
|
+
colourDeletedAccent: (e) => i("appearance.colour.deletedAccent", "Deleted {{name}}. The colour goes back to the theme colour.", { name: e }),
|
|
164
|
+
colourFull: i("appearance.colour.full", "My colours holds 24. Delete one to add another."),
|
|
165
|
+
colourRenamed: (e) => i("appearance.colour.renamed", "Renamed to {{name}}.", { name: e }),
|
|
166
|
+
colourMoved: (e) => i("appearance.colour.moved", "Moved {{name}}.", { name: e }),
|
|
167
|
+
manageHint: i("appearance.colour.manageHint", "Drag a row or use the arrows to reorder. A deleted colour comes back with Undo."),
|
|
168
|
+
nameFor: (e) => i("appearance.colour.nameFor", "Name for {{name}}", { name: e }),
|
|
169
|
+
moveUp: (e) => i("appearance.colour.moveUp", "Move {{name}} up", { name: e }),
|
|
170
|
+
moveDown: (e) => i("appearance.colour.moveDown", "Move {{name}} down", { name: e }),
|
|
171
|
+
changeColour: (e) => i("appearance.colour.change", "Change {{name}}", { name: e }),
|
|
172
|
+
deleteColour: (e) => i("appearance.colour.delete", "Delete {{name}}", { name: e }),
|
|
173
|
+
dragHandle: i("appearance.colour.dragHandle", "Drag to reorder"),
|
|
174
|
+
contrastLabel: i("appearance.contrast.label", "Contrast check"),
|
|
175
|
+
contrastWhere: i("appearance.contrast.where", "Where it’s used"),
|
|
176
|
+
contrastIn: (e) => i("appearance.contrast.in", "In {{mode}}", { mode: e }),
|
|
177
|
+
contrastButtons: i("appearance.contrast.buttons", "Buttons"),
|
|
178
|
+
contrastButtonsRule: i("appearance.contrast.buttonsRule", "Label on the colour, 4.5:1"),
|
|
179
|
+
contrastLinks: i("appearance.contrast.links", "Links and text"),
|
|
180
|
+
contrastLinkSample: i("appearance.contrast.linkSample", "Link"),
|
|
181
|
+
contrastLinksRule: i("appearance.contrast.linksRule", "On the page, 4.5:1"),
|
|
182
|
+
contrastOutlines: i("appearance.contrast.outlines", "Outlines and toggles"),
|
|
183
|
+
contrastOutlinesRule: i("appearance.contrast.outlinesRule", "Against the page, 3:1"),
|
|
184
|
+
contrastOk: i("appearance.contrast.ok", "OK"),
|
|
185
|
+
contrastYours: (e) => i("appearance.contrast.yours", "Yours: {{ratio}}", { ratio: e }),
|
|
186
|
+
contrastReadable: i("appearance.contrast.readable", "Readable everywhere. Buttons, links and outlines use your exact colour."),
|
|
187
|
+
contrastTooLight: i("appearance.contrast.tooLight", "Too light as it is where it says Adjusted, so {{product}} shifts it just enough there. Your exact colour still shows in glows and the background.", { product: e }),
|
|
188
|
+
contrastTooDark: i("appearance.contrast.tooDark", "Too dark as it is where it says Adjusted, so {{product}} shifts it just enough there. Your exact colour still shows in glows and the background.", { product: e }),
|
|
189
|
+
displayTitle: i("appearance.display.title", "Display"),
|
|
190
|
+
displayDescription: i("appearance.display.description", "Spacing, text size, glass and motion. They apply on every page, with any theme."),
|
|
191
|
+
density: i("themeSwitcher.density", "Density"),
|
|
192
|
+
densityHint: i("appearance.display.densityHint", "Rows, buttons, menus and the sidebar"),
|
|
193
|
+
textSize: i("appearance.display.textSize", "Text size"),
|
|
194
|
+
textSizeHint: i("appearance.display.textSizeHint", "All text in the app"),
|
|
195
|
+
glass: i("themeSwitcher.glass", "Glass"),
|
|
196
|
+
glassHint: i("appearance.display.glassHint", "See-through sidebar and panels over the background"),
|
|
197
|
+
glassSolid: i("appearance.display.glassSolid", "High contrast keeps surfaces solid"),
|
|
198
|
+
reduceMotion: i("themeSwitcher.reduceMotion", "Reduce motion"),
|
|
199
|
+
reduceMotionHint: i("appearance.display.reduceMotionHint", "Stops the background and page animations. Your device setting is respected either way."),
|
|
200
|
+
densities: {
|
|
201
|
+
compact: i("themeSwitcher.compact", "Compact"),
|
|
202
|
+
comfortable: i("themeSwitcher.comfortable", "Comfortable"),
|
|
203
|
+
spacious: i("themeSwitcher.spacious", "Spacious")
|
|
204
|
+
},
|
|
205
|
+
textSizes: {
|
|
206
|
+
small: i("themeSwitcher.small", "Small"),
|
|
207
|
+
default: i("themeSwitcher.default", "Default"),
|
|
208
|
+
large: i("themeSwitcher.large", "Large")
|
|
209
|
+
},
|
|
210
|
+
glasses: {
|
|
211
|
+
off: i("themeSwitcher.off", "Off"),
|
|
212
|
+
subtle: i("themeSwitcher.subtle", "Subtle"),
|
|
213
|
+
full: i("themeSwitcher.full", "Full")
|
|
214
|
+
},
|
|
215
|
+
previewTitle: i("appearance.preview.title", "Live preview"),
|
|
216
|
+
previewHide: i("appearance.preview.hide", "Hide"),
|
|
217
|
+
previewShow: i("appearance.preview.show", "Show"),
|
|
218
|
+
previewUnsaved: i("appearance.preview.unsaved", "Previewing, not saved"),
|
|
219
|
+
previewLabel: i("appearance.preview.label", "Preview of the Assistant start page"),
|
|
220
|
+
previewAssistant: i("appearance.preview.assistant", "{{product}} Assistant", { product: e }),
|
|
221
|
+
previewWelcome: i("appearance.preview.welcome", "Welcome to {{product}}", { product: e }),
|
|
222
|
+
previewWelcomeSub: i("appearance.preview.welcomeSub", "Tell me what you’d like to do. I’ll help you, step by step."),
|
|
223
|
+
previewAsk: i("appearance.preview.ask", "Ask me anything…"),
|
|
224
|
+
previewSuggestion1: i("appearance.preview.suggestion1", "Summarise my week"),
|
|
225
|
+
previewSuggestion2: i("appearance.preview.suggestion2", "What can you do?"),
|
|
226
|
+
dialogCreate: i("appearance.dialog.create", "Create a theme"),
|
|
227
|
+
dialogEdit: i("appearance.dialog.edit", "Edit theme"),
|
|
228
|
+
dialogNameError: i("appearance.dialog.nameError", "Give the theme a name."),
|
|
229
|
+
dialogStartFrom: i("appearance.dialog.startFrom", "Start from"),
|
|
230
|
+
dialogColour: i("appearance.dialog.colour", "Colour"),
|
|
231
|
+
dialogAnyColour: i("appearance.dialog.anyColour", "Or any colour"),
|
|
232
|
+
dialogPickAny: i("appearance.dialog.pickAny", "Pick any colour"),
|
|
233
|
+
dialogHex: i("appearance.dialog.hex", "Hex colour"),
|
|
234
|
+
dialogMode: i("appearance.dialog.mode", "Mode"),
|
|
235
|
+
dialogKeep: i("appearance.dialog.keep", "Follow my Mode setting"),
|
|
236
|
+
dialogAlwaysLight: i("appearance.dialog.alwaysLight", "Always light"),
|
|
237
|
+
dialogAlwaysDark: i("appearance.dialog.alwaysDark", "Always dark"),
|
|
238
|
+
dialogDarkOnly: (e) => i("appearance.dialog.darkOnly", "{{theme}} is dark only.", { theme: e }),
|
|
239
|
+
dialogFixed: i("appearance.dialog.fixed", "High contrast keeps its own colours."),
|
|
240
|
+
dialogSave: i("appearance.dialog.save", "Save theme"),
|
|
241
|
+
dialogSaveChanges: i("appearance.dialog.saveChanges", "Save changes"),
|
|
242
|
+
dialogDelete: i("appearance.dialog.delete", "Delete theme"),
|
|
243
|
+
dialogDeleteYes: i("appearance.dialog.deleteYes", "Delete"),
|
|
244
|
+
dialogKeepIt: i("appearance.dialog.keepIt", "Keep"),
|
|
245
|
+
dialogClose: i("appearance.dialog.close", "Close"),
|
|
246
|
+
dialogDefaultName: (e) => i("appearance.dialog.defaultName", "My theme {{count}}", { count: e }),
|
|
247
|
+
dialogReadable: (e) => i("appearance.dialog.readable", "Readable as it is: button text {{ratio}}.", { ratio: e }),
|
|
248
|
+
dialogAdjusted: (e, t) => i("appearance.dialog.adjusted", "Adjusted here so text stays readable: buttons use {{fill}} ({{ratio}}).", {
|
|
249
|
+
fill: e,
|
|
250
|
+
ratio: t
|
|
251
|
+
})
|
|
252
|
+
};
|
|
253
|
+
}, [
|
|
254
|
+
i,
|
|
255
|
+
a,
|
|
256
|
+
o
|
|
257
|
+
]);
|
|
258
|
+
}
|
|
259
|
+
export { i as useAppearanceLabels };
|
package/dist/chrome/index.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export { PluginContextMenuTarget } from './PluginContextMenuTarget';
|
|
|
121
121
|
export type { PluginContextMenuTargetProps } from './PluginContextMenuTarget';
|
|
122
122
|
export { PluginFooterStrip } from './PluginFooterStrip';
|
|
123
123
|
export { ThemePreferences, type ThemePreferencesProps } from './ThemePreferences';
|
|
124
|
+
export { AppearancePreferences, type AppearancePreferencesProps, } from './appearance/AppearancePreferences';
|
|
124
125
|
export { BrandMark, DecorativeBrandMarkScope, type BrandMarkProps } from './BrandMark';
|
|
125
126
|
export { MobileTabBar, type MobileTabBarProps } from './MobileTabBar';
|
|
126
127
|
export { useMobileTabBarVisible } from './mobileTabBar/useMobileTabBarVisible';
|
|
@@ -604,6 +604,7 @@ function ge(n) {
|
|
|
604
604
|
className: C.aside,
|
|
605
605
|
children: S ? /* @__PURE__ */ D("div", {
|
|
606
606
|
"data-shell-panel": "",
|
|
607
|
+
"data-glass-surface": "",
|
|
607
608
|
className: me,
|
|
608
609
|
children: z
|
|
609
610
|
}) : z
|
|
@@ -855,6 +856,7 @@ function we(n) {
|
|
|
855
856
|
className: j.aside,
|
|
856
857
|
children: k ? /* @__PURE__ */ D("div", {
|
|
857
858
|
"data-shell-panel": "",
|
|
859
|
+
"data-glass-surface": "",
|
|
858
860
|
className: me,
|
|
859
861
|
children: H
|
|
860
862
|
}) : H
|