Add pref to hide cursor when handwriting
This commit is contained in:
@ -10,6 +10,9 @@ pub struct Preferences {
|
||||
/// Enable high-contrast theme
|
||||
pub high_contrast: bool,
|
||||
|
||||
/// Hide the cursor when handwriting
|
||||
pub hide_handwriting_cursor: bool,
|
||||
|
||||
#[serde(skip)]
|
||||
has_applied_theme: bool,
|
||||
}
|
||||
@ -20,6 +23,7 @@ impl Default for Preferences {
|
||||
animations: true,
|
||||
high_contrast: false,
|
||||
has_applied_theme: false,
|
||||
hide_handwriting_cursor: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -67,6 +71,8 @@ impl Preferences {
|
||||
self.apply(ui.ctx());
|
||||
}
|
||||
|
||||
ui.toggle_value(&mut self.hide_handwriting_cursor, "Hide Handwriting Cursor");
|
||||
|
||||
egui::widgets::global_theme_preference_buttons(ui);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user