fix: update iced to fix disappearing app-list

This commit is contained in:
Ashley Wulber 2022-12-20 15:43:10 -05:00 committed by Ashley Wulber
parent 58f6ab6285
commit 814498e6a4
3 changed files with 17 additions and 21 deletions

View file

@ -1466,7 +1466,7 @@ dependencies = [
[[package]] [[package]]
name = "iced" name = "iced"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"iced_core", "iced_core",
"iced_futures", "iced_futures",
@ -1483,7 +1483,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_core" name = "iced_core"
version = "0.6.2" version = "0.6.2"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"palette", "palette",
@ -1493,7 +1493,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_futures" name = "iced_futures"
version = "0.5.1" version = "0.5.1"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"futures", "futures",
"log", "log",
@ -1505,7 +1505,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_glow" name = "iced_glow"
version = "0.5.1" version = "0.5.1"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"bytemuck", "bytemuck",
"euclid", "euclid",
@ -1520,7 +1520,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_graphics" name = "iced_graphics"
version = "0.5.0" version = "0.5.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"bytemuck", "bytemuck",
@ -1540,7 +1540,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_lazy" name = "iced_lazy"
version = "0.3.0" version = "0.3.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"iced_native", "iced_native",
"ouroboros 0.13.0", "ouroboros 0.13.0",
@ -1549,7 +1549,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_native" name = "iced_native"
version = "0.7.0" version = "0.7.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"iced_core", "iced_core",
"iced_futures", "iced_futures",
@ -1563,7 +1563,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_sctk" name = "iced_sctk"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"enum-repr", "enum-repr",
"futures", "futures",
@ -1582,7 +1582,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_style" name = "iced_style"
version = "0.5.1" version = "0.5.1"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"iced_core", "iced_core",
"once_cell", "once_cell",
@ -1592,7 +1592,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_swbuf" name = "iced_swbuf"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"cosmic-text", "cosmic-text",
"iced_graphics", "iced_graphics",
@ -1607,7 +1607,7 @@ dependencies = [
[[package]] [[package]]
name = "iced_wgpu" name = "iced_wgpu"
version = "0.7.0" version = "0.7.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"bytemuck", "bytemuck",
@ -1786,7 +1786,7 @@ checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8"
[[package]] [[package]]
name = "libcosmic" name = "libcosmic"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/pop-os/libcosmic/?branch=master#5359ceb0f866c4052b37b7089b9bcf8f95788225" source = "git+https://github.com/pop-os/libcosmic/?branch=master#268cf4eb9f55e4038fe4c69a51092f11802bdf81"
dependencies = [ dependencies = [
"apply", "apply",
"cosmic-panel-config", "cosmic-panel-config",
@ -3033,7 +3033,7 @@ dependencies = [
[[package]] [[package]]
name = "swbuf" name = "swbuf"
version = "0.1.1" version = "0.1.1"
source = "git+https://github.com/rust-windowing/swbuf?branch=main#85b4f189bd152b580f52bf138a31db65bfff5a5a" source = "git+https://github.com/rust-windowing/swbuf?branch=main#9b8641fc0700e2e19eb68fda30b7a92772ac0150"
dependencies = [ dependencies = [
"cocoa", "cocoa",
"core-graphics", "core-graphics",

View file

@ -28,6 +28,3 @@ freedesktop-icons = {git = "https://github.com/wash2/freedestkop-icons"}
i18n-embed = { version = "0.13", features = ["fluent-system", "desktop-requester"] } i18n-embed = { version = "0.13", features = ["fluent-system", "desktop-requester"] }
i18n-embed-fl = "0.6" i18n-embed-fl = "0.6"
rust-embed = "6.3" rust-embed = "6.3"
# [patch."https://github.com/pop-os/iced"]
# iced = { path = "../../../cosmic-iced", features = ["image", "svg", "tokio", "wayland"]}

View file

@ -223,7 +223,7 @@ impl Application for CosmicAppList {
let mut popup_settings = self.applet_helper.get_popup_settings( let mut popup_settings = self.applet_helper.get_popup_settings(
window::Id::new(0), window::Id::new(0),
new_id, new_id,
(200, 240 + toplevel_group.toplevels.len() as u32 * 20), (240, 240 + toplevel_group.toplevels.len() as u32 * 24),
None, None,
None, None,
); );
@ -463,7 +463,7 @@ impl Application for CosmicAppList {
} }
// TODO tooltip on hover // TODO tooltip on hover
let icon_button = mouse_listener(icon_button) let icon_button = mouse_listener(icon_button.width(Length::Shrink).height(Length::Shrink))
.on_right_release(Message::Popup(desktop_info.id.clone())); .on_right_release(Message::Popup(desktop_info.id.clone()));
let icon_button = if let Some(tracker) = self.rectangle_tracker.as_ref() { let icon_button = if let Some(tracker) = self.rectangle_tracker.as_ref() {
tracker.container(*id, icon_button).into() tracker.container(*id, icon_button).into()
@ -495,9 +495,8 @@ impl Application for CosmicAppList {
.align_items(Alignment::Center) .align_items(Alignment::Center)
.height(Length::Fill) .height(Length::Fill)
.width(Length::Fill), .width(Length::Fill),
), ).height(Length::Fill).width(Length::Fill),
}; };
if self.popup.is_some() { if self.popup.is_some() {
mouse_listener(content) mouse_listener(content)
.on_right_press(Message::ClosePopup) .on_right_press(Message::ClosePopup)
@ -531,7 +530,7 @@ impl Application for CosmicAppList {
let mut list_col = column![]; let mut list_col = column![];
for (handle, info) in toplevels { for (handle, info) in toplevels {
let title = if info.title.len() > 20 { let title = if info.title.len() > 20 {
format!("{:.20}...", &info.title) format!("{:.24}...", &info.title)
} else { } else {
info.title.clone() info.title.clone()
}; };