summaryrefslogtreecommitdiff
path: root/src/types/background_type.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
committerGravatar Uko Kokņevičs2024-07-20 17:22:25 +0300
commitc70ffd095a6de5cd5b872796a0d82a8c5afc1511 (patch)
tree56183274b05a294e357bad4d06b523472a1c4a4a /src/types/background_type.zig
downloadukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.gz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.tar.xz
ukkobot-c70ffd095a6de5cd5b872796a0d82a8c5afc1511.zip
Initial commit
Diffstat (limited to 'src/types/background_type.zig')
-rw-r--r--src/types/background_type.zig30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/types/background_type.zig b/src/types/background_type.zig
new file mode 100644
index 0000000..220465a
--- /dev/null
+++ b/src/types/background_type.zig
@@ -0,0 +1,30 @@
1const json = @import("../json.zig");
2
3const BackgroundFill = @import("background_fill.zig").BackgroundFill;
4const Document = @import("Document.zig");
5
6pub const BackgroundType = union(enum) {
7 fill: struct {
8 fill: BackgroundFill,
9 dark_theme_dimming: u8,
10 },
11 wallpaper: struct {
12 document: Document,
13 dark_theme_dimming: u8,
14 is_blurred: bool = false,
15 is_moving: bool = false,
16 },
17 pattern: struct {
18 document: Document,
19 fill: BackgroundFill,
20 intensity: u8,
21 is_inverted: bool = false,
22 is_moving: bool = false,
23 },
24 chat_theme: struct {
25 theme_name: []const u8,
26 },
27
28 pub const jsonParse = json.makeJsonParse(BackgroundType);
29 pub const jsonParseFromValue = json.makeJsonParseFromValue(BackgroundType);
30};