feat(battery): add settings button
This commit is contained in:
parent
0640e88412
commit
46e1fdd9f0
1 changed files with 12 additions and 0 deletions
|
|
@ -686,6 +686,18 @@ impl cosmic::Application for CosmicBatteryApplet {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
content.push(
|
||||||
|
menu_button(
|
||||||
|
row![
|
||||||
|
text(fl!("power-settings"))
|
||||||
|
.size(14)
|
||||||
|
.width(Length::Fill)
|
||||||
|
.horizontal_alignment(Horizontal::Left),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
.on_press(Message::OpenSettings)
|
||||||
|
.into(),
|
||||||
|
);
|
||||||
|
|
||||||
self.core
|
self.core
|
||||||
.applet
|
.applet
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue