gtk: unify Wayland and X11 platforms

This commit is contained in:
Leah Amelia Chen
2025-01-02 23:53:22 +08:00
committed by Mitchell Hashimoto
parent 6ef757a8f8
commit 03fee2ac33
8 changed files with 304 additions and 179 deletions

View File

@@ -5782,6 +5782,14 @@ pub const BackgroundBlur = union(enum) {
) catch return error.InvalidValue };
}
pub fn enabled(self: BackgroundBlur) bool {
return switch (self) {
.false => false,
.true => true,
.radius => |v| v > 0,
};
}
pub fn cval(self: BackgroundBlur) u8 {
return switch (self) {
.false => 0,