feat(app): set_context_title and set_header_title methods for ApplicationExt and Core
This commit is contained in:
parent
d620531e7e
commit
a04c74f240
2 changed files with 20 additions and 0 deletions
|
|
@ -229,6 +229,16 @@ pub trait ApplicationExt: Application {
|
|||
/// Get the title of the main window.
|
||||
fn title(&self) -> &str;
|
||||
|
||||
/// Set the context drawer title.
|
||||
fn set_context_title(&mut self, title: String) {
|
||||
self.core_mut().set_context_title(title);
|
||||
}
|
||||
|
||||
/// Set the header bar title.
|
||||
fn set_header_title(&mut self, title: String) {
|
||||
self.core_mut().set_header_title(title);
|
||||
}
|
||||
|
||||
/// Set the title of the main window.
|
||||
fn set_title(&mut self, title: String) -> iced::Command<Message<Self::Message>>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue