@elixpo/lixsketch 5.5.0 → 5.5.1
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/package.json
CHANGED
|
@@ -8,15 +8,22 @@ import { triggerCloudSync } from '../hooks/inertStores'
|
|
|
8
8
|
import { triggerDocCloudSync, persistLayoutMode } from '../hooks/inertStores'
|
|
9
9
|
import { useTranslation } from '../hooks/useTranslation'
|
|
10
10
|
|
|
11
|
-
// Issue #38
|
|
12
|
-
//
|
|
13
|
-
const
|
|
11
|
+
// Issue #38 follow-up: theme-paired swatches. The menu picks the
|
|
12
|
+
// matching list at render time based on the active theme.
|
|
13
|
+
const CANVAS_BACKGROUNDS_LIGHT = [
|
|
14
14
|
{ color: '#ffffff', label: 'menu.canvasBg.white' },
|
|
15
15
|
{ color: '#faf9f5', label: 'menu.canvasBg.cream' },
|
|
16
16
|
{ color: '#f5f3ed', label: 'menu.canvasBg.paper' },
|
|
17
17
|
{ color: '#f0f5fb', label: 'menu.canvasBg.skyTint' },
|
|
18
18
|
{ color: '#f0f5ef', label: 'menu.canvasBg.sageTint' },
|
|
19
19
|
]
|
|
20
|
+
const CANVAS_BACKGROUNDS_DARK = [
|
|
21
|
+
{ color: '#000000', label: 'menu.canvasBg.black' },
|
|
22
|
+
{ color: '#161718', label: 'menu.canvasBg.darkGray' },
|
|
23
|
+
{ color: '#13171C', label: 'menu.canvasBg.blueBlack' },
|
|
24
|
+
{ color: '#181605', label: 'menu.canvasBg.darkYellow' },
|
|
25
|
+
{ color: '#1B1615', label: 'menu.canvasBg.darkBrown' },
|
|
26
|
+
]
|
|
20
27
|
|
|
21
28
|
export default function AppMenu() {
|
|
22
29
|
const { t, language } = useTranslation()
|
|
@@ -454,7 +461,7 @@ export default function AppMenu() {
|
|
|
454
461
|
{t('menu.canvasBackground')}
|
|
455
462
|
</p>
|
|
456
463
|
<div className="flex items-center gap-1.5">
|
|
457
|
-
{
|
|
464
|
+
{(theme === 'dark' ? CANVAS_BACKGROUNDS_DARK : CANVAS_BACKGROUNDS_LIGHT).map((bg) => (
|
|
458
465
|
<button
|
|
459
466
|
key={bg.color}
|
|
460
467
|
onClick={() => setCanvasBackground(bg.color)}
|