From 6f7106fe0a00ff863c8498fb4dcf33a993fb8b01 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 02:17:51 +0000 Subject: [PATCH] Expose XFL filter highlight alpha --- crates/xfl/src/filters.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/xfl/src/filters.rs b/crates/xfl/src/filters.rs index aee250a38..4c8feb2d4 100644 --- a/crates/xfl/src/filters.rs +++ b/crates/xfl/src/filters.rs @@ -143,6 +143,10 @@ impl<'a, E: XflElement> Filter<'a, E> { self.element.attr("highlightColor").map(|_| shape::color(self.element, "highlightColor", "highlightAlpha")) } + pub fn highlight_alpha(&self) -> Option { + number(self.element, "highlightAlpha") + } + /// Native gradient entries, either direct children or one wrapper level below the filter. pub fn ramp_entries(&self) -> impl Iterator> + 'a { self.element