improv(view): make workspace item sizing more dynamic

This makes the `workspace_bar` more responsive to different child sizes, which enables fixing the size of the smaller dimension of the screencopy, while allowing it to expand unrestricted in the larger dimension (to match the aspect ratio).
This commit is contained in:
Vukašin Vojinović 2025-04-09 13:40:08 +02:00 committed by Ian Douglas Scott
parent d4ddae7799
commit 2b7a8b133e
5 changed files with 322 additions and 289 deletions

View file

@ -12,10 +12,16 @@ cosmic-comp-config = { git = "https://github.com/pop-os/cosmic-comp" }
env_logger = "0.11.0"
futures-channel = "0.3.25"
gbm = "0.18.0"
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = ["tokio", "wayland", "single-instance", "multi-window", "winit"] }
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = [
"tokio",
"wayland",
"single-instance",
"desktop",
"multi-window",
"winit",
] }
cosmic-config = { git = "https://github.com/pop-os/libcosmic" }
freedesktop-desktop-entry = "0.7.0"
freedesktop-icons = "0.2.4"
freedesktop-icons = "0.3.1"
memmap2 = "0.9.0"
tokio = "1.23.0"
@ -26,7 +32,7 @@ itertools = "0.14.0"
log = "0.4.20"
i18n-embed-fl = "0.9.0"
rust-embed = "8.1.0"
rustix = { version = "0.38.30", features = ["fs"] }
rustix = { version = "0.38.30", features = ["fs"] }
calloop-wayland-source = "0.4.0"
aliasable = "0.1.3"
futures-executor = { version = "0.3.31", features = ["thread-pool"] }