diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-02 15:51:45 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-02 15:51:45 +0200 |
| commit | d1492a10cdaf714074d29ad3366ab9c169d95b75 (patch) | |
| tree | 4192aa6825479f56332b3cd40d56913e48b95222 /src/config/theme/style.rs | |
| parent | c920f258f6c9b0623a841b7c27561fa1d09cef72 (diff) | |
add bartheme and barstate to sheetview
Diffstat (limited to 'src/config/theme/style.rs')
| -rw-r--r-- | src/config/theme/style.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/theme/style.rs b/src/config/theme/style.rs index 87cd068..aadd73b 100644 --- a/src/config/theme/style.rs +++ b/src/config/theme/style.rs @@ -38,6 +38,10 @@ impl Style { S: Styled<Item = I>, I: Styled, { + s.set_style(self.style()) + } + + pub fn style(&self) -> ratatui::style::Style { let mut style = ratatui::style::Style::default(); if let Some(fg) = self.fg { @@ -60,7 +64,7 @@ impl Style { style = style.underlined() } - s.set_style(style) + style } } |