From 912b173c7f4b83913fb726b6afd254a79222d4a0 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 17 Nov 2022 17:32:19 -0500 Subject: [PATCH] fix: use text color for icon button instead --- applets/cosmic-applet-graphics/src/window.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/applets/cosmic-applet-graphics/src/window.rs b/applets/cosmic-applet-graphics/src/window.rs index aee73a38..1e20eac0 100644 --- a/applets/cosmic-applet-graphics/src/window.rs +++ b/applets/cosmic-applet-graphics/src/window.rs @@ -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 { 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(),