Add client feature to ensure full backwards compatibility with themes

This commit is contained in:
Andrew Kingston 2024-10-24 10:06:04 +01:00
parent 27d42a9bfe
commit 90fb36315f
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@
import { findComponent, findComponentPath } from "helpers/components"
import { isActive, goto } from "@roxi/routify"
import { ClientAppSkeleton } from "@budibase/frontend-core"
import { getThemeClassNames } from "@budibase/shared-core"
import { getThemeClassNames, ThemeClassPrefix } from "@budibase/shared-core"
let iframe
let layout
@ -48,7 +48,9 @@
layout,
screen,
selectedComponentId,
theme: $themeStore.theme,
theme: $appStore.clientFeatures.unifiedThemes
? $themeStore.theme
: `${ThemeClassPrefix}${$themeStore.theme}`,
customTheme: $themeStore.customTheme,
previewDevice: $previewStore.previewDevice,
messagePassing: $appStore.clientFeatures.messagePassing,

View File

@ -1,6 +1,7 @@
{
"features": {
"spectrumThemes": true,
"unifiedTheme": true,
"intelligentLoading": true,
"deviceAwareness": true,
"state": true,