forked from max_ag/wayland_panel
implemented really simple rendering
This commit is contained in:
parent
632a0abd10
commit
22670f6abd
1 changed files with 3 additions and 5 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue