Bug 169866

Summary: Gtk2 scrollbar color with KDE
Product: [I don't know] kde Reporter: Steven M. Parrish <smparrish>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: caionnew, luis6674, rdieter
Priority: NOR    
Version: 4.1.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenchot showing the problem

Description Steven M. Parrish 2008-08-26 17:41:02 UTC
Version:            (using KDE 4.1.0)
Compiler:          gcc 4.3 
OS:                Linux
Installed from:    Fedora RPMs

  Description From  Ian Pilcher (arequipeno@gmail.com )  2006-03-22 16:43:59 EDT   (-) [reply]

Description of problem:

When running KDE, the scrollbars of Gtk2 applications always appear as
light blue (Clearlooks default?), ignoring both the KDE color scheme and
the user's selected Gnome theme.


Version-Release number of selected component (if applicable):

gtk2-2.8.15-1


How reproducible:

100%


Steps to Reproduce:

1.  Log in to Gnome and change the theme to something which doesn't use a
    light blue scrollbar (Bluecurve, for example).
2.  Note that Gtk2 applications, such as Firefox and the GIMP now use the
    selected color for their scrollbars.
3.  Log out of Gnome and log in to KDE.
4.  Select a color scheme which doesn't use a light blue scrollbar (just
    about any of them).
5.  Note that Firefox, Thunderbird, and the GIMP still use light blue
    scrollbars.

  
Actual results:

See above.


Expected results:

Gtk applications should honor KDE color scheme.  (At the very least, they
should honor the users Gnome theme.)
Comment 1 Rex Dieter 2008-08-26 17:49:23 UTC
See also
http://bugzilla.redhat.com/186323
for background here.
Comment 2 Alberto Gonzalez 2009-05-22 21:10:04 UTC
The real problem as far as I'm concerned is that the "apply colors to non-KDE applications" does not work for GTK2 apps. I'll attach a screenshot showing my KDE color scheme being light brown and green but Firefox (using the clearlooks GTK2 theme) is gray and blue.

This bug appeared with the upgrade from gtk-engines-2.14 to gtk-engines-2.16. So probably the way GTK now applies a color scheme has changed slightly and needs to be updated in KDE.

NOTE: If you use qtcurve as your GTK2 theme, then the KDE colors WILL be applied correctly. The problem is when using a native GTK theme.

Also, be sure to use a KDE color scheme that's different from the default one in the GTK theme used. If you use the default Oxygen theme for KDE and the default Clearlooks theme for GTK, then you won't notice the bug as both are gray/blue.
Comment 3 Alberto Gonzalez 2009-05-22 21:11:13 UTC
Created attachment 33926 [details]
Screenchot showing the problem
Comment 4 Alberto Gonzalez 2009-08-27 23:12:09 UTC
This problem seems to be fixed now. Well, in fact, the problem I was having with the kde color scheme not being applied to GTK apps was caused by qtcurve. Once I uninstalled qtcurve-kde4 and removed ~/.gtkrc-2.0-kde4 (or something similar), colors were applied correctly to GTK apps.

As for the scrollbars problem, I use gtk-chtheme to change the GTK theme from within KDE and the scrollbars get correctly the colors of each GTK theme.
Comment 5 disabled account 2011-05-27 20:13:22 UTC
This should also be fixed by oxygen-gtk.