feat: Port about window to adw::Dialog (Adw.Dialog)
Other Changes: Change window height to 294 to fit the HIG: https://developer.gnome.org/hig/guidelines/adaptive.html#small-size-handling Change adw features version in `Cargo.toml` from `v1_4` to `v1_5` to use the new dialog widget(s)
This commit is contained in:
parent
74482bf6b6
commit
b99575d8d0
4 changed files with 8 additions and 11 deletions
|
|
@ -207,13 +207,10 @@ impl LpApplication {
|
|||
}
|
||||
|
||||
pub async fn show_about(&self) {
|
||||
let about = about::window().await;
|
||||
let about = about::dialog().await;
|
||||
let window = self.active_window().unwrap();
|
||||
|
||||
if let Some(window) = self.active_window() {
|
||||
about.set_transient_for(Some(&window));
|
||||
}
|
||||
|
||||
about.present();
|
||||
about.present(&window);
|
||||
}
|
||||
|
||||
pub fn show_help(&self) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue