diff options
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 |