Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make overlay icons themable #106

Open
ilya-fedin opened this issue May 28, 2020 · 0 comments
Open

Make overlay icons themable #106

ilya-fedin opened this issue May 28, 2020 · 0 comments

Comments

@ilya-fedin
Copy link

Sensor icons are taken from the current icon theme:

icon = gtk_icon_theme_load_icon(icon_theme,
stock_icons[icon_type],
DEFAULT_ICON_SIZE,
GTK_ICON_LOOKUP_USE_BUILTIN,
&error);

But overlay icons are hardcoded with /usr/share/pixmaps:

static const gchar * const temp_overlay_icons[] = {
PIXMAPS_DIR "very-low-temp-icon.png",
PIXMAPS_DIR "low-temp-icon.png",
PIXMAPS_DIR "normal-temp-icon.png",
PIXMAPS_DIR "high-temp-icon.png",
PIXMAPS_DIR "very-high-temp-icon.png"
};

Can this be unhardcoded? 🤔

Expected behaviour

Sensor icon and its overlay is taken from the icon theme

Actual behaviour

Only sensor icon is taken from the icon theme
image

Steps to reproduce the behaviour

Install papirus-icon-theme

MATE general version

1.24.0

Package version

mate-sensors-applet-1.24.0

Linux Distribution

NixOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant