feat!(app): ContextDrawer return type for context_drawer method
This commit is contained in:
parent
aaadf7199e
commit
a355a049d9
7 changed files with 115 additions and 68 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue