Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

feat: add interfaceStyle watcher for dynamic glassmorphism class

Smaug673941a87727cb90
diff --git a/frontend/app/App.vue b/frontend/app/App.vue
index a25fc445..59b80ee0 100644
--- a/frontend/app/App.vue
+++ b/frontend/app/App.vue
@@ -16,6 +16,7 @@ const preferences = usePreferences();
const { setAppColor } = useAppColors();
const primaryColor = computed(() => preferences.get('primaryColor').value);
+const interfaceStyle = computed(() => preferences.get('style').value);
watch(
primaryColor,
@@ -24,6 +25,14 @@ watch(
},
{ immediate: true },
);
+
+watch(
+ interfaceStyle,
+ style => {
+ document.documentElement.classList.toggle('glassmorphism', style === 'glassmorphism');
+ },
+ { immediate: true },
+);
</script>
<style lang="scss">