Update to new libcosmic
This commit is contained in:
parent
c393cca602
commit
62df7291ad
3 changed files with 189 additions and 222 deletions
387
Cargo.lock
generated
387
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
20
Cargo.toml
20
Cargo.toml
|
|
@ -6,10 +6,11 @@ edition = "2021"
|
|||
license = "GPL-3.0-only"
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.9"
|
||||
fontdb = "0.9"
|
||||
lazy_static = "1.4"
|
||||
log = "0.4"
|
||||
env_logger = "0.10.0"
|
||||
fontdb = "0.15.0"
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.20"
|
||||
rfd = "0.12.0"
|
||||
|
||||
[dependencies.cosmic-text]
|
||||
git = "https://github.com/pop-os/cosmic-text"
|
||||
|
|
@ -17,18 +18,7 @@ features = ["syntect"]
|
|||
|
||||
[dependencies.libcosmic]
|
||||
git = "https://github.com/pop-os/libcosmic"
|
||||
branch = "theme-dark-light-switching"
|
||||
default-features = false
|
||||
features = ["wayland"]
|
||||
#TODO: winit does not support size limits, resizing
|
||||
#features = ["winit"]
|
||||
#path = "../libcosmic"
|
||||
|
||||
[dependencies.rfd]
|
||||
version = "0.10"
|
||||
#TODO: iced portal
|
||||
#default-features = false
|
||||
#features = ["xdg-portal"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
|||
|
|
@ -171,8 +171,8 @@ impl App {
|
|||
None => format!("No Open File"),
|
||||
};
|
||||
let window_title = format!("{title} - COSMIC Text Editor");
|
||||
self.core.window.header_title = title.clone();
|
||||
self.set_title(window_title)
|
||||
self.set_header_title(title.clone());
|
||||
self.set_window_title(window_title)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue