From d96890bf78d57371554005c45c9e444e3559c0d1 Mon Sep 17 00:00:00 2001 From: Tao Schiro Date: Thu, 3 Dec 2026 11:24:14 +0100 Subject: [PATCH 1/2] fix(switch): the switches take the app default color Primary becomes the default switch color of the layer, and the components no longer force it, so an app can set its own (Vease: success). Refs Geode-solutions/Vease#943 --- app/components/ClippingPlanes.vue | 2 -- app/components/FactorFilterPanel.vue | 1 - app/components/Ruler.vue | 1 - app/components/Viewer/Basemap/CropOptions.vue | 1 - nuxt.config.ts | 4 ++++ 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/components/ClippingPlanes.vue b/app/components/ClippingPlanes.vue index 13ea9f71b..c3d30928d 100644 --- a/app/components/ClippingPlanes.vue +++ b/app/components/ClippingPlanes.vue @@ -246,7 +246,6 @@ onBeforeUnmount(cleanupLocalWidget); v-model="targetAllVisible" data-testid="targetAllVisibleSwitch" label="Apply to all visible datasets" - color="primary" density="compact" hide-details class="mb-2 text-caption" @@ -275,7 +274,6 @@ onBeforeUnmount(cleanupLocalWidget); v-model="sliceEnabled" data-testid="sliceSwitch" label="Slice" - color="primary" density="compact" hide-details class="mb-2 text-caption" diff --git a/app/components/FactorFilterPanel.vue b/app/components/FactorFilterPanel.vue index 24b30757f..81c2f6ac1 100644 --- a/app/components/FactorFilterPanel.vue +++ b/app/components/FactorFilterPanel.vue @@ -136,7 +136,6 @@ watch( v-model="targetAllVisible" :data-testid="`${testIdPrefix}TargetAllVisibleSwitch`" label="Apply to all visible datasets" - color="primary" density="compact" hide-details class="mb-2 text-caption" diff --git a/app/components/Ruler.vue b/app/components/Ruler.vue index aad33ad97..69d1a46d3 100644 --- a/app/components/Ruler.vue +++ b/app/components/Ruler.vue @@ -70,7 +70,6 @@ async function applyManualCoords(): Promise { v-model="hybridViewerStore.ruler_snap" data-testid="rulerSnapToggle" label="Snap to vertex" - color="primary" density="compact" hide-details class="mb-4" diff --git a/app/components/Viewer/Basemap/CropOptions.vue b/app/components/Viewer/Basemap/CropOptions.vue index 0980b969b..7acc2413c 100644 --- a/app/components/Viewer/Basemap/CropOptions.vue +++ b/app/components/Viewer/Basemap/CropOptions.vue @@ -39,7 +39,6 @@ const indeterminate = computed(() => new Set(cropped.value).size > 1); label="Crop to data" data-testid="basemapCrop" density="compact" - color="primary" hide-details class="px-1" @update:model-value="(value) => basemapStore.setCrop(Boolean(value), mapStyles)" diff --git a/nuxt.config.ts b/nuxt.config.ts index 06425698b..e97a7b476 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -143,6 +143,10 @@ export default defineNuxtConfig({ VTooltip: { openDelay: 500, }, + // Without a color, the on track keeps the off track color. The apps can override it (Vease: success). + VSwitch: { + color: "primary", + }, }, }, }, From 47ffd93ec7f89c2730d29c10d82190e9df8d815c Mon Sep 17 00:00:00 2001 From: Tao Schiro Date: Thu, 3 Dec 2026 11:24:14 +0100 Subject: [PATCH 2/2] fix(Screenshot): one switch per row so their labels do not wrap Refs Geode-solutions/Vease#943 --- app/components/Screenshot.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Screenshot.vue b/app/components/Screenshot.vue index 1710eab63..06d4c3dd9 100644 --- a/app/components/Screenshot.vue +++ b/app/components/Screenshot.vue @@ -306,8 +306,8 @@ function handleClose(): void { - - + + - +