LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-31-2006, 05:36 PM   #1
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Rep: Reputation: 15
Changing GTK Styles and Fonts in KDE


I absolutely abhor the look of Gnome applications while I am running KDE. I've tried changing the GTK Styles and Fonts settings in the KDE control center but it doesn't do anything. How do I change it to one of the themes that come with Gnome?
 
Old 12-31-2006, 07:06 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Run the gnome-control-center from a terminal window and make your changes there.
Code:
gnome-control-center
 
Old 12-31-2006, 07:38 PM   #3
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
You can try QtCurve, but that will be just one theme. gnome-control-center is the best way

You can have a look here: http://gentoo-wiki.com/HOWTO_Same_lo...and_GTK_1_apps
The site is Gentoo centric the information is not.
 
Old 12-31-2006, 11:24 PM   #4
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Original Poster
Rep: Reputation: 15
I don't have Gnome installed so I can't use gnome-control-center. But anyways, I understand my problem. In the KDE GTK Styles and Fonts panel, I had two choices: QtCurve and Raleigh. Previously I had QtCurve on and I didn't like the look (it tries to emulate KDE's plastik but fails miserably). Then I tried to switch to Raleigh, but nothing happened. I now know why. The gtkrc file for Raleigh is a blank file with the comment
Code:
#
# This theme is the default theme if no other theme is selected.
#
It has no style commands in it whereas QtCurve does. That's why KDE couldn't change to the Raleigh look and feel.

I've tried to download some other styles from the gnome-look.org website. Some work partially, some don't work at all. All the themes seem to rely on Bluecurve, Clearlooks, or some other theme engine, and I guess those are incompatible with KDE. I guess I just have to stick with QtCurve for now, or install Gnome. If you have any suggestions for a good theme that's compatible with KDE, please let me know.
 
Old 01-01-2007, 02:52 PM   #5
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
Did you try gtk-engine-qt? http://www.kde-look.org/content/show.php?content=9714
 
Old 01-01-2007, 03:00 PM   #6
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
you can download any gtk theme and extract it to your ~/.themes folder. then you can change it pretty easily. there are two ways. First, theres gtk-chtheme, which is an app with no dependencies other than gtk. It can change your gtk theme to any theme in your ~/.themes folder. You can also edit fonts with that app too. Other wise you can directly edit your ~/.gtkrc-2.0 file. Adding line like
Code:
include "/path/to/theme's/gtkrc"
along with all the other stuff you'd need in that file. I reccomend gtk-chtheme.
 
Old 01-01-2007, 03:03 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by anupamsr
This would be the the best solution in my personal opinion. It makes GNOME apps use your KDE themes. On Suse 10, the package is called gtk-qt-engine.
 
Old 01-01-2007, 03:22 PM   #8
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Original Poster
Rep: Reputation: 15
I've tried installing gtk-qt-engine on my openSUSE 10.2, but it conflicts with kcm_gtk (This I am guessing is the kde gtk styles and fonts module. Should I uninstall kcm_gtk?

Quote:
you can download any gtk theme and extract it to your ~/.themes folder. then you can change it pretty easily. there are two ways. First, theres gtk-chtheme, which is an app with no dependencies other than gtk. It can change your gtk theme to any theme in your ~/.themes folder. You can also edit fonts with that app too. Other wise you can directly edit your ~/.gtkrc-2.0 file. Adding line like
Code:
include "/path/to/theme's/gtkrc"

along with all the other stuff you'd need in that file. I reccomend gtk-chtheme.
. Yeah the kde GTK styles and fonts module does exactly that. Still some gtk themes that I have installed still don't work. Also most gtk themes use metacity, which don't have a gtkrc file.
 
Old 01-01-2007, 03:31 PM   #9
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
Quote:
Originally Posted by xbennyboy
. Yeah the kde GTK styles and fonts module does exactly that. Still some gtk themes that I have installed still don't work. Also most gtk themes use metacity, which don't have a gtkrc file.
Could you be lacking the engines? Gtk is not dependent on metacity. You can open a gtk app in Kwin.
 
Old 01-01-2007, 03:37 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
I've tried installing gtk-qt-engine on my openSUSE 10.2, but it conflicts with kcm_gtk (This I am guessing is the kde gtk styles and fonts module. Should I uninstall kcm_gtk?
Thats what I did on my Suse 10.2 installation. If you select gtk-qt-engine for installation in YAST, I think kcm_gtk will be automatically marked for deinstallation.
 
Old 01-01-2007, 03:40 PM   #11
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Original Poster
Rep: Reputation: 15
Well I have installed gtk-qt-engine and it works, although there are some flaws. How is it that when running Gnome all your KDE apps look normal, but GTK apps in KDE look like crap?

I think I am lacking the engines. I know GTK isn't dependent on metacity, but the themes are.
 
Old 01-02-2007, 12:14 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The gnome/gtk themes are not dependent on Metacity. If you need more gtk themes, install the gtk engines package.
 
Old 01-02-2007, 01:56 PM   #13
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Original Poster
Rep: Reputation: 15
Quote:
The gnome/gtk themes are not dependent on Metacity. If you need more gtk themes, install the gtk engines package.
Haha, sorry my mistake. I was downloading metacity themes, stupid me. I mistakenly thought that gtk themes needed metacity because I only saw a metacity folder inside the themes I downloaded. Anyways, I installed the gtk engine package and tried to load a gtk theme, but still no go.
 
Old 01-14-2007, 04:58 AM   #14
Drone4four
Member
 
Registered: Feb 2006
Distribution: Slackware, Gentoo, Manjaro
Posts: 205

Rep: Reputation: 30
I have been searching all over the internet to find a guide which explains how to configure apps which rely on GTK, like X-Chat. The default X-Chat theme is extremely ugly by default IMHO.
 
Old 01-14-2007, 04:56 PM   #15
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Original Poster
Rep: Reputation: 15
Okay, I've tried all the suggestions (even installed Gnome to try out gnome-control-center) but they don't work. It seems to me that the themes are only partially loaded. Some elements of a GTK app are changed like the progress bar and check boxes, but the rest is still the ugly default theme.

Also, whenever I load the Smart package manager, the gtk themes work correctly! It is the only GTK program that loads the entire theme.

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using KDE styles in GTK apps? BigFoot13 Linux - Desktop 5 11-14-2006 07:02 PM
GTK/Qt styles problem evilmonkey Ubuntu 3 05-14-2006 01:50 PM
GTK 1 apps Fonts problems on KDE tpe SUSE / openSUSE 0 05-11-2005 12:41 PM
GTK+ Gui Styles drisay Programming 0 01-11-2005 01:04 PM
How to set Gtk fonts apps running on KDE ? nooky59 Mandriva 3 04-09-2004 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration