Description of problem: I quess firefox is compiled with GTK3 in f22, right? All tooltips in firefox GTK3 has now a dark background color but it's impossible to set it with gtk-widgets.css in a theme. Ie. BlueMenta theme from mate desktop. Here i use those settings to set the tooltips. .tooltip { padding: 4px; border-style: solid; border-width: 1px; border-color: shade(@theme_tooltip_bg_color, 0.50); border-radius: 0px; background-color: @theme_tooltip_bg_color; color: @theme_tooltip_fg_color; text-shadow: none; } Here i use a yellow background (background-color:) with black font-color (color:) for tooltips. Firefox accept only the setting for the font color but not for the background, in result you have a dark font-color on a dark background inside firefox for tooltips. Using 'gtk3-inspector' shows me that firefox has only one widget called 'MozContainer' but none style classes for using in themes. Normaly, gtk3-inspector shows several widgets and style classes for an application, which shows me that firefox GTK3 version isn't ready developed. Don't understand me wrong, but as a theme developer for mate desktop i'm searching for an solution to fix this issue. Shure, i can change the font-color for tooltips to white, but that changed the style of notification for all other applications, which is whorse. Before you say 'but in adwaita or other themes is everything OK, this is a coincidence ;) Because adwaita use a black background with white font-color already for tooltips. So, is there a firefox developer irc channel or mailing list where i can find help?
Does other Gtk3 applications honour the tooltip background? If so that should be fixed in Firefox.
Yes, other GTK3 apps displays the tooltips well. 2 sreenshots (gedit and firefox) with Bluementa theme in f22
Created attachment 1002851 [details] firefox
Created attachment 1002852 [details] gedit
Actually it looks like a bug in Gtk rendering engine. The tooltip background is not controlled by Firefox but it's rendered by gtk_render_background()/gtk_render_frame() sequence.
Created attachment 1003849 [details] testcase Can you please test this sample? build by: gcc -o test2 -g -O0 test2.c `pkg-config --libs --cflags gtk+-3.0` launch ./test2 and see if the toolbox honour the theme background. Thanks!
Now i see the normal tooltip background from theme, but only if i hover the mouse over minimize/maximize/close buttons from windows-manager decoration. Inside the test app i don't have any tooltip. Not shure if that is what expected.
Created attachment 1003873 [details] test-app
The tooltip is drawn inside the window. You should see a square drawn with tooltip color on white window background.
I see the test tooltip rectangle in the app window has a white background. Is that correct?
yes, as you see in atachment the square drawn is white (should be yellow) on white window background. But i will switch to a baremetal installation to check it again.
Okay, moving to Gtk team.
Testcase works as expected with Adwaita and HighContrast. -> bug in the theme. Try adding .background to the selector, maybe.
moving back to firefox, but most likely a theme problem. I just can't find the package and bugzilla is too slow.
Thanks Matthias, i edited the theme settings to .tooltip, .tooltip.background { padding: 4px; border-style: solid; border-width: 1px; border-color: shade(@theme_tooltip_bg_color, 0.50); border-radius: 0px; background-color: @theme_tooltip_bg_color; color: @theme_tooltip_fg_color; text-shadow: none; } ...and i see the expected yellow background in the test app.
Created attachment 1004578 [details] test app with expected background
and i forgot to say after a restart of firefox the tooltips displays well :) Thanks all
mate-themes-1.10.0-0.2.git20150320.488e77b.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/mate-themes-1.10.0-0.2.git20150320.488e77b.fc22
Package mate-themes-1.10.0-0.2.git20150320.488e77b.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mate-themes-1.10.0-0.2.git20150320.488e77b.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-4359/mate-themes-1.10.0-0.2.git20150320.488e77b.fc22 then log in and leave karma (feedback).
Package mate-themes-1.10.0-0.3.git20150320.488e77b.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mate-themes-1.10.0-0.3.git20150320.488e77b.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-4359/mate-themes-1.10.0-0.3.git20150320.488e77b.fc22 then log in and leave karma (feedback).
mate-themes-1.10.0-0.3.git20150320.488e77b.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.