! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wrong colors
Status:
RESOLVED: MOVED
Product:
Xfce4-mpc-plugin
Component:
General

Comments

Description Alexander 2017-10-14 10:25:13 CEST
Created attachment 7366 
Wrong colors, several plugins affected

Plugin does not take correct color from theme, when the panel is pale-grey, plugin's background is dark-grey/black.
Affected several plugins:
mpc,
date and time,
netload,
genmon.
Comment 1 Alexander 2017-10-14 10:27:27 CEST
Should I create bugs for all affected plugins?
Bug looks the same.
Comment 2 Landry Breuil editbugs 2017-10-18 21:25:31 CEST
I dont have that issue here, so i guess it depends on your theme... using greybird here, works fine.
Comment 3 Alexander 2017-10-18 22:17:48 CEST
(In reply to Landry Breuil from comment #2)
> I dont have that issue here, so i guess it depends on your theme... using
> greybird here, works fine.

The problem is: different panel plugins use different color ID for the same element. Looks like this.  So, the problem is not in theme. May be Greybird has the same color for different IDs (for example, 'background selected' and 'backgrond highlated'). In xfce4-slate theme the problem persists. So, may be that'll be enough check bacground color ID in weather, tray or windows switcher plugin (correct colors) and check the same in four plugins in first post. I guess the IDs differ.
Comment 4 Landry Breuil editbugs 2017-10-18 22:26:13 CEST
At least in mpc (which i wrote, i only sort of co-maintain datetime and netload) i do nothing specific to the background, there's no 'background color id' or css class applied to the background widget to my knowledge...
Comment 5 Alexander 2017-10-18 22:43:59 CEST
>At least in mpc (which i wrote, i only sort of co-maintain datetime and netload) i do nothing >specific to the background, there's no 'background color id' or css class applied to the >background widget to my knowledge...

CSS? What engine does the plugin use? GTK3 and not GTK2? xfce4 4.12 uses GTK2, at least in Fedora.
Comment 6 Landry Breuil editbugs 2017-10-19 07:58:58 CEST
I stand corrected, be it with gtk2 or gtk3, in the mpc code, there's nothing specific being done about the styling (just look at the code), so the theme colors should just apply.... and mpc plugin uses gtk3 since 0.5.0. Ask the xfce4-slate theme developer ? But from what im seeing on your screenshot, that looks like a theme issue where it's only written for a version of gtk and doesnt support multiple versions - have you tried with other themes ?
Comment 7 Alexander 2017-10-19 18:49:20 CEST
Looks like mpc pluging (and all with problem) takes colors from gtk3 themes, and most of panel plugins uses gtk2 settings.
All themes affected.
Look at theese screenshots:
https://ibb.co/k9245m
https://ibb.co/dnqfd6
GTK2 theme is oxygen-gtk and GTK3 theme is Breeze.
Sylphhed, xfce4-panel and most of xfce4-panel plugins (tray, window switcher, window mwnu, clock, timer, weather, cpu monitor) use colors of GTK2 theme.
EasyStroke and some plugins (mpc, netmon, getmon) use colors of GTK3 theme.
Comment 8 Landry Breuil editbugs 2017-10-19 19:16:04 CEST
Well, that's... expected. Unless you have a single unified theme that does both Gtk2 and Gtk3, you cant decide which plugin uses which theme, the Gtk3 plugins will use the Gtk3 theme and the Gtk2 plugins will use the Gtk2 theme. In your case i suppose your distro updated some plugins to their Gtk3 version.
Comment 9 Landry Breuil editbugs 2018-12-25 10:20:42 CET
Closing, theming issue imo, not plugin-specific..
Comment 10 Git Bot editbugs 2020-05-23 00:14:33 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-mpc-plugin/-/issues/2.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #13922

Reported by:
Alexander
Reported on: 2017-10-14
Last modified on: 2020-05-23

People

Assignee:
Landry Breuil
CC List:
1 user

Version

Version:
unspecified

Attachments

Wrong colors, several plugins affected (22.72 KB, image/jpeg)
2017-10-14 10:25 CEST , Alexander
no flags

Additional information