Update libcosmic and adjust dialog size
This commit is contained in:
parent
9cc1a0f16d
commit
0b8ca753b8
4 changed files with 10 additions and 31 deletions
16
src/app.rs
16
src/app.rs
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue