fix: use text color for icon button instead

This commit is contained in:
Ashley Wulber 2022-11-17 17:32:19 -05:00
parent 8b6a5f03c9
commit 912b173c7f
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -2,6 +2,7 @@ use crate::dbus::{self, PowerDaemonProxy};
use crate::graphics::{get_current_graphics, set_graphics, Graphics};
use cosmic::applet::{get_popup_settings, icon_button, popup_container};
use cosmic::iced_style::application::{self, Appearance};
use cosmic::iced_style::svg;
use cosmic::separator;
use cosmic::theme::{Button, Svg};
use cosmic::{
@ -182,7 +183,11 @@ impl Application for Window {
fn view(&self, id: SurfaceIdWrapper) -> Element<Message> {
match id {
SurfaceIdWrapper::LayerSurface(_) => unimplemented!(),
SurfaceIdWrapper::Window(_) => icon_button("input-gaming-symbolic", Svg::Accent)
SurfaceIdWrapper::Window(_) => icon_button("input-gaming-symbolic", Svg::Custom(|theme| {
svg::Appearance {
fill: Some(theme.palette().text),
}
}))
.on_press(Message::TogglePopup)
.style(Button::Text)
.into(),