update libcosmic after reexports are removed
This commit is contained in:
parent
1517d7388d
commit
e125ae0b58
24 changed files with 91 additions and 90 deletions
38
Cargo.lock
generated
38
Cargo.lock
generated
|
|
@ -778,9 +778,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cc"
|
name = "cc"
|
||||||
version = "1.2.59"
|
version = "1.2.60"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b7a4d3ec6524d28a329fc53654bbadc9bdd7b0431f5d65f1a56ffb28a1ee5283"
|
checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"find-msvc-tools",
|
"find-msvc-tools",
|
||||||
"jobserver",
|
"jobserver",
|
||||||
|
|
@ -1459,7 +1459,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-notifications-config"
|
name = "cosmic-notifications-config"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/cosmic-notifications#de57c9ef0e2bd5f5608eb425a736bbe4c815cb76"
|
source = "git+https://github.com/pop-os/cosmic-notifications#6046bb29d570161196ab98d60806f6d6489df7a6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cosmic-config",
|
"cosmic-config",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
@ -1468,7 +1468,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-notifications-util"
|
name = "cosmic-notifications-util"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/cosmic-notifications#de57c9ef0e2bd5f5608eb425a736bbe4c815cb76"
|
source = "git+https://github.com/pop-os/cosmic-notifications#6046bb29d570161196ab98d60806f6d6489df7a6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fast_image_resize",
|
"fast_image_resize",
|
||||||
"libcosmic",
|
"libcosmic",
|
||||||
|
|
@ -1509,7 +1509,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-pipewire"
|
name = "cosmic-pipewire"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"intmap",
|
"intmap",
|
||||||
"libspa",
|
"libspa",
|
||||||
|
|
@ -1537,7 +1537,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-a11y-manager-subscription"
|
name = "cosmic-settings-a11y-manager-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cosmic-protocols",
|
"cosmic-protocols",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -1551,7 +1551,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-accessibility-subscription"
|
name = "cosmic-settings-accessibility-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cosmic-dbus-a11y",
|
"cosmic-dbus-a11y",
|
||||||
"futures",
|
"futures",
|
||||||
|
|
@ -1564,7 +1564,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-airplane-mode-subscription"
|
name = "cosmic-settings-airplane-mode-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -1597,7 +1597,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-daemon-subscription"
|
name = "cosmic-settings-daemon-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -1610,7 +1610,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-network-manager-subscription"
|
name = "cosmic-settings-network-manager-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.11.0",
|
"bitflags 2.11.0",
|
||||||
"cosmic-dbus-networkmanager",
|
"cosmic-dbus-networkmanager",
|
||||||
|
|
@ -1629,7 +1629,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-sound-subscription"
|
name = "cosmic-settings-sound-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cosmic-pipewire",
|
"cosmic-pipewire",
|
||||||
"futures",
|
"futures",
|
||||||
|
|
@ -1644,7 +1644,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-upower-subscription"
|
name = "cosmic-settings-upower-subscription"
|
||||||
version = "1.0.7"
|
version = "1.0.7"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings#04da80bb904f500ea07ec6ee4ea45d3b50adb9bb"
|
source = "git+https://github.com/pop-os/cosmic-settings#3639bafcfa3b27fd6a8a9bca7e77589b903975e8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -1658,7 +1658,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-text"
|
name = "cosmic-text"
|
||||||
version = "0.18.2"
|
version = "0.18.2"
|
||||||
source = "git+https://github.com/pop-os/cosmic-text.git#9a2ab09f06905e91f41d64ac6eee887726e7fd76"
|
source = "git+https://github.com/pop-os/cosmic-text.git#4d74f795cc771fdcc7ea0f9cacba63fcf036fad6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.11.0",
|
"bitflags 2.11.0",
|
||||||
"fontdb",
|
"fontdb",
|
||||||
|
|
@ -4169,14 +4169,14 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libredox"
|
name = "libredox"
|
||||||
version = "0.1.15"
|
version = "0.1.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7ddbf48fd451246b1f8c2610bd3b4ac0cc6e149d89832867093ab69a17194f08"
|
checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.11.0",
|
"bitflags 2.11.0",
|
||||||
"libc",
|
"libc",
|
||||||
"plain",
|
"plain",
|
||||||
"redox_syscall 0.7.3",
|
"redox_syscall 0.7.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -5612,9 +5612,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redox_syscall"
|
name = "redox_syscall"
|
||||||
version = "0.7.3"
|
version = "0.7.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6ce70a74e890531977d37e532c34d45e9055d2409ed08ddba14529471ed0be16"
|
checksum = "f450ad9c3b1da563fb6948a8e0fb0fb9269711c9c73d9ea1de5058c79c8d643a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.11.0",
|
"bitflags 2.11.0",
|
||||||
]
|
]
|
||||||
|
|
@ -8090,7 +8090,7 @@ dependencies = [
|
||||||
"libredox",
|
"libredox",
|
||||||
"orbclient",
|
"orbclient",
|
||||||
"raw-window-handle",
|
"raw-window-handle",
|
||||||
"redox_syscall 0.7.3",
|
"redox_syscall 0.7.4",
|
||||||
"smol_str",
|
"smol_str",
|
||||||
"tracing",
|
"tracing",
|
||||||
"winit-core",
|
"winit-core",
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ use cosmic::{
|
||||||
},
|
},
|
||||||
cosmic_config::{Config, CosmicConfigEntry},
|
cosmic_config::{Config, CosmicConfigEntry},
|
||||||
desktop::IconSourceExt,
|
desktop::IconSourceExt,
|
||||||
|
iced::runtime::{core::event, dnd::peek_dnd},
|
||||||
iced::{
|
iced::{
|
||||||
self, Alignment, Background, Border, Length, Limits, Padding, Subscription,
|
self, Alignment, Background, Border, Length, Limits, Padding, Subscription,
|
||||||
advanced::text::{Ellipsize, EllipsizeHeightLimit},
|
advanced::text::{Ellipsize, EllipsizeHeightLimit},
|
||||||
|
|
@ -39,7 +40,6 @@ use cosmic::{
|
||||||
},
|
},
|
||||||
window,
|
window,
|
||||||
},
|
},
|
||||||
iced_runtime::{core::event, dnd::peek_dnd},
|
|
||||||
surface,
|
surface,
|
||||||
theme::{self, Button, Container},
|
theme::{self, Button, Container},
|
||||||
widget::{
|
widget::{
|
||||||
|
|
@ -2478,14 +2478,14 @@ impl cosmic::Application for CosmicAppList {
|
||||||
Subscription::batch([
|
Subscription::batch([
|
||||||
wayland_subscription().map(Message::Wayland),
|
wayland_subscription().map(Message::Wayland),
|
||||||
listen_with(|e, _, id| match e {
|
listen_with(|e, _, id| match e {
|
||||||
cosmic::iced_runtime::core::Event::PlatformSpecific(
|
cosmic::iced::core::Event::PlatformSpecific(event::PlatformSpecific::Wayland(
|
||||||
event::PlatformSpecific::Wayland(event::wayland::Event::Seat(e, seat)),
|
event::wayland::Event::Seat(e, seat),
|
||||||
) => match e {
|
)) => match e {
|
||||||
event::wayland::SeatEvent::Enter => Some(Message::NewSeat(seat)),
|
event::wayland::SeatEvent::Enter => Some(Message::NewSeat(seat)),
|
||||||
event::wayland::SeatEvent::Leave => Some(Message::RemovedSeat),
|
event::wayland::SeatEvent::Leave => Some(Message::RemovedSeat),
|
||||||
},
|
},
|
||||||
cosmic::iced_core::Event::Mouse(
|
cosmic::iced::core::Event::Mouse(
|
||||||
cosmic::iced_core::mouse::Event::ButtonPressed(_),
|
cosmic::iced::core::mouse::Event::ButtonPressed(_),
|
||||||
) => Some(Message::Pressed(id)),
|
) => Some(Message::Pressed(id)),
|
||||||
_ => None,
|
_ => None,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ use cctk::{
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::core::Bytes,
|
||||||
iced::{self, Subscription, stream},
|
iced::{self, Subscription, stream},
|
||||||
iced_core::Bytes,
|
|
||||||
};
|
};
|
||||||
use image::EncodableLayout;
|
use image::EncodableLayout;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
//! A container for capturing mouse events.
|
//! A container for capturing mouse events.
|
||||||
|
|
||||||
use cosmic::iced::Vector;
|
use cosmic::iced::Vector;
|
||||||
use cosmic::iced_renderer::core::Point;
|
use cosmic::iced::core::Point;
|
||||||
|
|
||||||
use cosmic::iced_core::{
|
use cosmic::iced::core::{
|
||||||
Clipboard, Element, Layout, Length, Rectangle, Shell, Size, Widget,
|
Clipboard, Element, Layout, Length, Rectangle, Shell, Size, Widget,
|
||||||
event::{self, Event},
|
event::{self, Event},
|
||||||
layout, mouse, overlay, renderer, touch,
|
layout, mouse, overlay, renderer, touch,
|
||||||
|
|
@ -273,7 +273,7 @@ where
|
||||||
state: &Tree,
|
state: &Tree,
|
||||||
layout: Layout<'_>,
|
layout: Layout<'_>,
|
||||||
renderer: &Renderer,
|
renderer: &Renderer,
|
||||||
dnd_rectangles: &mut cosmic::iced_core::clipboard::DndDestinationRectangles,
|
dnd_rectangles: &mut cosmic::iced::core::clipboard::DndDestinationRectangles,
|
||||||
) {
|
) {
|
||||||
if let Some(state) = state.children.first() {
|
if let Some(state) = state.children.first() {
|
||||||
self.content
|
self.content
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@
|
||||||
use std::{borrow::Cow, fmt::Debug, hash::Hash, path::PathBuf};
|
use std::{borrow::Cow, fmt::Debug, hash::Hash, path::PathBuf};
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::futures::{self, SinkExt, StreamExt, future::OptionFuture},
|
||||||
iced::{self, Subscription, stream},
|
iced::{self, Subscription, stream},
|
||||||
iced_futures::futures::{self, SinkExt, StreamExt, future::OptionFuture},
|
|
||||||
};
|
};
|
||||||
use mpris2_zbus::{
|
use mpris2_zbus::{
|
||||||
enumerator,
|
enumerator,
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,13 @@ use cosmic::{
|
||||||
},
|
},
|
||||||
cctk::sctk::reexports::calloop,
|
cctk::sctk::reexports::calloop,
|
||||||
cosmic_theme::Spacing,
|
cosmic_theme::Spacing,
|
||||||
|
iced::core::{Alignment, Background, Border, Color, Shadow},
|
||||||
iced::{
|
iced::{
|
||||||
Length, Subscription,
|
Length, Subscription,
|
||||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||||
widget::{Column, column, container, row},
|
widget::{Column, column, container, row},
|
||||||
window,
|
window,
|
||||||
},
|
},
|
||||||
iced_core::{Alignment, Background, Border, Color, Shadow},
|
|
||||||
surface,
|
surface,
|
||||||
theme::{self, Button},
|
theme::{self, Button},
|
||||||
widget::{button, divider, icon, scrollable, slider, space, text, toggler},
|
widget::{button, divider, icon, scrollable, slider, space, text, toggler},
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::stream,
|
||||||
iced::{self, Subscription, futures::SinkExt},
|
iced::{self, Subscription, futures::SinkExt},
|
||||||
iced_futures::stream,
|
|
||||||
};
|
};
|
||||||
use std::{fmt::Debug, hash::Hash};
|
use std::{fmt::Debug, hash::Hash};
|
||||||
use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender};
|
use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender};
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::stream,
|
||||||
iced::{self, Subscription},
|
iced::{self, Subscription},
|
||||||
iced_futures::stream,
|
|
||||||
};
|
};
|
||||||
use drm::{
|
use drm::{
|
||||||
control::{
|
control::{
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ use cosmic::{
|
||||||
Element, Task,
|
Element, Task,
|
||||||
applet::{menu_button, padded_control},
|
applet::{menu_button, padded_control},
|
||||||
cosmic_theme::Spacing,
|
cosmic_theme::Spacing,
|
||||||
|
iced::core::window,
|
||||||
iced::{
|
iced::{
|
||||||
self, Alignment, Length, Subscription,
|
self, Alignment, Length, Subscription,
|
||||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||||
widget::{Column, column, container, row},
|
widget::{Column, column, container, row},
|
||||||
},
|
},
|
||||||
iced_runtime::core::window,
|
|
||||||
theme,
|
theme,
|
||||||
widget::{button, divider, icon, scrollable, text},
|
widget::{button, divider, icon, scrollable, text},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@ use bluer::{
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::stream,
|
||||||
iced::{
|
iced::{
|
||||||
self, Subscription,
|
self, Subscription,
|
||||||
futures::{SinkExt, StreamExt},
|
futures::{SinkExt, StreamExt},
|
||||||
},
|
},
|
||||||
iced_futures::stream,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use futures::{FutureExt, stream::FuturesUnordered};
|
use futures::{FutureExt, stream::FuturesUnordered};
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,14 @@ use cosmic::{
|
||||||
applet::{self},
|
applet::{self},
|
||||||
cosmic_config::{self, ConfigSet, CosmicConfigEntry},
|
cosmic_config::{self, ConfigSet, CosmicConfigEntry},
|
||||||
cosmic_theme::Spacing,
|
cosmic_theme::Spacing,
|
||||||
|
iced::Subscription,
|
||||||
iced::{
|
iced::{
|
||||||
Rectangle, Task,
|
Rectangle, Task,
|
||||||
platform_specific::shell::commands::popup::{destroy_popup, get_popup},
|
platform_specific::shell::commands::popup::{destroy_popup, get_popup},
|
||||||
widget::{column, row},
|
widget::{column, row},
|
||||||
window::Id,
|
window::Id,
|
||||||
},
|
},
|
||||||
iced_futures::Subscription,
|
iced::{core::window, runtime::Appearance},
|
||||||
iced_runtime::{Appearance, core::window},
|
|
||||||
prelude::*,
|
prelude::*,
|
||||||
surface, theme,
|
surface, theme,
|
||||||
widget::{
|
widget::{
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ use cosmic::{
|
||||||
widget::{autosize::autosize, mouse_area},
|
widget::{autosize::autosize, mouse_area},
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic::iced_widget::{Column, Row};
|
use cosmic::iced::widget::{Column, Row};
|
||||||
|
|
||||||
use cosmic::{Element, widget::tooltip};
|
use cosmic::{Element, widget::tooltip};
|
||||||
use std::sync::LazyLock;
|
use std::sync::LazyLock;
|
||||||
|
|
@ -362,14 +362,14 @@ impl cosmic::Application for Minimize {
|
||||||
PanelAnchor::Top | PanelAnchor::Bottom
|
PanelAnchor::Top | PanelAnchor::Bottom
|
||||||
) {
|
) {
|
||||||
Row::with_children(icon_buttons)
|
Row::with_children(icon_buttons)
|
||||||
.align_y(cosmic::iced_core::Alignment::Center)
|
.align_y(cosmic::iced::core::Alignment::Center)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.spacing(spacing as f32)
|
.spacing(spacing as f32)
|
||||||
.into()
|
.into()
|
||||||
} else {
|
} else {
|
||||||
Column::with_children(icon_buttons)
|
Column::with_children(icon_buttons)
|
||||||
.align_x(cosmic::iced_core::Alignment::Center)
|
.align_x(cosmic::iced::core::Alignment::Center)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.spacing(spacing as f32)
|
.spacing(spacing as f32)
|
||||||
|
|
@ -457,13 +457,13 @@ impl cosmic::Application for Minimize {
|
||||||
) {
|
) {
|
||||||
Element::from(
|
Element::from(
|
||||||
Row::with_children(icon_buttons)
|
Row::with_children(icon_buttons)
|
||||||
.align_y(cosmic::iced_core::Alignment::Center)
|
.align_y(cosmic::iced::core::Alignment::Center)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
.width(Length::Shrink),
|
.width(Length::Shrink),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Column::with_children(icon_buttons)
|
Column::with_children(icon_buttons)
|
||||||
.align_x(cosmic::iced_core::Alignment::Center)
|
.align_x(cosmic::iced::core::Alignment::Center)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.into()
|
.into()
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ use cosmic::{
|
||||||
},
|
},
|
||||||
wayland_protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
wayland_protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
||||||
},
|
},
|
||||||
iced_futures::futures,
|
iced::futures,
|
||||||
};
|
};
|
||||||
use cosmic_protocols::{
|
use cosmic_protocols::{
|
||||||
toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
|
toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ use cosmic::{
|
||||||
self,
|
self,
|
||||||
wayland_protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
wayland_protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
||||||
},
|
},
|
||||||
|
iced::core::Bytes,
|
||||||
iced::{self, Subscription},
|
iced::{self, Subscription},
|
||||||
iced_core::Bytes,
|
iced::{futures, stream},
|
||||||
iced_futures::{futures, stream},
|
|
||||||
};
|
};
|
||||||
use futures::SinkExt;
|
use futures::SinkExt;
|
||||||
use image::EncodableLayout;
|
use image::EncodableLayout;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ use cosmic::{
|
||||||
Element,
|
Element,
|
||||||
desktop::{IconSourceExt, fde},
|
desktop::{IconSourceExt, fde},
|
||||||
iced::Limits,
|
iced::Limits,
|
||||||
iced_core::{Border, Layout, Length, Size, Vector, layout, overlay, widget::Tree},
|
iced::core::{Border, Layout, Length, Size, Vector, layout, overlay, widget::Tree},
|
||||||
theme::{Button, Container},
|
theme::{Button, Container},
|
||||||
widget::{Image, Widget, button, container, image::Handle},
|
widget::{Image, Widget, button, container, image::Handle},
|
||||||
};
|
};
|
||||||
|
|
@ -42,7 +42,7 @@ where
|
||||||
Image::new(Handle::from_rgba(img.width, img.height, img.img))
|
Image::new(Handle::from_rgba(img.width, img.height, img.img))
|
||||||
.width(Length::Fixed(adjusted_width))
|
.width(Length::Fixed(adjusted_width))
|
||||||
.height(Length::Fixed(adjusted_height))
|
.height(Length::Fixed(adjusted_height))
|
||||||
.content_fit(cosmic::iced_core::ContentFit::Contain),
|
.content_fit(cosmic::iced::core::ContentFit::Contain),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
Element::from(
|
Element::from(
|
||||||
|
|
@ -82,11 +82,11 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg> {
|
impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg> {
|
||||||
fn children(&self) -> Vec<cosmic::iced_core::widget::Tree> {
|
fn children(&self) -> Vec<cosmic::iced::core::widget::Tree> {
|
||||||
vec![Tree::new(&self.image_button), Tree::new(&self.icon)]
|
vec![Tree::new(&self.image_button), Tree::new(&self.icon)]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn diff(&mut self, tree: &mut cosmic::iced_core::widget::Tree) {
|
fn diff(&mut self, tree: &mut cosmic::iced::core::widget::Tree) {
|
||||||
tree.diff_children(&mut [&mut self.image_button, &mut self.icon]);
|
tree.diff_children(&mut [&mut self.image_button, &mut self.icon]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -95,9 +95,10 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
state: &'b mut Tree,
|
state: &'b mut Tree,
|
||||||
layout: Layout<'b>,
|
layout: Layout<'b>,
|
||||||
renderer: &cosmic::Renderer,
|
renderer: &cosmic::Renderer,
|
||||||
viewport: &cosmic::iced_core::Rectangle,
|
viewport: &cosmic::iced::core::Rectangle,
|
||||||
translation: Vector,
|
translation: Vector,
|
||||||
) -> Option<cosmic::iced_core::overlay::Element<'b, Msg, cosmic::Theme, cosmic::Renderer>> {
|
) -> Option<cosmic::iced::core::overlay::Element<'b, Msg, cosmic::Theme, cosmic::Renderer>>
|
||||||
|
{
|
||||||
let children = [&mut self.image_button, &mut self.icon]
|
let children = [&mut self.image_button, &mut self.icon]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(&mut state.children)
|
.zip(&mut state.children)
|
||||||
|
|
@ -118,10 +119,10 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
|
|
||||||
fn layout(
|
fn layout(
|
||||||
&mut self,
|
&mut self,
|
||||||
tree: &mut cosmic::iced_core::widget::Tree,
|
tree: &mut cosmic::iced::core::widget::Tree,
|
||||||
renderer: &cosmic::Renderer,
|
renderer: &cosmic::Renderer,
|
||||||
limits: &cosmic::iced_core::layout::Limits,
|
limits: &cosmic::iced::core::layout::Limits,
|
||||||
) -> cosmic::iced_core::layout::Node {
|
) -> cosmic::iced::core::layout::Node {
|
||||||
let children = &mut tree.children;
|
let children = &mut tree.children;
|
||||||
let button = &mut children[0];
|
let button = &mut children[0];
|
||||||
let button_node = self
|
let button_node = self
|
||||||
|
|
@ -155,13 +156,13 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
|
|
||||||
fn draw(
|
fn draw(
|
||||||
&self,
|
&self,
|
||||||
tree: &cosmic::iced_core::widget::Tree,
|
tree: &cosmic::iced::core::widget::Tree,
|
||||||
renderer: &mut cosmic::Renderer,
|
renderer: &mut cosmic::Renderer,
|
||||||
theme: &cosmic::Theme,
|
theme: &cosmic::Theme,
|
||||||
style: &cosmic::iced_core::renderer::Style,
|
style: &cosmic::iced::core::renderer::Style,
|
||||||
layout: cosmic::iced_core::Layout<'_>,
|
layout: cosmic::iced::core::Layout<'_>,
|
||||||
cursor: cosmic::iced_core::mouse::Cursor,
|
cursor: cosmic::iced::core::mouse::Cursor,
|
||||||
viewport: &cosmic::iced_core::Rectangle,
|
viewport: &cosmic::iced::core::Rectangle,
|
||||||
) {
|
) {
|
||||||
let children = &[&self.image_button, &self.icon];
|
let children = &[&self.image_button, &self.icon];
|
||||||
// draw children in order
|
// draw children in order
|
||||||
|
|
@ -177,18 +178,18 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
self.size()
|
self.size()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tag(&self) -> cosmic::iced_core::widget::tree::Tag {
|
fn tag(&self) -> cosmic::iced::core::widget::tree::Tag {
|
||||||
cosmic::iced_core::widget::tree::Tag::stateless()
|
cosmic::iced::core::widget::tree::Tag::stateless()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn state(&self) -> cosmic::iced_core::widget::tree::State {
|
fn state(&self) -> cosmic::iced::core::widget::tree::State {
|
||||||
cosmic::iced_core::widget::tree::State::None
|
cosmic::iced::core::widget::tree::State::None
|
||||||
}
|
}
|
||||||
|
|
||||||
fn operate(
|
fn operate(
|
||||||
&mut self,
|
&mut self,
|
||||||
tree: &mut cosmic::iced_core::widget::Tree,
|
tree: &mut cosmic::iced::core::widget::Tree,
|
||||||
layout: cosmic::iced_core::Layout<'_>,
|
layout: cosmic::iced::core::Layout<'_>,
|
||||||
renderer: &cosmic::Renderer,
|
renderer: &cosmic::Renderer,
|
||||||
operation: &mut dyn cosmic::widget::Operation<()>,
|
operation: &mut dyn cosmic::widget::Operation<()>,
|
||||||
) {
|
) {
|
||||||
|
|
@ -209,14 +210,14 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
|
|
||||||
fn update(
|
fn update(
|
||||||
&mut self,
|
&mut self,
|
||||||
state: &mut cosmic::iced_core::widget::Tree,
|
state: &mut cosmic::iced::core::widget::Tree,
|
||||||
event: &cosmic::iced_core::Event,
|
event: &cosmic::iced::core::Event,
|
||||||
layout: cosmic::iced_core::Layout<'_>,
|
layout: cosmic::iced::core::Layout<'_>,
|
||||||
cursor: cosmic::iced_core::mouse::Cursor,
|
cursor: cosmic::iced::core::mouse::Cursor,
|
||||||
renderer: &cosmic::Renderer,
|
renderer: &cosmic::Renderer,
|
||||||
clipboard: &mut dyn cosmic::iced_core::Clipboard,
|
clipboard: &mut dyn cosmic::iced::core::Clipboard,
|
||||||
shell: &mut cosmic::iced_core::Shell<'_, Msg>,
|
shell: &mut cosmic::iced::core::Shell<'_, Msg>,
|
||||||
viewport: &cosmic::iced_core::Rectangle,
|
viewport: &cosmic::iced::core::Rectangle,
|
||||||
) {
|
) {
|
||||||
let children = [&mut self.image_button, &mut self.icon];
|
let children = [&mut self.image_button, &mut self.icon];
|
||||||
|
|
||||||
|
|
@ -241,12 +242,12 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
|
|
||||||
fn mouse_interaction(
|
fn mouse_interaction(
|
||||||
&self,
|
&self,
|
||||||
state: &cosmic::iced_core::widget::Tree,
|
state: &cosmic::iced::core::widget::Tree,
|
||||||
layout: cosmic::iced_core::Layout<'_>,
|
layout: cosmic::iced::core::Layout<'_>,
|
||||||
cursor: cosmic::iced_core::mouse::Cursor,
|
cursor: cosmic::iced::core::mouse::Cursor,
|
||||||
viewport: &cosmic::iced_core::Rectangle,
|
viewport: &cosmic::iced::core::Rectangle,
|
||||||
renderer: &cosmic::Renderer,
|
renderer: &cosmic::Renderer,
|
||||||
) -> cosmic::iced_core::mouse::Interaction {
|
) -> cosmic::iced::core::mouse::Interaction {
|
||||||
let children = [&self.image_button, &self.icon];
|
let children = [&self.image_button, &self.icon];
|
||||||
let layout = layout.children().collect::<Vec<_>>();
|
let layout = layout.children().collect::<Vec<_>>();
|
||||||
for (i, (layout, child)) in layout
|
for (i, (layout, child)) in layout
|
||||||
|
|
@ -263,7 +264,7 @@ impl<Msg> Widget<Msg, cosmic::Theme, cosmic::Renderer> for WindowImage<'_, Msg>
|
||||||
return interaction;
|
return interaction;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cosmic::iced_core::mouse::Interaction::Idle
|
cosmic::iced::core::mouse::Interaction::Idle
|
||||||
}
|
}
|
||||||
|
|
||||||
fn id(&self) -> Option<cosmic::widget::Id> {
|
fn id(&self) -> Option<cosmic::widget::Id> {
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ edition = "2024"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notifications" }
|
||||||
|
cosmic-notifications-config = { git = "https://github.com/pop-os/cosmic-notifications" }
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
libcosmic.workspace = true
|
libcosmic.workspace = true
|
||||||
tokio.workspace = true
|
tokio.workspace = true
|
||||||
cosmic-notifications-util = { git = "https://github.com/pop-os/cosmic-notifications" }
|
|
||||||
cosmic-notifications-config = { git = "https://github.com/pop-os/cosmic-notifications" }
|
|
||||||
# cosmic-notifications-util = { path = "../../cosmic-notifications-daemon/cosmic-notifications-util" }
|
# cosmic-notifications-util = { path = "../../cosmic-notifications-daemon/cosmic-notifications-util" }
|
||||||
# cosmic-notifications-config = { path = "../../cosmic-notifications-daemon/cosmic-notifications-config" }
|
# cosmic-notifications-config = { path = "../../cosmic-notifications-daemon/cosmic-notifications-config" }
|
||||||
futures-util = { workspace = true, features = ["sink"] }
|
futures-util = { workspace = true, features = ["sink"] }
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ use cosmic::{
|
||||||
widget::{Column, button, cards, container, divider, icon, scrollable, space, text, toggler},
|
widget::{Column, button, cards, container, divider, icon, scrollable, space, text, toggler},
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic::iced_futures::futures::executor::block_on;
|
use cosmic::iced::futures::executor::block_on;
|
||||||
|
|
||||||
use cosmic_notifications_config::NotificationsConfig;
|
use cosmic_notifications_config::NotificationsConfig;
|
||||||
use cosmic_notifications_util::{ActionId, Image, Notification};
|
use cosmic_notifications_util::{ActionId, Image, Notification};
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
use crate::subscriptions::freedesktop_proxy::NotificationsProxy;
|
use crate::subscriptions::freedesktop_proxy::NotificationsProxy;
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
iced::futures::{self, SinkExt},
|
iced::futures::{self, SinkExt},
|
||||||
iced_futures::{Subscription, stream},
|
iced::{Subscription, stream},
|
||||||
};
|
};
|
||||||
use futures_util::StreamExt;
|
use futures_util::StreamExt;
|
||||||
use tokio::sync::mpsc::{Receiver, Sender, channel};
|
use tokio::sync::mpsc::{Receiver, Sender, channel};
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
|
iced::Subscription,
|
||||||
iced::{
|
iced::{
|
||||||
futures::{self, FutureExt},
|
futures::{self, FutureExt},
|
||||||
stream,
|
stream,
|
||||||
},
|
},
|
||||||
iced_futures::Subscription,
|
|
||||||
};
|
};
|
||||||
use cosmic_notifications_util::Notification;
|
use cosmic_notifications_util::Notification;
|
||||||
use futures_util::{SinkExt, StreamExt};
|
use futures_util::{SinkExt, StreamExt};
|
||||||
|
|
|
||||||
|
|
@ -594,7 +594,7 @@ fn menu_icon_button<'a>(
|
||||||
cosmic::widget::icon(icon)
|
cosmic::widget::icon(icon)
|
||||||
.class(if symbolic {
|
.class(if symbolic {
|
||||||
cosmic::theme::Svg::Custom(std::rc::Rc::new(|theme| {
|
cosmic::theme::Svg::Custom(std::rc::Rc::new(|theme| {
|
||||||
cosmic::iced_widget::svg::Style {
|
cosmic::iced::widget::svg::Style {
|
||||||
color: Some(theme.cosmic().background.on.into()),
|
color: Some(theme.cosmic().background.on.into()),
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,12 @@ use cosmic::{
|
||||||
applet::{menu_button, padded_control},
|
applet::{menu_button, padded_control},
|
||||||
cosmic_config::{Config, ConfigSet, CosmicConfigEntry},
|
cosmic_config::{Config, ConfigSet, CosmicConfigEntry},
|
||||||
cosmic_theme::Spacing,
|
cosmic_theme::Spacing,
|
||||||
|
iced::widget::{column, row},
|
||||||
iced::{
|
iced::{
|
||||||
Length, Subscription,
|
Length, Subscription,
|
||||||
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
platform_specific::shell::wayland::commands::popup::{destroy_popup, get_popup},
|
||||||
window::Id,
|
window::Id,
|
||||||
},
|
},
|
||||||
iced_widget::{column, row},
|
|
||||||
surface, theme,
|
surface, theme,
|
||||||
widget::{
|
widget::{
|
||||||
container, divider,
|
container, divider,
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ use cosmic::{
|
||||||
applet::{cosmic_panel_config::PanelAnchor, menu_button, padded_control},
|
applet::{cosmic_panel_config::PanelAnchor, menu_button, padded_control},
|
||||||
cctk::sctk::reexports::calloop,
|
cctk::sctk::reexports::calloop,
|
||||||
cosmic_theme::Spacing,
|
cosmic_theme::Spacing,
|
||||||
|
iced::stream,
|
||||||
|
iced::widget::Column,
|
||||||
iced::{
|
iced::{
|
||||||
Alignment, Length, Rectangle, Subscription,
|
Alignment, Length, Rectangle, Subscription,
|
||||||
futures::{SinkExt, StreamExt, channel::mpsc},
|
futures::{SinkExt, StreamExt, channel::mpsc},
|
||||||
|
|
@ -13,8 +15,6 @@ use cosmic::{
|
||||||
widget::{column, row, rule},
|
widget::{column, row, rule},
|
||||||
window,
|
window,
|
||||||
},
|
},
|
||||||
iced_futures::stream,
|
|
||||||
iced_widget::Column,
|
|
||||||
surface, theme,
|
surface, theme,
|
||||||
widget::{
|
widget::{
|
||||||
Button, Grid, Id, autosize, button, container, divider, grid, icon, rectangle_tracker::*,
|
Button, Grid, Id, autosize, button, container, divider, grid, icon, rectangle_tracker::*,
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ use cctk::{
|
||||||
use cosmic::{
|
use cosmic::{
|
||||||
Element, Task, Theme, app,
|
Element, Task, Theme, app,
|
||||||
applet::cosmic_panel_config::PanelAnchor,
|
applet::cosmic_panel_config::PanelAnchor,
|
||||||
|
iced::core::{Background, Border},
|
||||||
iced::{
|
iced::{
|
||||||
Alignment,
|
Alignment,
|
||||||
Event::Mouse,
|
Event::Mouse,
|
||||||
|
|
@ -20,7 +21,6 @@ use cosmic::{
|
||||||
mouse::{self, ScrollDelta},
|
mouse::{self, ScrollDelta},
|
||||||
widget::{button, column, row},
|
widget::{button, column, row},
|
||||||
},
|
},
|
||||||
iced_core::{Background, Border},
|
|
||||||
scroll::DiscreteScrollState,
|
scroll::DiscreteScrollState,
|
||||||
surface,
|
surface,
|
||||||
widget::{Id, autosize, container, space},
|
widget::{Id, autosize, container, space},
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ use cosmic::{
|
||||||
Size,
|
Size,
|
||||||
cosmic_panel_config::{PanelAnchor, PanelSize},
|
cosmic_panel_config::{PanelAnchor, PanelSize},
|
||||||
},
|
},
|
||||||
|
iced::widget::row,
|
||||||
iced::{self, Length},
|
iced::{self, Length},
|
||||||
iced_widget::row,
|
|
||||||
surface,
|
surface,
|
||||||
widget::{Id, autosize},
|
widget::{Id, autosize},
|
||||||
};
|
};
|
||||||
|
|
@ -65,7 +65,7 @@ impl Button {
|
||||||
cosmic::widget::icon(icon)
|
cosmic::widget::icon(icon)
|
||||||
.class(if symbolic {
|
.class(if symbolic {
|
||||||
cosmic::theme::Svg::Custom(std::rc::Rc::new(|theme| {
|
cosmic::theme::Svg::Custom(std::rc::Rc::new(|theme| {
|
||||||
cosmic::iced_widget::svg::Style {
|
cosmic::iced::widget::svg::Style {
|
||||||
color: Some(theme.cosmic().background.on.into()),
|
color: Some(theme.cosmic().background.on.into()),
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue