refactor: use libcosmic::dialog and make rfd optional

This commit is contained in:
Michael Aaron Murphy 2024-01-22 08:42:18 +01:00
parent 6a74db14ed
commit a1c80efe69
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 38 additions and 34 deletions

View file

@ -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" }