Implement highlight current line, fixes #133

This commit is contained in:
Jeremy Soller 2024-02-20 09:45:19 -07:00
parent 22ec51b7e7
commit 803ef549d0
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
5 changed files with 151 additions and 78 deletions

View file

@ -258,7 +258,11 @@ pub fn menu_bar<'a>(
config.line_numbers,
Action::ToggleLineNumbers,
),
menu_checkbox(fl!("highlight-current-line"), false, Action::Todo),
menu_checkbox(
fl!("highlight-current-line"),
config.highlight_current_line,
Action::ToggleHighlightCurrentLine,
),
//TODO: menu_item(fl!("syntax-highlighting"), Action::Todo),
MenuTree::new(horizontal_rule(1)),
menu_item(fl!("menu-settings"), Action::ToggleSettingsPage),