summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/macos.zig b/src/macos.zig
index 13b8b332..17b1bf35 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -724,13 +724,6 @@ export fn pardes_window_opacity() u8 {
return st.core.settings.window_opacity;
}
-/// Public AppKit backdrop strength, independent of background paint opacity.
-export fn pardes_window_blur() u8 {
- pardes.turn.wake();
- defer pardes.turn.rest();
- return if (state) |st| st.core.settings.window_blur else 0;
-}
-
fn taglineFontPercent(core: ?*const pardes.Pardes) u8 {
return if (core) |p| p.settings.font.tagline_percent else pardes.config.gui_tagline_font_percent;
}
@@ -2549,7 +2542,6 @@ test "pardes.h declares every export the way it is defined" {
try expectSameAbi(@TypeOf(c.pardes_active_dirty), @TypeOf(pardes_active_dirty));
try expectSameAbi(@TypeOf(c.pardes_theme_bg), @TypeOf(pardes_theme_bg));
try expectSameAbi(@TypeOf(c.pardes_window_opacity), @TypeOf(pardes_window_opacity));
- try expectSameAbi(@TypeOf(c.pardes_window_blur), @TypeOf(pardes_window_blur));
}
test "pardes.h matches the Zig boundary" {
@@ -2868,20 +2860,3 @@ test "mac tag layer ABI preserves logical capacity and physical grip" {
try std.testing.expectEqual(encodeCell(.{}).len, canonical[10].len);
}
-test "mac window blur builtin reaches the ABI without changing opacity" {
- try std.testing.expectEqual(@as(u8, 0), pardes_window_blur());
- const gpa = std.testing.allocator;
- const core = try pardes.Pardes.init(gpa, .{ .tty_only = true, .cols = 8, .rows = 3 });
- defer core.deinit();
- state = .{ .gpa = gpa, .threaded = undefined, .io = std.testing.io, .core = core, .runtime = .{}, .config_arena = .init(gpa), .prompt_rcs = .{} };
- defer {
- state.?.config_arena.deinit();
- state = null;
- }
- try std.testing.expect(core.executeBuiltinLine(0, "WindowOpacity 71"));
- for ([_][]const u8{ "WindowBlur 0", "WindowBlur 40", "WindowBlur 100", "WindowBlur 101", "WindowBlur 0" }, [_]u8{ 0, 40, 100, 100, 0 }) |command, expected| {
- try std.testing.expect(core.executeBuiltinLine(0, command));
- try std.testing.expectEqual(expected, pardes_window_blur());
- try std.testing.expectEqual(@as(u8, 71), pardes_window_opacity());
- }
-}