summaryrefslogtreecommitdiff
path: root/src/macos/pardes.h
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-16 14:46:16 -0300
committerGabriel Schneider <[email protected]>2026-09-16 14:46:16 -0300
commit01104e7c7e4bbe049303b8a0bc5dbf0e964543e7 (patch)
tree45a2196711de78d8d1e2db6cb5e5c51271676c2f /src/macos/pardes.h
parent08d89762a917631e3232634ce38f34a845a93c9c (diff)
downloadpardes-01104e7c7e4bbe049303b8a0bc5dbf0e964543e7.tar.gz
pardes-01104e7c7e4bbe049303b8a0bc5dbf0e964543e7.zip
Add macOS backdrop blur and preserve PDF ink opacity
Diffstat (limited to 'src/macos/pardes.h')
-rw-r--r--src/macos/pardes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macos/pardes.h b/src/macos/pardes.h
index a2e34f53..df3ba04f 100644
--- a/src/macos/pardes.h
+++ b/src/macos/pardes.h
@@ -262,6 +262,8 @@ uint32_t pardes_theme_bg(void);
// Read it once per pump beside pardes_theme_bg(): reading also acknowledges
// whatever `WindowOpacity` asked for. 100 is opaque and is the default.
uint8_t pardes_window_opacity(void);
+// Backdrop material strength, 0..100; zero disables blur. Not a pixel radius.
+uint8_t pardes_window_blur(void);
// Pane taglines use this percentage of the current body font size. It is the
// embedded default before init and the live core setting afterwards; the host
@@ -475,6 +477,8 @@ typedef struct {
uint32_t ih;
// iw * ih * 4 bytes, RGBA8, borrowed until the next pardes_frame
const uint8_t *rgba;
+ // PDF paper RGB; PARDES_COLOR_DEFAULT means an ordinary image.
+ uint32_t paper_bg;
} pardes_image_s;
// This frame's attachments, in paint order. Ask after pardes_frame; both are