Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(studio): a sticker's colours join the book's palette

Maurice7b50b12fe6ea
diff --git a/shared/src/book/book-paint.ts b/shared/src/book/book-paint.ts
index fb136e1ab..ebe1672c9 100644
--- a/shared/src/book/book-paint.ts
+++ b/shared/src/book/book-paint.ts
@@ -186,6 +186,8 @@ function elementColours(el: BookElement): string[] {
case 'text':
case 'icon':
return [lower(el.color)];
+ case 'sticker':
+ return el.colors.map(lower);
default:
return [lower(el.color), lower(el.accent)];
}