@adea-ai/ui 0.55.1 → 0.55.3
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.
|
@@ -738,6 +738,10 @@ function applyAppearanceToDocument(document, state) {
|
|
|
738
738
|
setToken("--primary", state.accent.primary);
|
|
739
739
|
setToken("--primary-foreground", state.accent.onPrimary);
|
|
740
740
|
setToken("--ring", state.accent.ring);
|
|
741
|
+
} else {
|
|
742
|
+
style.removeProperty("--primary");
|
|
743
|
+
style.removeProperty("--primary-foreground");
|
|
744
|
+
style.removeProperty("--ring");
|
|
741
745
|
}
|
|
742
746
|
for (const [name, value] of Object.entries(flatVariantTokens(state.variant))) setToken(name, value);
|
|
743
747
|
}
|
package/package.json
CHANGED
|
@@ -1034,11 +1034,18 @@ export function applyAppearanceToDocument(
|
|
|
1034
1034
|
const setToken = (name: string, value: string) => style.setProperty(name, value)
|
|
1035
1035
|
setToken('--surface-alpha', SURFACE_BACKGROUND_ALPHA[state.effectiveSurface])
|
|
1036
1036
|
// `theme` keeps every interactive role CSS-owned; an override touches only
|
|
1037
|
-
// the accent roles, never the surface or text palette.
|
|
1037
|
+
// the accent roles, never the surface or text palette. Returning to
|
|
1038
|
+
// `theme` must also *remove* a previous override's inline properties — they
|
|
1039
|
+
// beat the stylesheet, so leaving them behind made "Theme default" look like
|
|
1040
|
+
// a dead button after any preset or custom accent had been used.
|
|
1038
1041
|
if (state.accent.overrides) {
|
|
1039
1042
|
setToken('--primary', state.accent.primary)
|
|
1040
1043
|
setToken('--primary-foreground', state.accent.onPrimary)
|
|
1041
1044
|
setToken('--ring', state.accent.ring)
|
|
1045
|
+
} else {
|
|
1046
|
+
style.removeProperty('--primary')
|
|
1047
|
+
style.removeProperty('--primary-foreground')
|
|
1048
|
+
style.removeProperty('--ring')
|
|
1042
1049
|
}
|
|
1043
1050
|
for (const [name, value] of Object.entries(flatVariantTokens(state.variant))) {
|
|
1044
1051
|
setToken(name, value)
|
|
@@ -1983,11 +1983,12 @@
|
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
1985
|
.conventional-settings-dialog {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
max-
|
|
1986
|
+
/* The settings surface packs sections rather than one form, so it opens
|
|
1987
|
+
wider by default (72rem) and taller (52rem); the calc guards keep both
|
|
1988
|
+
responsive on small windows. */
|
|
1989
|
+
width: min(72rem, calc(100% - 2rem));
|
|
1990
|
+
max-width: min(72rem, calc(100% - 2rem));
|
|
1991
|
+
max-height: min(52rem, calc(100svh - 2rem));
|
|
1991
1992
|
}
|
|
1992
1993
|
|
|
1993
1994
|
.conventional-about-dialog {
|
package/src/styles/dev-view.css
CHANGED
|
@@ -890,3 +890,10 @@
|
|
|
890
890
|
line-height: 1.5;
|
|
891
891
|
color: var(--dev-muted);
|
|
892
892
|
}
|
|
893
|
+
|
|
894
|
+
/* The appearance editor's mode cards (settings Appearance section): the donor
|
|
895
|
+
composes them as small proportional previews, so the box keeps a ratio
|
|
896
|
+
instead of a fixed height that stretched the preview horizontally. */
|
|
897
|
+
.dev-appearance-miniature {
|
|
898
|
+
aspect-ratio: 4 / 3;
|
|
899
|
+
}
|