forked from max_ag/wayland_panel
Changed an icon
This commit is contained in:
parent
2fc7a6a8da
commit
e857dd93cc
5 changed files with 26 additions and 7 deletions
|
|
@ -21,7 +21,7 @@ pub fn main() -> Result<(), iced_layershell::Error> {
|
|||
size: Some((0, 32)),
|
||||
exclusive_zone: 32,
|
||||
anchor: Anchor::Top | Anchor::Left | Anchor::Right,
|
||||
start_mode: iced_layershell::settings::StartMode::AllScreens, // valid here in daemon
|
||||
start_mode: iced_layershell::settings::StartMode::AllScreens,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
|
@ -120,7 +120,7 @@ impl PanelWidget for BatteryWidget {
|
|||
fn view(&self) -> Element<'_, Message> {
|
||||
match self.battery {
|
||||
Some(battery) => text!("{} {}", battery.to_string(), Self::get_icon(battery)),
|
||||
None => text(""),
|
||||
None => text(""),
|
||||
}
|
||||
.into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue