Bug 279226 - After upgrade to KDE 4.7 all tooltips in LibreOffice are black on black and illegible (theme regression)
Summary: After upgrade to KDE 4.7 all tooltips in LibreOffice are black on black and i...
Status: CLOSED DOWNSTREAM
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk2-engine (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
: 281058 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-02 23:46 UTC by Robert Simmons
Modified: 2011-09-13 22:20 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Notice the black tooltip right in the center (17.43 KB, image/png)
2011-08-02 23:46 UTC, Robert Simmons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Simmons 2011-08-02 23:46:52 UTC
Created attachment 62490 [details]
Notice the black tooltip right in the center

Version:           unspecified (using KDE 4.7.0) 
OS:                Linux

I upgraded to KDE 4.7 and after the upgrade all the tooltips in LibreOffice are suddenly black text on a black background.

Reproducible: Always

Steps to Reproduce:
1) Install Libre Office and KDE 4.7.0
2) Open a LibreOffice document.
3) Hover over anything to make a tooltip appear.

Actual Results:  
Black text on black background tooltips.

Expected Results:  
Black text on blue background like the rest of the tooltips.

I am using the following versions:
Kubuntu 11.04
Libre Office 3.3.2
KDE 4.7.0
Comment 1 Thomas Lübking 2011-08-03 00:15:39 UTC
From the screenshot it's not possible to say but i guess compositing has no impact on this, but it's more a widget style proxy issue (OOo paints hardcoded textcolors on styled backgrounds, borrowed gtk+ disease...) and Hugo probably was mad ;-) enough to choose a non bright background for the tooltip background - looks like window text...

re-assigning, pass back if this happens only with compositing.
Comment 2 Robert Simmons 2011-08-03 00:19:50 UTC
It happens with or without compositing.
Comment 3 Hugo Pereira Da Costa 2011-08-03 07:40:32 UTC
Its likely a problem with libreoffice and color scheme.
1/ new oxygen color scheme uses black background and white foreground for tooltips.
2/ libreoffice does not use the right foreground color (gets the default one: black).

- could you try use a different (non oxygen) colorscheme and see if that fixes the issue

- try play (in the "advanced" color settings) with the tooltip foreground color and see whether libreoffice updates accordingly

- confirm that you are using oxygen-gtk as a style for libreoffice (and not the Qt wrapper)

Thx

Hugo
Comment 4 Robert Simmons 2011-08-04 01:46:02 UTC
The only color scheme available is "LibreOffice."  As long as I am looking in the right place:
Tools (menu) > Options > LibreOffice > Appearance > Color Scheme > Scheme

Also, in trying to change the tooltip theme, I have exposed another bug that causes systemsettings to crash any time the tooltip theme is changed.  :(

I've reported that one here:
https://bugs.kde.org/show_bug.cgi?id=279342

I should join the testing team for KDE, because if there is a bug, I will run headlong into it.
Comment 5 Hugo Pereira Da Costa 2011-08-04 11:38:17 UTC
I was talking about "kde" colorscheme
systemsettings->Application Appearance->Colors.

As for the other bug, well, apparently is a Plasma related theme, and should be fixed, in more recent version of KDE. (should be 4.7.1)
Comment 6 Robert Simmons 2011-08-05 01:07:43 UTC
Ok, when I change the color scheme there to honeycomb, the background color changes to gold with black text and it legible.

Also, I noticed that with the scheme set to oxygen, the tooltips within Libre are black on black, but if you hover over "Minimize", "Maximize", "Close" the tooltips are white text on black background.  But, with it set to honeycomb, all the tooltips are black text on gold background.  The style of the tooltip is slightly different, however.  The ones inside Libre have squared corners and the others have rounded corners.
Comment 7 Robert Simmons 2011-08-05 01:09:20 UTC
So, I think that changing the KDE color scheme is a good workaround for now, until the oxygen tooltips are fixed.
Comment 8 Hugo Pereira Da Costa 2011-08-05 06:51:42 UTC
The fact that the tooltips are square is a limitation imposed by lire-office.
As for the original bug, it is due to the fact that the wrong tooltip foreground color is used.
Likely a lire-office bug.
Best way to confirm would be to compile oxygen-gtk in debug mode (see readme) and post the output when showing tooltip.
Comment 9 Hugo Pereira Da Costa 2011-08-05 09:15:55 UTC
Forgot to mention: I cannot reproduce.
So:
1/ which version of LibreOffice are you using (I use 3.3.2)
2/ which version of oxygen-gtk (I have trunk but also works with 1.1.1)
3/ make sure you don't have some "gtkrc" file that would mess-up oxygen-gtk
(you can check $HOME/.gtkrc-2.0, $HOME/.gtkrc-2.0-kde $HOME/.kde/share/config/gtkrc*)

It is recommanded to remove all color settings in any of the files above, since oxygen-gtk should be able to deal with colors by itself.
Comment 10 Hugo Pereira Da Costa 2011-08-05 09:17:17 UTC
http://i.imgur.com/xLbeD.png

is a screenshot of my nice-looking libreoffice tooltips
Comment 11 Robert Simmons 2011-08-05 18:02:19 UTC
I am using LibreOffice 3.3.2 and gtk2-engines-oxygen 1.0.3.  Both are from Ubuntu's main package repository.

There are no color settings in the gtkrc file.

I am using Kubuntu 11.04, but I will install the development branch which has gtk2-engines-oxygen version 1.1.0.  And when I have time this weekend I will recompile gtk-oxygen in debug mode and post the output.
Comment 12 Christoph Feck 2011-08-30 22:46:49 UTC
*** Bug 281058 has been marked as a duplicate of this bug. ***
Comment 13 Hugo Pereira Da Costa 2011-08-31 06:25:47 UTC
As said above, I'm unable to reproduce.

People are encouraged to 
- report whether they are using the Gtk or the Qt interface of libreoffice
- make sure they use the oxygen-gtk engine
- use a recent enough version of oxygen-gtk
- possibly change color scheme.
Comment 14 Cédric Bellegarde 2011-08-31 06:49:22 UTC
It's a bug in libreoffice... Switch back to old color scheme and it will work... And report bug to Libreoffice/Qt devs.
Comment 15 Hugo Pereira Da Costa 2011-08-31 06:55:59 UTC
so closing as downstream.
(to be more precise: I think it is a bug in libreoffice's Qt interface)