implemented really simple rendering

This commit is contained in:
Jiří Maxmilián Stříbrný 2026-03-23 23:04:44 +01:00
parent 632a0abd10
commit 22670f6abd

View file

@ -1,6 +1,4 @@
use std::ops::Index; use iced::{Subscription, Task, widget::text};
use iced::{Subscription, Task};
use ppd::PpdProxyBlocking; use ppd::PpdProxyBlocking;
use zbus::blocking::Connection; use zbus::blocking::Connection;
@ -59,8 +57,8 @@ impl PanelWidget for PowerManagementWidget<'_> {
Subscription::none() Subscription::none()
} }
fn view(&self, id: iced::window::Id) -> iced::Element<'_, crate::widget::Message> { fn view(&self, _id: iced::window::Id) -> iced::Element<'_, crate::widget::Message> {
todo!() text!("{}", self.modes[self.current_mode]).into()
} }
fn has_window(&self, id: iced::window::Id) -> bool { fn has_window(&self, id: iced::window::Id) -> bool {