feat!(app): ContextDrawer return type for context_drawer method

This commit is contained in:
wiiznokes 2024-11-16 03:38:29 +01:00 committed by GitHub
parent aaadf7199e
commit a355a049d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 115 additions and 68 deletions

View file

@ -26,8 +26,6 @@ pub struct NavBar {
#[allow(clippy::struct_excessive_bools)]
#[derive(Clone)]
pub struct Window {
/// Label to display as context drawer title.
pub context_title: String,
/// Label to display as header bar title.
pub header_title: String,
pub use_template: bool,
@ -127,7 +125,6 @@ impl Default for Core {
})
.unwrap_or_default(),
window: Window {
context_title: String::new(),
header_title: String::new(),
use_template: true,
content_container: true,
@ -188,11 +185,6 @@ impl Core {
self.is_condensed_update();
}
/// Set context drawer header title
pub fn set_context_title(&mut self, title: String) {
self.window.context_title = title;
}
/// Set header bar title
pub fn set_header_title(&mut self, title: String) {
self.window.header_title = title;