make window opacity and window tile gap size pointers so the value gets sent if it is zero

This commit is contained in:
Evan Simkowitz 2024-09-05 11:19:52 -07:00
parent 3e0ca6b41e
commit 779d2d35b7
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

View File

@ -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;
};

View File

@ -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"`