refactor: use libcosmic::dialog and make rfd optional
This commit is contained in:
parent
6a74db14ed
commit
a1c80efe69
3 changed files with 38 additions and 34 deletions
11
Cargo.toml
11
Cargo.toml
|
|
@ -13,8 +13,6 @@ lexical-sort = "0.3.1"
|
|||
log = "0.4.20"
|
||||
patch = "0.7.0"
|
||||
notify = "6.1.1"
|
||||
#TODO: this is using gtk for file dialogues
|
||||
rfd = { version = "0.12.0", optional = true }
|
||||
serde = { version = "1", features = ["serde_derive"] }
|
||||
tokio = { version = "1", features = ["process", "time"] }
|
||||
# Extra syntax highlighting
|
||||
|
|
@ -35,9 +33,9 @@ features = ["syntect", "vi"]
|
|||
|
||||
[dependencies.libcosmic]
|
||||
git = "https://github.com/pop-os/libcosmic"
|
||||
branch = "dialog"
|
||||
default-features = false
|
||||
features = ["tokio", "winit"]
|
||||
#path = "../libcosmic"
|
||||
|
||||
#TODO: clean up and send changes upstream
|
||||
[dependencies.systemicons]
|
||||
|
|
@ -47,8 +45,13 @@ git = "https://github.com/jackpot51/systemicons"
|
|||
fork = "0.1"
|
||||
|
||||
[features]
|
||||
default = ["rfd", "wgpu"]
|
||||
default = ["xdg-portal", "wgpu"]
|
||||
# Use RFD for file chooser dialogs
|
||||
rfd = ["libcosmic/rfd"]
|
||||
# Enable GPU rendering with WGPU
|
||||
wgpu = ["libcosmic/wgpu"]
|
||||
# Use XDG portal dialogs on Linux
|
||||
xdg-portal = ["libcosmic/xdg-portal"]
|
||||
|
||||
[patch.crates-io]
|
||||
smithay-client-toolkit = { git = "https://github.com/pop-os/client-toolkit", branch = "wayland-resize" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue