1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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);
};
|