Update libcosmic and adjust dialog size

This commit is contained in:
Jeremy Soller 2024-03-01 09:18:57 -07:00
parent 9cc1a0f16d
commit 0b8ca753b8
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
4 changed files with 10 additions and 31 deletions

View file

@ -294,14 +294,10 @@ impl App {
}
fn update_title(&mut self) -> Command<Message> {
let (header_title, window_title) = match self.tab_model.text(self.tab_model.active()) {
Some(tab_title) => (
tab_title.to_string(),
format!("{tab_title} — COSMIC File Manager"),
),
None => (String::new(), "COSMIC File Manager".to_string()),
let window_title = match self.tab_model.text(self.tab_model.active()) {
Some(tab_title) => format!("{tab_title}{}", fl!("cosmic-files")),
None => fl!("cosmic-files"),
};
self.set_header_title(header_title);
self.set_window_title(window_title, window::Id::MAIN)
}
@ -480,8 +476,7 @@ impl App {
..tab_config
})
})
.step(25u16)
.width(Length::Fixed(100.0)),
.step(25u16),
)
})
.add({
@ -499,8 +494,7 @@ impl App {
..tab_config
})
})
.step(25u16)
.width(Length::Fixed(100.0)),
.step(25u16),
)
})
.into(),

View file

@ -96,7 +96,7 @@ impl<M: Send + 'static> Dialog<M> {
settings.transparent = true;
//TODO: allow resize!
settings.size = Size::new(800.0, 600.0);
settings.size = Size::new(1024.0, 640.0);
settings.resizable = false;
#[cfg(target_os = "linux")]