Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
bba52a5
feat(chrome_theme): let each app choose the theme of the floating chrome
SpliiT Nov 17, 2026
bd14ad3
feat(Loading): theme the loading screen with the app chrome
SpliiT Nov 17, 2026
c152d12
feat(viewer): use theme colors in the viewer chrome
SpliiT Nov 17, 2026
56ff557
feat(import): use theme colors in the import, file and feedback compo…
SpliiT Nov 17, 2026
cd41ee9
feat(Loading): class hook on the loading overlay
SpliiT Nov 18, 2026
e61286c
feat(OrientationCompass): compass dial drawn by the front
SpliiT Nov 18, 2026
494ce98
feat(OrientationGlobe): orientation axes on a globe crossed by horizo…
SpliiT Nov 18, 2026
957ac33
feat(orientation): opt-in front orientation overlay instead of the VT…
SpliiT Nov 18, 2026
351c30e
feat(ObjectTree): CSS hooks for the panel inset, radii, padding and t…
SpliiT Nov 18, 2026
786f86d
fix(OrientationGlobe): strata drawn off the DOM, the viewer keeps a s…
SpliiT Nov 18, 2026
c5203aa
Merge remote-tracking branch 'origin/next' into feat/brand_identity
SpliiT Nov 18, 2026
14eba52
fix(chrome_theme): read the chrome theme through Vue inject, usable f…
SpliiT Nov 19, 2026
68f662b
feat(orientation): compass letters face their direction, clicks that …
SpliiT Nov 19, 2026
b3a29b6
fix(tool-panel): above the orientation overlay
SpliiT Nov 19, 2026
31cf453
feat(object-tree): theme aware adaptive glass, as before the brand id…
SpliiT Nov 19, 2026
7ae492e
feat(icons)!: Phosphor icon set instead of MDI
SpliiT Nov 19, 2026
abb5836
fix(toolbar): video camera icon for the camera manager
SpliiT Nov 19, 2026
f478c63
Merge remote-tracking branch 'origin/next' into feat/brand_identity
SpliiT Nov 19, 2026
9bc63d3
Apply prepare changes
SpliiT Nov 19, 2026
5957493
fix(package): ship the Phosphor glyph check to the apps
SpliiT Nov 19, 2026
a0ce7d3
feat(scene): apps set the colors of a new scene
SpliiT Nov 20, 2026
bc2fde5
fix(orientation): globe strata drawn once per frame, backdrop under them
SpliiT Nov 20, 2026
1b6a442
fix(csv-preview): theme the dialog itself so its card keeps the dialo…
SpliiT Nov 20, 2026
fad6510
feat(orientation): axes globe drawn in the scene text color
SpliiT Nov 20, 2026
a0ca143
Apply prepare changes
SpliiT Nov 20, 2026
cae1a3c
fix(screenshot): draw the viewer orientation marker in scene screensh…
SpliiT Nov 20, 2026
f1c8ddd
fix(orientation): report a viewer that keeps its orientation marker
SpliiT Nov 20, 2026
ed824ca
fix(scene): give a reset viewer the app scene colors
SpliiT Nov 20, 2026
c90d07c
fix(orientation): the overlay follows the orientation marker visibility
SpliiT Nov 20, 2026
49883b0
fix(orientation): keep the marker choice with a viewer that has no no…
SpliiT Nov 20, 2026
9984438
fix(feedback): reload button in the accent color, apart from the banner
SpliiT Nov 20, 2026
47827a5
fix(orientation): globe hover backdrop in the strata tone
SpliiT Nov 20, 2026
fae8a5d
fix(scene): a viewer rejecting the app scene colors does not fail its…
SpliiT Nov 20, 2026
98bd591
fix(viewer): brightness fallback from the app scene background
SpliiT Nov 20, 2026
a29f66c
refactor(app): type the chrome theme option as a union
SpliiT Nov 20, 2026
1890901
test(unit): move the test helpers to the helpers folder
SpliiT Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { ChromeTheme } from "@ogw_front/composables/chrome_theme";
import type { SceneColors } from "@ogw_front/utils/default_styles";

declare module "nuxt/schema" {
interface AppConfigInput {
ogwFront?: {
chromeTheme?: ChromeTheme;
orientationOverlay?: boolean;
// Colors ({ red, green, blue, alpha }) of a new or reset scene, see plugins/scene_colors.ts
sceneColors?: SceneColors;
};
}
}

// Apps extending this layer override these values in their own app.config.ts.
// oxlint-disable-next-line import/no-default-export
export default defineAppConfig({
ogwFront: {
// Vuetify theme forced on the floating chrome (GlassCard panels, loading screen...).
// "inherit" makes it follow the app's current theme instead.
chromeTheme: "dark",
// Draw the orientation marker (axes or compass) as a front overlay instead of the viewer's VTK
// Marker, which is then hidden (see composables/orientation_overlay.ts).
orientationOverlay: false,
// Colors of a new or reset scene, the OpenGeodeWeb ones when not set (see utils/default_styles)
sceneColors: {},
},
});
11 changes: 11 additions & 0 deletions app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@
font-size: 1rem !important;
line-height: 1.5rem !important;
}

/* Turns an icon on itself (loading states), as the MDI mdi-spin did */
.ogw-spin {
animation: ogw-spin 2s infinite linear;
}

@keyframes ogw-spin {
to {
transform: rotate(360deg);
}
}
64 changes: 0 additions & 64 deletions app/assets/viewer_svgs/camera-bookmark.svg

This file was deleted.

