diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 21:22:27 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-01 21:22:27 +0200 |
| commit | 49dd298f76b29e03f5c190e4fe5023c6036f102e (patch) | |
| tree | 71559568d3afb5e2d00b1527d0d74e671f22e969 /src/widgets | |
| parent | d9ffe5c43ee3ee4497ee88af6212fe868761e1dc (diff) | |
use EvalTo for all sheetview config values
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/sheetview/mod.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/widgets/sheetview/mod.rs b/src/widgets/sheetview/mod.rs index fa11d1d..1998fca 100644 --- a/src/widgets/sheetview/mod.rs +++ b/src/widgets/sheetview/mod.rs @@ -425,9 +425,17 @@ impl Widget for &mut SheetView { let cell = cell_ref.value().to_string() + " "; let line = if (cell_pos_y, cell_pos_x) == self.cursor { - theme.cursor.apply(cell.to_line()) + theme + .cursor + .get(cell_ref, &lua::get()) + .unwrap_or(style::Style::new()) + .apply(cell.to_line()) } else if self.is_in_selection(cell_pos_y, cell_pos_x) { - theme.selection.apply(cell.to_line()) + theme + .selection + .get(cell_ref, &lua::get()) + .unwrap_or(style::Style::new()) + .apply(cell.to_line()) } else { theme .cell |