ratatui_toolkit/widgets/code_diff/foundation/diff_config/methods/removed_fg.rs
1use ratatui::style::Color;
2
3use crate::widgets::code_diff::diff_config::DiffConfig;
4
5impl DiffConfig {
6 /// Sets the foreground color for removed lines.
7 ///
8 /// # Arguments
9 ///
10 /// * `color` - The foreground color to use
11 ///
12 /// # Returns
13 ///
14 /// Self for method chaining
15 ///
16 /// # Example
17 ///
18 /// ```rust
19 /// use ratatui::style::Color;
20 /// use ratatui_toolkit::code_diff::DiffConfig;
21 ///
22 /// let config = DiffConfig::new().removed_fg(Color::LightRed);
23 /// ```
24 pub fn removed_fg(mut self, color: Color) -> Self {
25 self.removed_fg = color;
26 self
27 }
28}