const json = @import("../json.zig"); const BackgroundFill = @import("background_fill.zig").BackgroundFill; const Document = @import("Document.zig"); pub const BackgroundType = union(enum) { fill: struct { fill: BackgroundFill, dark_theme_dimming: u8, }, wallpaper: struct { document: Document, dark_theme_dimming: u8, is_blurred: bool = false, is_moving: bool = false, }, pattern: struct { document: Document, fill: BackgroundFill, intensity: u8, is_inverted: bool = false, is_moving: bool = false, }, chat_theme: struct { theme_name: []const u8, }, pub const jsonParse = json.makeJsonParse(BackgroundType); pub const jsonParseFromValue = json.makeJsonParseFromValue(BackgroundType); };