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:opacity"?: number;
"window:bgcolor"?: string; "window:bgcolor"?: string;
"window:reducedmotion"?: boolean; "window:reducedmotion"?: boolean;
"window:tilegapsize": number; "window:tilegapsize"?: number;
"telemetry:*"?: boolean; "telemetry:*"?: boolean;
"telemetry:enabled"?: boolean; "telemetry:enabled"?: boolean;
}; };

View File

@ -71,10 +71,10 @@ type SettingsType struct {
WindowClear bool `json:"window:*,omitempty"` WindowClear bool `json:"window:*,omitempty"`
WindowTransparent bool `json:"window:transparent,omitempty"` WindowTransparent bool `json:"window:transparent,omitempty"`
WindowBlur bool `json:"window:blur,omitempty"` WindowBlur bool `json:"window:blur,omitempty"`
WindowOpacity float64 `json:"window:opacity,omitempty"` WindowOpacity *float64 `json:"window:opacity,omitempty"`
WindowBgColor string `json:"window:bgcolor,omitempty"` WindowBgColor string `json:"window:bgcolor,omitempty"`
WindowReducedMotion bool `json:"window:reducedmotion,omitempty"` WindowReducedMotion bool `json:"window:reducedmotion,omitempty"`
WindowTileGapSize int8 `json:"window:tilegapsize"` WindowTileGapSize *int8 `json:"window:tilegapsize,omitempty"`
TelemetryClear bool `json:"telemetry:*,omitempty"` TelemetryClear bool `json:"telemetry:*,omitempty"`
TelemetryEnabled bool `json:"telemetry:enabled,omitempty"` TelemetryEnabled bool `json:"telemetry:enabled,omitempty"`