11 changes: 9 additions & 2 deletions app/components/ActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,22 @@ const emit = defineEmits<Emits>();
icon
@click="emit('click', $event)"
>
<v-icon v-if="typeof icon === 'string' && icon.startsWith('mdi-')" :size="iconSize">{{
<v-icon v-if="typeof icon === 'string' && icon.startsWith('ph-')" :size="iconSize">{{
icon
}}</v-icon>
<v-img
v-else
:src="icon"
:height="iconSize"
:width="iconSize"
class="d-flex justify-center align-center"
class="d-flex justify-center align-center ogw-svg-icon"
/>
</v-btn>
</template>

<style scoped>
/* The viewer SVG icons are drawn in black; apps with a dark chrome can recolor them */
.ogw-svg-icon :deep(.v-img__img) {
filter: var(--ogw-svg-icon-filter, none);
}
</style>
1 change: 0 additions & 1 deletion app/components/CameraManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const show = computed<boolean>({
<v-btn
variant="text"
size="small"
color="white"
class="text-caption text-none"
data-testid="closeCameraManagerButton"
@click="handleClose"
Expand Down
12 changes: 6 additions & 6 deletions app/components/CameraManager/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function saveRename(): void {
:data-testid="`restoreCameraPosition${position.name}Button`"
@click="restorePosition(position.id!)"
>
<v-icon size="14">mdi-play</v-icon>
<v-icon size="14">ph-play</v-icon>
<v-tooltip activator="parent" location="top">Restore</v-tooltip>
</v-btn>
</template>
Expand All @@ -83,10 +83,10 @@ async function saveRename(): void {
icon
variant="text"
size="x-small"
color="grey-darken-1"
class="text-medium-emphasis"
@click="startEditing(position)"
>
<v-icon size="14">mdi-pencil</v-icon>
<v-icon size="14">ph-pencil-simple</v-icon>
<v-tooltip activator="parent" location="top">Rename</v-tooltip>
</v-btn>
<v-btn
Expand All @@ -96,15 +96,15 @@ async function saveRename(): void {
color="error"
@click="deletePosition(position.id!)"
>
<v-icon size="14">mdi-delete</v-icon>
<v-icon size="14">ph-trash</v-icon>
<v-tooltip activator="parent" location="top">Delete</v-tooltip>
</v-btn>
</div>
</template>
</v-list-item>
</v-list>
<div v-else class="text-center text-grey-lighten-1 py-4 italic text-caption">
<v-icon size="32" class="mb-1 d-block mx-auto opacity-20">mdi-camera-off</v-icon>
<div v-else class="text-center text-medium-emphasis py-4 italic text-caption">
<v-icon size="32" class="mb-1 d-block mx-auto opacity-20">ph-camera-slash</v-icon>
No saved positions yet.
</div>
</template>
Expand Down
19 changes: 12 additions & 7 deletions app/components/CameraOrientation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@ watch(hoveredFace, (newFace, oldFace) => {
class="pa-0 overflow-hidden position-relative"
style="
height: 220px;
background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
background: radial-gradient(
circle at center,
rgba(var(--v-theme-on-surface), 0.05),
transparent 70%
);
"
>
<svg class="position-absolute fill-height w-100" style="pointer-events: none">
Expand All @@ -204,10 +208,11 @@ watch(hoveredFace, (newFace, oldFace) => {
y1="50%"
:x2="orientation.position.left"
:y2="orientation.position.top"
:stroke="hoveredFace === orientation.face ? 'white' : 'rgba(255,255,255,0.1)'"
stroke="currentColor"
:stroke-opacity="hoveredFace === orientation.face ? 1 : 0.1"
:stroke-width="hoveredFace === orientation.face ? 2 : 1"
class="transition-all"
style="filter: drop-shadow(0 0 3px white)"
style="filter: drop-shadow(0 0 3px currentColor)"
/>
</svg>

Expand Down Expand Up @@ -272,15 +277,15 @@ watch(hoveredFace, (newFace, oldFace) => {
<style scoped>
.satellite-node {
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.2) !important;
background: rgba(var(--v-theme-background), 0.4) !important;
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)) !important;
transition: all 0.2s ease;
}
.satellite-node:hover {
transform: translate(-50%, -50%) scale(1.1);
border-color: white !important;
background: rgba(255, 255, 255, 0.1) !important;
border-color: rgb(var(--v-theme-primary)) !important;
background: rgba(var(--v-theme-primary), 0.12) !important;
}
.transition-all {
transition: all 0.4s ease;
Expand Down
20 changes: 20 additions & 0 deletions app/components/ChromeTheme.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup lang="ts">
import { useChromeTheme } from "@ogw_front/composables/chrome_theme";

const chromeTheme = useChromeTheme();
</script>

<template>
<!-- Applies the app's chrome theme (see composables/chrome_theme.ts) to its content, both to the
Vuetify components and to the CSS theme variables; display: contents keeps it out of the layout. -->
<v-theme-provider :theme="chromeTheme" with-background class="ogw-chrome-theme">
<slot />
</v-theme-provider>
</template>

<style scoped>
.ogw-chrome-theme {
display: contents;
background: transparent !important;
}
</style>
5 changes: 2 additions & 3 deletions app/components/ClippingPlaneCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const emit = defineEmits<Emits>();
<v-col cols="auto">
<v-btn
data-testid="removePlaneButton"
icon="mdi-trash-can-outline"
icon="ph-trash"
size="x-small"
variant="text"
color="error"
Expand All @@ -59,7 +59,6 @@ const emit = defineEmits<Emits>();
:max="1"
:step="0.05"
:color="getPlaneCssColor(index)"
track-color="grey-lighten-2"
density="compact"
hide-details
/>
Expand Down Expand Up @@ -104,7 +103,7 @@ const emit = defineEmits<Emits>();
size="x-small"
variant="text"
color="primary"
prepend-icon="mdi-swap-horizontal"
prepend-icon="ph-arrows-left-right"
class="text-none text-caption px-1"
@click="emit('flipNormal')"
>
Expand Down
4 changes: 2 additions & 2 deletions app/components/ClippingPlanes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ onBeforeUnmount(cleanupLocalWidget);
size="x-small"
variant="tonal"
color="primary"
icon="mdi-plus"
icon="ph-plus"
@click="addSlice"
/>
</v-col>
Expand All @@ -314,7 +314,7 @@ onBeforeUnmount(cleanupLocalWidget);
size="x-small"
variant="tonal"
color="primary"
icon="mdi-plus"
icon="ph-plus"
@click="addPlane"
/>
</v-col>
Expand Down
4 changes: 2 additions & 2 deletions app/components/CrsSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ onMounted(async () => {
<v-text-field
v-model="search"
data-testid="crsSearchInput"
:append-icon="compact ? undefined : 'mdi-magnify'"
:prepend-inner-icon="compact ? 'mdi-magnify' : undefined"
:append-icon="compact ? undefined : 'ph-magnifying-glass'"
:prepend-inner-icon="compact ? 'ph-magnifying-glass' : undefined"
label="Search"
single-line
hide-details
Expand Down
28 changes: 12 additions & 16 deletions app/components/DeleteDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,26 @@ const emit = defineEmits<Emits>();
<template>
<v-dialog :model-value="show" @update:model-value="emit('update:show', $event)" max-width="400">
<GlassCard v-if="item" variant="panel" padding="pa-8">
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center text-white">
<v-icon icon="mdi-trash-can-outline" class="mr-3 text-h4" color="error"></v-icon>
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center">
<v-icon icon="ph-trash" class="mr-3 text-h4" color="error"></v-icon>
Delete Item
</v-card-title>

<v-card-text class="pa-0 mt-4 text-white opacity-80">
<v-card-text class="pa-0 mt-4 opacity-80">
Are you sure you want to delete this item?
<div
class="bg-white-opacity-5 rounded-lg pa-4 my-6 font-weight-bold border-thin text-center"
>
<div class="bg-surface-light rounded-lg pa-4 my-6 font-weight-bold border-thin text-center">
{{ item.name }}
</div>
</v-card-text>

<v-card-actions class="px-0 pb-0">
<v-btn
variant="text"
color="white"
size="large"
@click="emit('update:show', false)"
class="text-none rounded-lg"
>
<v-icon start>mdi-close-circle-outline</v-icon>
<v-icon start>ph-x-circle</v-icon>
Cancel
</v-btn>

Expand All @@ -61,32 +58,31 @@ const emit = defineEmits<Emits>();
class="text-none rounded-lg font-weight-bold"
elevation="4"
>
<v-icon start>mdi-trash-can-outline</v-icon>
<v-icon start>ph-trash</v-icon>
Delete
</v-btn>
</v-card-actions>
</GlassCard>

<GlassCard v-else variant="panel" padding="pa-8">
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center text-white">
<v-icon icon="mdi-alert-circle-outline" class="mr-3 text-h4" color="error"></v-icon>
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center">
<v-icon icon="ph-warning-circle" class="mr-3 text-h4" color="error"></v-icon>
Delete Items
</v-card-title>

<v-card-text class="pa-0 mt-4 text-white opacity-80">
<v-card-text class="pa-0 mt-4 opacity-80">
Are you sure you want to delete
<strong class="text-white">{{ selectedCount }}</strong> items?
<strong>{{ selectedCount }}</strong> items?
</v-card-text>

<v-card-actions class="px-0 pb-0 mt-8">
<v-btn
variant="text"
color="white"
size="large"
@click="emit('update:show', false)"
class="text-none rounded-lg"
>
<v-icon start>mdi-close-circle-outline</v-icon>
<v-icon start>ph-x-circle</v-icon>
Cancel
</v-btn>

Expand All @@ -101,7 +97,7 @@ const emit = defineEmits<Emits>();
class="text-none rounded-lg font-weight-bold"
elevation="4"
>
<v-icon start>mdi-trash-can-outline</v-icon>
<v-icon start>ph-trash</v-icon>
Delete All
</v-btn>
</v-card-actions>
Expand Down
Loading
Loading