diff --git a/frontend/types/gotypes.d.ts b/frontend/types/gotypes.d.ts index 745a29ab2..3013f3de0 100644 --- a/frontend/types/gotypes.d.ts +++ b/frontend/types/gotypes.d.ts @@ -416,7 +416,7 @@ declare global { "window:opacity"?: number; "window:bgcolor"?: string; "window:reducedmotion"?: boolean; - "window:tilegapsize": number; + "window:tilegapsize"?: number; "telemetry:*"?: boolean; "telemetry:enabled"?: boolean; }; diff --git a/pkg/wconfig/settingsconfig.go b/pkg/wconfig/settingsconfig.go index c30e13b72..88a04f0c7 100644 --- a/pkg/wconfig/settingsconfig.go +++ b/pkg/wconfig/settingsconfig.go @@ -68,13 +68,13 @@ type SettingsType struct { WidgetClear bool `json:"widget:*,omitempty"` WidgetShowHelp bool `json:"widget:showhelp,omitempty"` - WindowClear bool `json:"window:*,omitempty"` - WindowTransparent bool `json:"window:transparent,omitempty"` - WindowBlur bool `json:"window:blur,omitempty"` - WindowOpacity float64 `json:"window:opacity,omitempty"` - WindowBgColor string `json:"window:bgcolor,omitempty"` - WindowReducedMotion bool `json:"window:reducedmotion,omitempty"` - WindowTileGapSize int8 `json:"window:tilegapsize"` + WindowClear bool `json:"window:*,omitempty"` + WindowTransparent bool `json:"window:transparent,omitempty"` + WindowBlur bool `json:"window:blur,omitempty"` + WindowOpacity *float64 `json:"window:opacity,omitempty"` + WindowBgColor string `json:"window:bgcolor,omitempty"` + WindowReducedMotion bool `json:"window:reducedmotion,omitempty"` + WindowTileGapSize *int8 `json:"window:tilegapsize,omitempty"` TelemetryClear bool `json:"telemetry:*,omitempty"` TelemetryEnabled bool `json:"telemetry:enabled,omitempty"`