Skip to content

Modern Docker Management, Designed for Everyone

feat: make glass ui the default theme and ui (#1518)

Kyle Mendell73781369e21a
diff --git a/backend/internal/models/settings.go b/backend/internal/models/settings.go
index a85031217..8e2330807 100644
--- a/backend/internal/models/settings.go
+++ b/backend/internal/models/settings.go
@@ -94,7 +94,6 @@ type Settings struct {
MobileNavigationMode SettingVariable `key:"mobileNavigationMode,public,local" meta:"label=Mobile Navigation Mode;type=select;keywords=mode,style,type,floating,docked,position,layout,design,appearance,bottom;category=appearance;description=Choose between floating or docked navigation on mobile" catmeta:"id=appearance;title=Appearance;icon=appearance;url=/settings/appearance;description=Customize navigation, theme, and interface behavior"`
MobileNavigationShowLabels SettingVariable `key:"mobileNavigationShowLabels,public,local" meta:"label=Show Navigation Labels;type=boolean;keywords=labels,text,icons,display,show,hide,names,captions,titles,visible,toggle;category=appearance;description=Display text labels alongside navigation icons"`
SidebarHoverExpansion SettingVariable `key:"sidebarHoverExpansion,public,local" meta:"label=Sidebar Hover Expansion;type=boolean;keywords=sidebar,hover,expansion,expand,desktop,mouse,over,collapsed,collapsible,icon,labels,text,preview,peek,tooltip,overlay,temporary,quick,access,navigation,menu,items,submenu,nested;category=appearance;description=Expand sidebar on hover in desktop mode"`
- GlassEffectEnabled SettingVariable `key:"glassEffectEnabled,public,local" meta:"label=Glass Effect;type=boolean;keywords=glass,glassmorphism,blur,backdrop,frosted,effect,gradient,ambient,design,ui,appearance,modern,visual,style,theme,transparency,translucent;category=appearance;description=Enable modern glassmorphism design with blur, gradients, and ambient effects"`
// Notifications category (placeholder for category metadata only - actual settings managed via notification service)
NotificationsCategoryPlaceholder SettingVariable `key:"notificationsCategory,internal" meta:"label=Notifications;type=internal;keywords=notifications,alerts,email,discord,webhooks,events,messages;category=notifications;description=Configure notification providers and alerts" catmeta:"id=notifications;title=Notifications;icon=bell;url=/settings/notifications;description=Configure email and Discord notifications for container and image updates"`
diff --git a/backend/internal/services/settings_service.go b/backend/internal/services/settings_service.go
index 2c9319e5d..5171ae2fe 100644
--- a/backend/internal/services/settings_service.go
+++ b/backend/internal/services/settings_service.go
@@ -124,7 +124,6 @@ func (s *SettingsService) getDefaultSettings() *models.Settings {
MobileNavigationMode: models.SettingVariable{Value: "floating"},
MobileNavigationShowLabels: models.SettingVariable{Value: "true"},
SidebarHoverExpansion: models.SettingVariable{Value: "true"},
- GlassEffectEnabled: models.SettingVariable{Value: "true"},
AccentColor: models.SettingVariable{Value: "oklch(0.606 0.25 292.717)"},
MaxImageUploadSize: models.SettingVariable{Value: "500"},
EnvironmentHealthInterval: models.SettingVariable{Value: "2"},
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index 1c1aa7aa6..8d30b9ba8 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -1735,12 +1735,6 @@
"notifications_shoutrrr_providers_title": "Notification Providers",
"notifications_shoutrrr_tab_email": "Email",
"notifications_shoutrrr_tab_discord": "Discord",
- "glass_effect_title": "Glass Effect (Preview)",
- "glass_effect_description": "Enable modern glassmorphism design with blur, gradients, and ambient effects",
- "glass_effect_label": "Glassmorphism UI",
- "glass_effect_enabled": "Glass effects enabled",
- "glass_effect_disabled": "Glass effects disabled (classic design)",
- "glass_effect_description_long": "When enabled, the interface uses frosted glass effects with backdrop blur and subtle gradients. When disabled, the interface uses solid colors and traditional shadows for a classic design. The glass design is in preview, and is subject to change.",
"first_login_title": "Change Default Password",
"first_login_description": "For security reasons, you must change the default password before continuing.",
"first_login_current_password": "Current Password",
diff --git a/frontend/src/app.css b/frontend/src/app.css
index b7c5d7a72..2b5341bfa 100644
--- a/frontend/src/app.css
+++ b/frontend/src/app.css
@@ -172,101 +172,6 @@
}
}
-body:not(.glass-enabled) {
- --card: var(--bg-surface);
- --card-foreground: var(--foreground);
- --sidebar: var(--bg-surface);
- --popover: var(--bg-surface);
-
- &:where(.dark, .dark *) {
- --input: oklch(0.25 0.006 285.885);
- }
-
- &::before {
- display: none;
- }
-
- &::after {
- opacity: 0.015;
- }
-
- .bubble {
- background: var(--bg-surface) !important;
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
- }
-
- .bubble-shadow,
- .bubble-shadow-lg {
- box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
- }
-
- .hover-lift:hover {
- transform: none !important;
- }
-
- .bubble-outline {
- background: var(--bg-surface) !important;
- border: 1px solid var(--border) !important;
- }
-
- .blob-floating::before {
- display: none;
- }
-
- input[data-slot='input'],
- textarea[data-slot='textarea'],
- [data-slot='select-trigger'] {
- background: var(--input) !important;
- border: 1px solid var(--border) !important;
- }
-
- input[data-slot='input']:focus-visible,
- textarea[data-slot='textarea']:focus-visible,
- [data-slot='select-trigger']:focus-visible {
- background: var(--background) !important;
- border-color: var(--ring) !important;
- box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2) !important;
- outline: none !important;
- }
-
- [data-sidebar='sidebar'] {
- background: var(--bg-surface) !important;
- backdrop-filter: none !important;
- }
-
- [class*='backdrop-blur'] {
- -webkit-backdrop-filter: none !important;
- backdrop-filter: none !important;
- }
-
- [data-slot='dialog-content'],
- [data-slot='sheet-content'],
- [data-slot='popover-content'],
- [data-slot='dropdown-menu-content'],
- [data-slot='select-content'] {
- background: var(--bg-surface) !important;
- border: 1px solid var(--border) !important;
- }
-
- [data-slot='card'] {
- background: var(--bg-surface) !important;
- border: 1px solid var(--border) !important;
- }
-
- [class*='bg-background/'],
- [class*='bg-card/'],
- [class*='bg-popover/'],
- [class*='bg-muted/'],
- [class*='bg-secondary/'],
- [class*='bg-accent/'] {
- background-color: var(--bg-surface) !important;
- }
-
- [class*='bg-input/'] {
- background-color: var(--input) !important;
- }
-}
-
body.glass-enabled {
background-color: var(--background);
}
diff --git a/frontend/src/app.html b/frontend/src/app.html
index 198b50d4a..5c7a81997 100644
--- a/frontend/src/app.html
+++ b/frontend/src/app.html
@@ -12,7 +12,7 @@
<meta name="theme-color" content="oklch(0.141 0.005 285.823)" media="(prefers-color-scheme: dark)" />
%sveltekit.head%
</head>
- <body data-sveltekit-preload-data="hover">
+ <body data-sveltekit-preload-data="hover" class="glass-enabled">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
diff --git a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
index 0865eefac..f9d818fa8 100644
--- a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
+++ b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
@@ -3,7 +3,6 @@
import { getEffectiveNavigationSettings } from '$lib/utils/navigation.utils';
import { IsMobile } from '$lib/hooks/is-mobile.svelte.js';
import { IsTablet } from '$lib/hooks/is-tablet.svelte.js';
- import settingsStore from '$lib/stores/config-store';
import { cn } from '$lib/utils';
interface Props {
@@ -17,7 +16,6 @@
const isMobile = new IsMobile();
const isTablet = new IsTablet();
- const isGlassEnabled = $derived.by(() => $settingsStore?.glassEffectEnabled ?? false);
const navigationSettings = $derived(getEffectiveNavigationSettings());
const navigationMode = $derived(navigationSettings.mode);
const scrollToHideEnabled = $derived(navigationSettings.scrollToHide);
@@ -105,7 +103,7 @@
size="lg"
onclick={onReset}
disabled={isLoading}
- class={cn('size-14 rounded-full border-2 shadow-lg', isGlassEnabled ? 'bg-background/80 backdrop-blur-md' : 'bg-card')}
+ class={cn('size-14 rounded-full border-2 shadow-lg', 'bg-background/80 backdrop-blur-md')}
showLabel={false}
/>
{/if}
diff --git a/frontend/src/lib/types/settings.type.ts b/frontend/src/lib/types/settings.type.ts
index 16993137a..a6159ea2a 100644
--- a/frontend/src/lib/types/settings.type.ts
+++ b/frontend/src/lib/types/settings.type.ts
@@ -42,8 +42,6 @@ export type Settings = {
mobileNavigationShowLabels: boolean;
sidebarHoverExpansion: boolean;
- glassEffectEnabled: boolean;
-
dockerApiTimeout: number;
dockerImagePullTimeout: number;
gitOperationTimeout: number;
diff --git a/frontend/src/lib/utils/settings.util.ts b/frontend/src/lib/utils/settings.util.ts
index a9fb970b9..69d286c99 100644
--- a/frontend/src/lib/utils/settings.util.ts
+++ b/frontend/src/lib/utils/settings.util.ts
@@ -3,15 +3,13 @@ export type LocalSettings = {
mobileNavigationMode: string;
mobileNavigationShowLabels: boolean;
sidebarHoverExpansion: boolean;
- glassEffectEnabled: boolean;
};
const LOCAL_SETTING_KEYS = new Set([
'accentColor',
'mobileNavigationMode',
'mobileNavigationShowLabels',
- 'sidebarHoverExpansion',
- 'glassEffectEnabled'
+ 'sidebarHoverExpansion'
]);
export function isLocalSetting(key: string): boolean {
diff --git a/frontend/src/routes/(app)/settings/+layout.svelte b/frontend/src/routes/(app)/settings/+layout.svelte
index ebbd26a0a..ce84a578b 100644
--- a/frontend/src/routes/(app)/settings/+layout.svelte
+++ b/frontend/src/routes/(app)/settings/+layout.svelte
@@ -28,7 +28,6 @@
const isMobile = new IsMobile();
const isTablet = new IsTablet();
const isReadOnly = $derived.by(() => $settingsStore.uiConfigDisabled);
- const isGlassEnabled = $derived.by(() => $settingsStore?.glassEffectEnabled ?? false);
const navigationSettings = $derived(getEffectiveNavigationSettings());
const navigationMode = $derived(navigationSettings.mode);
const scrollToHideEnabled = $derived(navigationSettings.scrollToHide);
@@ -182,12 +181,7 @@
<div class="flex h-full min-h-full flex-col md:flex-row">
<!-- Desktop Sidebar -->
- <aside
- class={cn(
- 'relative hidden w-64 shrink-0 self-stretch md:block md:h-full md:min-h-full',
- isGlassEnabled ? 'backdrop-blur-sm' : 'bg-transparent'
- )}
- >
+ <aside class={cn('relative hidden w-64 shrink-0 self-stretch md:block md:h-full md:min-h-full', 'backdrop-blur-sm')}>
<div aria-hidden="true" class="bg-border/60 pointer-events-none absolute top-4 right-0 bottom-4 w-px"></div>
<div class="sticky top-0 px-3 py-4">
<h2 class="mb-4 px-4 text-lg font-semibold tracking-tight">{m.settings_title()}</h2>
@@ -215,7 +209,7 @@
<div
class={cn(
'sticky top-4 z-5 mx-4 mb-6 rounded-lg border shadow-lg transition-all duration-200 md:hidden',
- isGlassEnabled ? 'bg-background/95 backdrop-blur-md' : 'bg-card'
+ 'bg-background/95 backdrop-blur-md'
)}
>
<div class="px-4 py-3">
diff --git a/frontend/src/routes/(app)/settings/appearance/+page.svelte b/frontend/src/routes/(app)/settings/appearance/+page.svelte
index 4e12e1e41..4cbc4f261 100644
--- a/frontend/src/routes/(app)/settings/appearance/+page.svelte
+++ b/frontend/src/routes/(app)/settings/appearance/+page.svelte
@@ -25,7 +25,6 @@
mobileNavigationShowLabels: z.boolean(),
sidebarHoverExpansion: z.boolean(),
accentColor: z.string(),
- glassEffectEnabled: z.boolean(),
enableGravatar: z.boolean()
});
@@ -136,31 +135,6 @@
</div>
</div>
- <Separator />
-
- <!-- Glass Effect -->
- <div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
- <div>
- <Label class="text-base">{m.glass_effect_title()}</Label>
- <p class="text-muted-foreground mt-1 text-sm">{m.glass_effect_description()}</p>
- </div>
- <div class="flex items-center gap-2">
- <Switch
- id="glassEffectEnabled"
- bind:checked={$formInputs.glassEffectEnabled.value}
- disabled={isReadOnly}
- onCheckedChange={(checked) => {
- $formInputs.glassEffectEnabled.value = checked;
- }}
- />
- <Label for="glassEffectEnabled" class="font-normal">
- {$formInputs.glassEffectEnabled.value ? m.glass_effect_enabled() : m.glass_effect_disabled()}
- </Label>
- </div>
- </div>
-
- <Separator />
-
<!-- User Avatars -->
<div class="grid gap-4 md:grid-cols-[1fr_1.5fr] md:gap-8">
<div>
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 996e1e519..05e595aa5 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -13,7 +13,6 @@
import { IsTablet } from '$lib/hooks/is-tablet.svelte.js';
import { browser, dev } from '$app/environment';
import { onMount } from 'svelte';
- import settingsStore from '$lib/stores/config-store';
import FirstLoginPasswordDialog from '$lib/components/dialogs/first-login-password-dialog.svelte';
import { invalidateAll } from '$app/navigation';
import { cn } from '$lib/utils';
@@ -35,23 +34,6 @@
});
const settings = $derived(data.settings);
- let isGlassEnabled = $state(false);
-
- $effect(() => {
- isGlassEnabled = settings?.glassEffectEnabled ?? false;
- });
-
- $effect(() => {
- if (browser && settings) {
- const enabled = $settingsStore?.glassEffectEnabled ?? settings.glassEffectEnabled ?? false;
- isGlassEnabled = enabled;
- if (enabled) {
- document.body.classList.add('glass-enabled');
- } else {
- document.body.classList.remove('glass-enabled');
- }
- }
- });
const isMobile = new IsMobile();
const isTablet = new IsTablet();
@@ -84,7 +66,7 @@
<svelte:head><title>{pageTitle}</title></svelte:head>
-<div class={cn('flex min-h-dvh flex-col', isGlassEnabled ? 'bg-transparent' : 'bg-background')}>
+<div class={cn('flex min-h-dvh flex-col', 'bg-transparent')}>
{#if !settings && data.user}
<Error message={m.error_occurred()} showButton={true} />
{:else}
diff --git a/types/settings/settings.go b/types/settings/settings.go
index 180ec0cd8..ae904a991 100644
--- a/types/settings/settings.go
+++ b/types/settings/settings.go
@@ -221,9 +221,4 @@ type Update struct {
//
// Required: false
SidebarHoverExpansion *string `json:"sidebarHoverExpansion,omitempty"`
-
- // GlassEffectEnabled indicates if glass morphism effect is enabled in the UI.
- //
- // Required: false
- GlassEffectEnabled *string `json:"glassEffectEnabled,omitempty"`
}