From ac0fcf34fb3e160dc76e21db14cd6148d586e4a2 Mon Sep 17 00:00:00 2001 From: Scott Schafer Date: Mon, 30 Jun 2025 11:39:59 -0600 Subject: [PATCH] fix: Add missing functions for setting stylesheet colors --- src/renderer/mod.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 0cc43d26..85bdf628 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -206,6 +206,24 @@ impl Renderer { self.stylesheet.none = style; self } + + /// Set the output style for [`AnnotationKind::Context`] + pub const fn context(mut self, style: Style) -> Self { + self.stylesheet.context = style; + self + } + + /// Set the output style for additions + pub const fn addition(mut self, style: Style) -> Self { + self.stylesheet.addition = style; + self + } + + /// Set the output style for removals + pub const fn removal(mut self, style: Style) -> Self { + self.stylesheet.removal = style; + self + } } impl Renderer {