An open-source, self-hosted system for apps built with web technologies.
Use background as the Surface color
zohayrslilehe1829336efe0
diff --git a/bun.lock b/bun.lockindex 0285105..ed3984d 100644--- a/bun.lock+++ b/bun.lock@@ -230,9 +230,9 @@"@oxc-project/types": ["@oxc-project/[email protected]", "", {}, "sha512-nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg=="],- "@phreshos/core": ["@phreshos/[email protected]", "", {}, "sha512-/DtsYMgyrham3vfW8EyRJZxUN7SxRPpg72+tMnq3RORBKTKG7dL9dUubcVdy97JWO/ApGGOQmmA90Gf70C8vFQ=="],+ "@phreshos/core": ["@phreshos/[email protected]", "", {}, "sha512-ZUvPpINq28y4trDHKknDGvIFOV8sTq74YrhsN8UkA1uiQjXQlMM1HkLJdrRrQJvTUgUC711r+Gh96sNTicPXlA=="],- "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "react-aria-components": "^1.20.0" }, "peerDependencies": { "@phreshos/core": "^0.1.4", "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-6V7F989M7y9MRTVW2QT7PLmp8ZRM0loAmPYKpn2GGe3k6qZFsnLi+RuVDwm/KrFtLIZEk0urI14Kb10N43CNVA=="],+ "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "react-aria-components": "^1.20.0" }, "peerDependencies": { "@phreshos/core": "^0.1.7", "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-K5gIFEBGbyDq6VvhemsAby93OXvBqCNqx7evCJAi/2oQRdPNXovqVOWPFMHtYO4ezw5inS5gnck+OZzdT7EL0A=="],"@react-types/shared": ["@react-types/[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-AzsuD9OfxTOZMMvTRhlN3oHBwOmFN7tDh27LzqmHt4+uOgPhJT7ZM7/kVs/8/o0WxayMUIk3hBmCFRHv1FUoag=="],diff --git a/package.json b/package.jsonindex 170b53b..7dc6349 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "phreshos","displayName": "PhreshOS",- "version": "0.1.15",+ "version": "0.1.16","description": "The PhreshOS server, desktop, and authoritative system runtime.","type": "module","private": true,diff --git a/scripts/verify-theme.mjs b/scripts/verify-theme.mjsindex 787214b..8b18790 100644--- a/scripts/verify-theme.mjs+++ b/scripts/verify-theme.mjs@@ -16,8 +16,7 @@ const expected = {opacity: 0.12},surface: {- color: "#f5f4ee",- grain: 0.1,+ grain: 0.04,animation: 0,backdrop: 0,opacity: 1@@ -25,13 +24,15 @@ const expected = {}assert.deepEqual(themeSchema.parse({}), expected)-assert.deepEqual(themeSchema.parse({ surface: { color: "black", grain: 0.9, animation: 16, backdrop: 24, opacity: 0 } }).surface, {- color: "black",+const configured = themeSchema.parse({ background: "black", surface: { grain: 0.9, animation: 16, backdrop: 24, opacity: 0 } })+assert.equal(configured.background, "black")+assert.deepEqual(configured.surface, {grain: 0.9,animation: 16,backdrop: 24,opacity: 0})+assert.throws(() => themeSchema.parse({ surface: { color: "black" } }))assert.throws(() => themeSchema.parse({ surface: { grain: 1.01 } }))assert.throws(() => themeSchema.parse({ surface: { animation: 17 } }))assert.throws(() => themeSchema.parse({ surface: { backdrop: 25 } }))diff --git a/source/server/core/theme-manager.ts b/source/server/core/theme-manager.tsindex cf56244..45db681 100644--- a/source/server/core/theme-manager.ts+++ b/source/server/core/theme-manager.ts@@ -19,7 +19,6 @@ export const themeSchema: z.ZodType<ThemeProperties> = z.strictObject({opacity: bounded(themeLimits.glass.opacity).default(standardTheme.glass.opacity)}).default(standardTheme.glass),surface: z.strictObject({- color: z.string().min(1).default(standardTheme.surface.color),grain: bounded(themeLimits.surface.grain).default(standardTheme.surface.grain),animation: bounded(themeLimits.surface.animation).default(standardTheme.surface.animation),backdrop: bounded(themeLimits.surface.backdrop).default(standardTheme.surface.backdrop),