Skip to content

AI-native design editor. Open-source Figma alternative.

chore(release): polish asset labels and loaders

Danila Poyarkovccc2b0a52c05
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 01e119f57..e13ecdae7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,57 +4,77 @@
### Added
-- Add variable mode management — create, rename, duplicate, delete modes and set the default mode per collection. Modes appear as interactive table column headers (double-click to rename, right-click for context menu).
-- Add collection deletion from the variables dialog.
-- Bind variables to line height, letter spacing, font weight, paragraph spacing, and paragraph indent in the typography inspector.
-- Add editor event bus with typed lifecycle events — subscribe via `editor.onEditorEvent()` in core or `useEditorEvent()` composable in the Vue SDK.
-- Register desktop file associations for `.fig` and `.pen` so supported design files can be opened from OS file browsers with OpenPencil.
-- Add a local Assets panel for document components and component sets, with grouped variant assets, default variant insertion, and duplicate variant warnings.
+- Add a local Assets panel for document components and component sets, including grouped variant assets, default variant insertion, duplicate variant warnings, library metadata badges, component details, documentation links, and rendered asset previews.
+- Add component variant property data, core variant actions, and right-inspector variant switching for instances.
- Preserve Figma component library metadata on import/export, including component keys, source library keys, publish/version IDs, descriptions, links, and variant property specs.
+- Register desktop file associations for `.fig` and `.pen` so supported design files can be opened from OS file browsers with OpenPencil.
+- Add signed Tauri updater configuration, release artifacts, startup update checks, and a native Check for Updates menu item.
+- Add light theme selection and theme-aware canvas ruler colors.
+- Add PDF export — vector PDF output via SVG→PDF conversion. Available in the export panel, CLI (`--format pdf`), and MCP (`export_pdf` tool).
+- Add the `import_svg` tool for importing SVG content through automation.
+- Add DeepSeek as a first-class AI provider and bump AI SDK dependencies for newer model support.
+- Add editor event bus with typed lifecycle events — subscribe via `editor.onEditorEvent()` in core or `useEditorEvent()` in the Vue SDK.
+- Add variable mode management — create, rename, duplicate, delete modes and set the default mode per collection.
+- Add collection deletion and a variable type creation menu to the variables dialog.
+- Add inspector variable binding controls for fill and stroke colors, width/height sizing, min/max sizing, and typography fields including line height, letter spacing, font weight, paragraph spacing, and paragraph indent.
+- Add auto-layout inspector controls for min/max dimensions, Auto gap distribution, wrap cross-axis gap, and two-axis padding controls.
+- Add stroke dash/gap controls to the stroke inspector panel.
+- Add font settings controls for local font access, fallback font predownloads, and downloaded font cache management.
### Changed
- Refactor the editor architecture across core, app, Vue SDK, CLI, MCP, docs, and desktop into smaller domain modules with structural lint rules to keep package boundaries explicit.
- Add targeted core subpath exports and package-local import aliases for cleaner app, Vue SDK, CLI, and MCP imports.
- Split the canvas into separate scene and overlay render layers so rulers, labels, selections, and input overlays are isolated from scene rendering.
+- Share one generated menu schema between browser and Tauri menus for more consistent app commands.
- Use `@use-gesture/vanilla` for wheel gesture lifecycle handling and faster trackpad zoom behavior.
-- Add auto-layout inspector controls for min/max dimensions, Auto gap distribution, wrap cross-axis gap, and two-axis padding controls.
-- Add signed Tauri updater configuration, release artifacts, startup update checks, and a native Check for Updates menu item.
-- Add inspector variable binding controls for fill and stroke colors plus width/height sizing, including existing variable selection and named variable creation.
-- Add stroke dash/gap controls to the stroke inspector panel.
-- Bump AI SDK dependencies for improved DeepSeek reasoning mode and newer model support.
-- Add PDF export — vector PDF output via SVG→PDF conversion. Available in export panel, CLI (`--format pdf`), and MCP (`export_pdf` tool).
-- Add font settings controls for local font access, fallback font predownloads, and downloaded font cache management.
+- Reorganize development docs and roadmap notes under the VitePress docs package.
### Fixes
-- Fix inner shadow rendering for text nodes to be more in line with Figma's behavior
-- Fix bug causing exponential (decompressed) .fig growth triggered by repeated save / load cycles
-- Fix `@open-pencil/vue` failing to import from npm — `getAbsolutePositionFull` was imported from `@open-pencil/core/canvas/coordinate`, an unexported subpath. Re-exported the function from `@open-pencil/core/canvas` and updated the vue import.
+- Fix CJK and Arabic fallback font rendering so text waits for required fallback fonts and repaints after async fallback loading completes.
- Fix large `.fig` files freezing during open — parsing and scene graph import now run in the worker, and opened files fit to the canvas viewport after loading.
- Improve Figma import fidelity for Preline UI files — preserve variable aliases, derived instance layout, nested instance scaling, avatar swaps, badge internals, and input text alignment.
- Improve Figma render fidelity for exports — preserve flipped vector bounds, render Figma stroke geometry for shapes/vectors, fix clipped visual overflow, and render drop shadows for stroked shapes from the stroke outline.
+- Fix component variant switching so instances swap their contents instead of only changing the component id.
+- Fix default variant selection in Assets by respecting component property definitions.
+- Fix asset insertion coordinates inside entered containers.
- Fix text editing inside selected components and instances on double-click.
+- Fix paste into selected containers.
+- Fix clipboard parsing so invalid Kiwi data is ignored safely.
+- Fix undo rendering after state restore and undo/redo shortcuts firing twice during modifier-key release.
- Prevent browser/Safari from intercepting app-level Cmd/Ctrl shortcuts such as undo/redo.
-- Fix undo/redo shortcuts firing twice during modifier-key release by handling command shortcuts with event-based dispatch.
- Fix option-drag duplicate undo/redo so undo removes duplicated subtrees and redo restores them instead of moving the copy back.
-- Fix section drawing errors and color input attribute forwarding in the property panel.
-- Fix demo component instances by laying out source components before creating instances, and restore explicit badge dot/text spacing.
+- Fix MCP stdio handshake and eval return values.
+- Fix default and bundled font provider resolution, including package-root font loading.
- Keep the global startup loader visible until CanvasKit fonts load and the first font-backed render completes, avoiding a flash of missing text in opened files and the demo.
- Fix hot reload creating duplicate editor tabs during development.
+- Improve light theme polish across warning colors, the Safari banner, app UI tokens, and canvas rulers.
+- Normalize browser zoom speed and restore wheel zoom scaling after gesture handling changes.
- Improve layout inspector dropdown anchoring and icon clarity for spacing and padding controls.
+- Fix variable picker popovers and ScrubInput button clicks so binding controls remain clickable during scrub interactions.
- Fix bound color variable inspector swatches to display the resolved variable color and detach the binding when edited directly.
-- Fix dashed strokes on vector nodes rendering as solid lines — dash pattern now uses `PathEffect.MakeDash` directly instead of outline conversion, and closed crescent shapes (e.g. annular wedges) render a single dashed centerline arc instead of two parallel arcs.
+- Fix dashed strokes on vector nodes rendering as solid lines — dash pattern now uses `PathEffect.MakeDash` directly instead of outline conversion, and closed crescent shapes render a single dashed centerline arc instead of two parallel arcs.
- Fix gradient fills on text nodes by clipping gradient paints through the shaped paragraph mask.
-- Fix CJK and Arabic fallback font rendering so text waits for required fallback fonts and repaints after async fallback loading completes.
+- Fix inner shadow rendering for text nodes to be more in line with Figma's behavior.
+- Fix exponential decompressed `.fig` growth triggered by repeated save/load cycles.
+- Fix `@open-pencil/vue` npm imports that referenced an unexported core canvas subpath.
+- Fix canvas size badges so they stay in screen space instead of scaling with zoom.
+- Fix section drawing errors and color input attribute forwarding in the property panel.
+- Fix demo component instances by laying out source components before creating instances, and restore explicit badge dot/text spacing.
### Performance
- Cache downloaded remote fonts in app-local storage so reopened documents can reuse them without repeated network fetches.
-- Add Tauri API mock coverage for font loading, font cache, external links, document read/write, and save dialogs.
- Add a curated fallback font manifest for CJK and Arabic font downloads.
- Cache instance override resolution and lazily populate opened `.fig` pages to reduce load time for large community files.
- Reduce zoom and overlay rendering work by separating scene rendering from rulers, selection, labels, and input overlays.
+- Avoid scene picture recording during live edit interactions.
+
+### Tests
+
+- Add Tauri API mock coverage for font loading, font cache, external links, document read/write, save dialogs, process helpers, and remaining desktop integrations.
+- Add scheduled/manual heavy `.fig` import coverage and mark large fixture metadata tests as heavy.
## 0.11.8 — 2026-04-23
diff --git a/index.html b/index.html
index 17e4e5674..d2dffc55e 100644
--- a/index.html
+++ b/index.html
@@ -10,7 +10,25 @@
<meta name="theme-color" content="#1e1e1e" />
<title>OpenPencil</title>
<style>
- body { margin: 0; background: #1e1e1e; }
+ :root {
+ --loader-bg: #1e1e1e;
+ --loader-fg: 255, 255, 255;
+ }
+ @media (prefers-color-scheme: light) {
+ :root {
+ --loader-bg: #f3f4f6;
+ --loader-fg: 32, 33, 36;
+ }
+ }
+ html[data-theme='dark'] {
+ --loader-bg: #1e1e1e;
+ --loader-fg: 255, 255, 255;
+ }
+ html[data-theme='light'] {
+ --loader-bg: #f3f4f6;
+ --loader-fg: 32, 33, 36;
+ }
+ body { margin: 0; background: var(--loader-bg); }
#loader {
position: fixed;
inset: 0;
@@ -18,11 +36,12 @@
align-items: center;
justify-content: center;
z-index: 9999;
- background: #1e1e1e;
+ color: rgb(var(--loader-fg));
+ background: var(--loader-bg);
transition: opacity 0.3s;
}
#loader.fade-out { opacity: 0; pointer-events: none; }
- #loader svg { width: 32px; height: 32px; opacity: 0.4; }
+ #loader svg { width: 32px; height: 32px; opacity: 0.45; }
#loader .bar {
position: absolute;
bottom: 50%;
@@ -30,7 +49,7 @@
transform: translate(-50%, 40px);
width: 100px;
height: 2px;
- background: rgba(255,255,255,0.08);
+ background: rgba(var(--loader-fg), 0.08);
border-radius: 1px;
overflow: hidden;
}
@@ -39,7 +58,7 @@
display: block;
height: 100%;
width: 40%;
- background: rgba(255,255,255,0.25);
+ background: rgba(var(--loader-fg), 0.25);
border-radius: 1px;
animation: slide 1s ease-in-out infinite;
}
@@ -52,7 +71,7 @@
<body>
<div id="loader">
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" style="color: white">
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="m15.232 5.232 3.536 3.536m-2.036-5.036a2.5 2.5 0 0 1 3.536 3.536L6.5 21.036H3v-3.572L16.732 3.732Z"/>
</svg>
<div class="bar"></div>
diff --git a/packages/vue/src/i18n/messages.ts b/packages/vue/src/i18n/messages.ts
index 5c9e5fc52..2cbc3d47d 100644
--- a/packages/vue/src/i18n/messages.ts
+++ b/packages/vue/src/i18n/messages.ts
@@ -117,6 +117,19 @@ export const panelMessages = i18n('panels', {
code: 'Code',
ai: 'AI',
assets: 'Assets',
+ searchLocalComponents: 'Search local components',
+ assetLibraryBadge: 'Library',
+ assetVariantSummary: params('{count} variants · {names}'),
+ duplicateVariantValues: 'Duplicate variant values',
+ openDocumentation: 'Open documentation',
+ noLocalComponents: 'No local components',
+ componentSet: 'Component set',
+ component: 'Component',
+ insertInstance: 'Insert instance',
+ description: 'Description',
+ documentation: 'Documentation',
+ openDocs: 'Open docs',
+ properties: 'Properties',
page: 'Page',
position: 'Position',
diff --git a/packages/vue/src/locales/de.json b/packages/vue/src/locales/de.json
index 150841e94..f6ccc2e77 100644
--- a/packages/vue/src/locales/de.json
+++ b/packages/vue/src/locales/de.json
@@ -193,7 +193,20 @@
"minHeightShort": "Min H",
"maxHeightShort": "Max H",
"setToCurrentWidth": "Auf aktuelle Breite setzen",
- "setToCurrentHeight": "Auf aktuelle Hoehe setzen"
+ "setToCurrentHeight": "Auf aktuelle Hoehe setzen",
+ "searchLocalComponents": "Lokale Komponenten suchen",
+ "assetLibraryBadge": "Bibliothek",
+ "assetVariantSummary": "{count} Varianten · {names}",
+ "duplicateVariantValues": "Doppelte Variantenwerte",
+ "openDocumentation": "Dokumentation öffnen",
+ "noLocalComponents": "Keine lokalen Komponenten",
+ "componentSet": "Komponentensatz",
+ "component": "Komponente",
+ "insertInstance": "Instanz einfügen",
+ "description": "Beschreibung",
+ "documentation": "Dokumentation",
+ "openDocs": "Dokumentation öffnen",
+ "properties": "Eigenschaften"
},
"pages": {
"newPage": "Neue Seite",
diff --git a/packages/vue/src/locales/es.json b/packages/vue/src/locales/es.json
index ae1cd5e8c..90f0a87a3 100644
--- a/packages/vue/src/locales/es.json
+++ b/packages/vue/src/locales/es.json
@@ -193,7 +193,20 @@
"minHeightShort": "Min Al",
"maxHeightShort": "Max Al",
"setToCurrentWidth": "Establecer ancho actual",
- "setToCurrentHeight": "Establecer alto actual"
+ "setToCurrentHeight": "Establecer alto actual",
+ "searchLocalComponents": "Buscar componentes locales",
+ "assetLibraryBadge": "Biblioteca",
+ "assetVariantSummary": "{count} variantes · {names}",
+ "duplicateVariantValues": "Valores de variante duplicados",
+ "openDocumentation": "Abrir documentación",
+ "noLocalComponents": "No hay componentes locales",
+ "componentSet": "Conjunto de componentes",
+ "component": "Componente",
+ "insertInstance": "Insertar instancia",
+ "description": "Descripción",
+ "documentation": "Documentación",
+ "openDocs": "Abrir docs",
+ "properties": "Propiedades"
},
"pages": {
"newPage": "Nueva página",
diff --git a/packages/vue/src/locales/fr.json b/packages/vue/src/locales/fr.json
index e4deb9d38..39abb97b6 100644
--- a/packages/vue/src/locales/fr.json
+++ b/packages/vue/src/locales/fr.json
@@ -193,7 +193,20 @@
"minHeightShort": "Min H",
"maxHeightShort": "Max H",
"setToCurrentWidth": "Largeur actuelle",
- "setToCurrentHeight": "Hauteur actuelle"
+ "setToCurrentHeight": "Hauteur actuelle",
+ "searchLocalComponents": "Rechercher des composants locaux",
+ "assetLibraryBadge": "Bibliothèque",
+ "assetVariantSummary": "{count} variantes · {names}",
+ "duplicateVariantValues": "Valeurs de variante en double",
+ "openDocumentation": "Ouvrir la documentation",
+ "noLocalComponents": "Aucun composant local",
+ "componentSet": "Jeu de composants",
+ "component": "Composant",
+ "insertInstance": "Insérer une instance",
+ "description": "Description",
+ "documentation": "Documentation",
+ "openDocs": "Ouvrir la doc",
+ "properties": "Propriétés"
},
"pages": {
"newPage": "Nouvelle page",
diff --git a/packages/vue/src/locales/it.json b/packages/vue/src/locales/it.json
index 4fa45bb1e..0dba0b75b 100644
--- a/packages/vue/src/locales/it.json
+++ b/packages/vue/src/locales/it.json
@@ -193,7 +193,20 @@
"minHeightShort": "Min A",
"maxHeightShort": "Max A",
"setToCurrentWidth": "Imposta larghezza attuale",
- "setToCurrentHeight": "Imposta altezza attuale"
+ "setToCurrentHeight": "Imposta altezza attuale",
+ "searchLocalComponents": "Cerca componenti locali",
+ "assetLibraryBadge": "Libreria",
+ "assetVariantSummary": "{count} varianti · {names}",
+ "duplicateVariantValues": "Valori variante duplicati",
+ "openDocumentation": "Apri documentazione",
+ "noLocalComponents": "Nessun componente locale",
+ "componentSet": "Set di componenti",
+ "component": "Componente",
+ "insertInstance": "Inserisci istanza",
+ "description": "Descrizione",
+ "documentation": "Documentazione",
+ "openDocs": "Apri documentazione",
+ "properties": "Proprietà"
},
"pages": {
"newPage": "Nuova pagina",
diff --git a/packages/vue/src/locales/pl.json b/packages/vue/src/locales/pl.json
index 739155ed4..6b9829bc7 100644
--- a/packages/vue/src/locales/pl.json
+++ b/packages/vue/src/locales/pl.json
@@ -193,7 +193,20 @@
"minHeightShort": "Min W",
"maxHeightShort": "Maks W",
"setToCurrentWidth": "Ustaw biezaca szerokosc",
- "setToCurrentHeight": "Ustaw biezaca wysokosc"
+ "setToCurrentHeight": "Ustaw biezaca wysokosc",
+ "searchLocalComponents": "Szukaj lokalnych komponentów",
+ "assetLibraryBadge": "Biblioteka",
+ "assetVariantSummary": "{count} wariantów · {names}",
+ "duplicateVariantValues": "Zduplikowane wartości wariantu",
+ "openDocumentation": "Otwórz dokumentację",
+ "noLocalComponents": "Brak lokalnych komponentów",
+ "componentSet": "Zestaw komponentów",
+ "component": "Komponent",
+ "insertInstance": "Wstaw instancję",
+ "description": "Opis",
+ "documentation": "Dokumentacja",
+ "openDocs": "Otwórz dokumentację",
+ "properties": "Właściwości"
},
"pages": {
"newPage": "Nowa strona",
diff --git a/packages/vue/src/locales/ru.json b/packages/vue/src/locales/ru.json
index 27e1db37f..94c2483e7 100644
--- a/packages/vue/src/locales/ru.json
+++ b/packages/vue/src/locales/ru.json
@@ -193,7 +193,20 @@
"minHeightShort": "Мин В",
"maxHeightShort": "Макс В",
"setToCurrentWidth": "Установить текущую ширину",
- "setToCurrentHeight": "Установить текущую высоту"
+ "setToCurrentHeight": "Установить текущую высоту",
+ "searchLocalComponents": "Поиск локальных компонентов",
+ "assetLibraryBadge": "Библиотека",
+ "assetVariantSummary": "{count} вариантов · {names}",
+ "duplicateVariantValues": "Повторяющиеся значения вариантов",
+ "openDocumentation": "Открыть документацию",
+ "noLocalComponents": "Нет локальных компонентов",
+ "componentSet": "Набор компонентов",
+ "component": "Компонент",
+ "insertInstance": "Вставить экземпляр",
+ "description": "Описание",
+ "documentation": "Документация",
+ "openDocs": "Открыть документацию",
+ "properties": "Свойства"
},
"pages": {
"newPage": "Новая страница",
diff --git a/packages/vue/src/locales/zh-CN.json b/packages/vue/src/locales/zh-CN.json
index 879cadf3f..05d7dfda2 100644
--- a/packages/vue/src/locales/zh-CN.json
+++ b/packages/vue/src/locales/zh-CN.json
@@ -193,7 +193,20 @@
"minHeightShort": "最小高",
"maxHeightShort": "最大高",
"setToCurrentWidth": "设为当前宽度",
- "setToCurrentHeight": "设为当前高度"
+ "setToCurrentHeight": "设为当前高度",
+ "searchLocalComponents": "搜索本地组件",
+ "assetLibraryBadge": "库",
+ "assetVariantSummary": "{count} 个变体 · {names}",
+ "duplicateVariantValues": "重复的变体值",
+ "openDocumentation": "打开文档",
+ "noLocalComponents": "没有本地组件",
+ "componentSet": "组件集",
+ "component": "组件",
+ "insertInstance": "插入实例",
+ "description": "描述",
+ "documentation": "文档",
+ "openDocs": "打开文档",
+ "properties": "属性"
},
"pages": {
"newPage": "新建页面",
diff --git a/src/components/AssetsPanel.vue b/src/components/AssetsPanel.vue
index b6516544f..39b34d64e 100644
--- a/src/components/AssetsPanel.vue
+++ b/src/components/AssetsPanel.vue
@@ -188,7 +188,7 @@ function insertSelectedAsset() {
data-test-id="assets-search"
:class="input.base"
type="search"
- placeholder="Search local components"
+ :placeholder="panels.searchLocalComponents"
/>
</div>
@@ -215,7 +215,7 @@ function insertSelectedAsset() {
data-test-id="asset-library-badge"
class="shrink-0 rounded bg-component/15 px-1 py-px text-[9px] font-medium text-component uppercase"
>
- Library
+ {{ panels.assetLibraryBadge }}
</span>
</span>
<span
@@ -223,8 +223,12 @@ function insertSelectedAsset() {
data-test-id="asset-variant-summary"
class="mt-0.5 block truncate text-[10px] text-muted"
>
- {{ asset.variantCount }} variants ·
- {{ asset.variants.map((variant) => variant.name).join(', ') }}
+ {{
+ panels.assetVariantSummary({
+ count: asset.variantCount,
+ names: asset.variants.map((variant) => variant.name).join(', ')
+ })
+ }}
</span>
<span
v-if="asset.description"
@@ -238,10 +242,10 @@ function insertSelectedAsset() {
data-test-id="asset-variant-conflict"
class="mt-0.5 block truncate text-[10px] text-[var(--color-warning-text)]"
>
- Duplicate variant values
+ {{ panels.duplicateVariantValues }}
</span>
</span>
- <Tip v-if="asset.docsUrl" label="Open documentation">
+ <Tip v-if="asset.docsUrl" :label="panels.openDocumentation">
<span
:class="insertButton.base"
data-test-id="asset-docs"
@@ -269,7 +273,7 @@ function insertSelectedAsset() {
data-test-id="assets-empty"
class="px-3 py-6 text-center text-xs text-muted"
>
- No local components
+ {{ panels.noLocalComponents }}
</div>
</div>
@@ -292,7 +296,11 @@ function insertSelectedAsset() {
selectedAsset.name
}}</DialogTitle>
<p class="mt-0.5 text-[11px] text-muted">
- {{ selectedAsset.node.type === 'COMPONENT_SET' ? 'Component set' : 'Component' }}
+ {{
+ selectedAsset.node.type === 'COMPONENT_SET'
+ ? panels.componentSet
+ : panels.component
+ }}
<span v-if="selectedAsset.variantCount > 0">
· {{ selectedAsset.variantCount }} variants</span
>
@@ -341,14 +349,14 @@ function insertSelectedAsset() {
class="mt-3 w-full"
@click="insertSelectedAsset"
>
- Insert instance
+ {{ panels.insertInstance }}
</button>
</div>
<div class="min-w-0 p-4">
<section v-if="selectedAsset.description" class="mb-4">
<h3 class="text-[11px] font-medium tracking-wider text-muted uppercase">
- Description
+ {{ panels.description }}
</h3>
<p
data-test-id="asset-details-description"
@@ -359,7 +367,9 @@ function insertSelectedAsset() {
</section>
<section v-if="selectedAsset.sourceLibraryKey" class="mb-4">
- <h3 class="text-[11px] font-medium tracking-wider text-muted uppercase">Library</h3>
+ <h3 class="text-[11px] font-medium tracking-wider text-muted uppercase">
+ {{ panels.assetLibraryBadge }}
+ </h3>
<p data-test-id="asset-details-library" class="mt-1 break-all text-xs text-muted">
{{ selectedAsset.sourceLibraryKey }}
</p>
@@ -367,7 +377,7 @@ function insertSelectedAsset() {
<section v-if="selectedAsset.docsUrl" class="mb-4">
<h3 class="text-[11px] font-medium tracking-wider text-muted uppercase">
- Documentation
+ {{ panels.documentation }}
</h3>
<button
data-test-id="asset-details-docs"
@@ -377,13 +387,13 @@ function insertSelectedAsset() {
"
>
<icon-lucide-book-open class="size-3" />
- Open docs
+ {{ panels.openDocs }}
</button>
</section>
<section v-if="selectedAsset.variants.length > 0">
<h3 class="text-[11px] font-medium tracking-wider text-muted uppercase">
- Properties
+ {{ panels.properties }}
</h3>
<div class="mt-2 flex flex-col gap-2">
<div
diff --git a/src/components/EditorCanvas.vue b/src/components/EditorCanvas.vue
index 7c560d3a5..5d942b154 100644
--- a/src/components/EditorCanvas.vue
+++ b/src/components/EditorCanvas.vue
@@ -83,7 +83,7 @@ const cursor = computed(() => toolCursor(store.state.activeTool, cursorOverride.
class="absolute inset-0 z-50 flex items-center justify-center bg-canvas"
>
<svg
- class="size-8 text-white opacity-40"
+ class="size-8 text-surface opacity-45"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
@@ -96,10 +96,10 @@ const cursor = computed(() => toolCursor(store.state.activeTool, cursorOverride.
/>
</svg>
<div
- class="absolute bottom-1/2 left-1/2 h-0.5 w-25 -translate-x-1/2 translate-y-10 overflow-hidden rounded-full bg-white/8"
+ class="absolute bottom-1/2 left-1/2 h-0.5 w-25 -translate-x-1/2 translate-y-10 overflow-hidden rounded-full bg-surface/8"
>
<div
- class="h-full w-2/5 animate-[slide_1s_ease-in-out_infinite] rounded-full bg-white/25"
+ class="h-full w-2/5 animate-[slide_1s_ease-in-out_infinite] rounded-full bg-surface/25"
/>
</div>
</div>
diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vue
index 531e97601..682fc1de4 100644
--- a/src/components/LayersPanel.vue
+++ b/src/components/LayersPanel.vue
@@ -9,8 +9,8 @@ import AssetsPanel from './AssetsPanel.vue'
import LayerTree from './LayerTree.vue'
import PagesPanel from './PagesPanel.vue'
-const { panels } = useI18n()
-const activePanel = ref<'layers' | 'assets'>('layers')
+const { menu, panels } = useI18n()
+const activePanel = ref<'file' | 'assets'>('file')
</script>
<template>
@@ -24,12 +24,10 @@ const activePanel = ref<'layers' | 'assets'>('layers')
<button
data-test-id="left-panel-layers-tab"
class="flex-1 rounded px-2 py-1 text-xs transition-colors"
- :class="
- activePanel === 'layers' ? 'bg-hover text-surface' : 'text-muted hover:text-surface'
- "
- @click="activePanel = 'layers'"
+ :class="activePanel === 'file' ? 'bg-hover text-surface' : 'text-muted hover:text-surface'"
+ @click="activePanel = 'file'"
>
- {{ panels.layers }}
+ {{ menu.file }}
</button>
<button
data-test-id="left-panel-assets-tab"