Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating a unified Linux desktop look
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
OmniVector
n00b
n00b


Joined: 21 Oct 2002
Posts: 37
Location: Rochester, NY

PostPosted: Mon Sep 01, 2003 4:16 am    Post subject: Creating a unified Linux desktop look Reply with quote

Trying to achive a good "unified" look across gtk1, gtk2, and qt apps in Gnome and KDE can be pain in the ass. Especially if you're anal about the way linux looks, like I am. This how-to covers the packages you need, and the configuration setup you'll need to use in order to get all 3 toolkits to play nice in KDE and Gnome.

To get a good look of what you'll see at the end:
before
after

This how-to assumes you have KDE and Gnome already installed.

The emerges:
Code:

USE="+gtk +gtk2 +kde +xmms" emerge redhat-artwork
emerge gtk-theme-switch
emerge =x11-themes/gtk-theme-switch-1.0.1
emerge ttf-bitstream-vera


redhat-artwork: The (in)famous bluecurve theme. Whether you love it or hate it, bluecurve is still the most cross toolkit theme available, and is to date the only theme I know of that looks as consistent as possible across all 3 toolkits.
gtk-theme-switch: This package will allow you to switch your gtk2 themes in KDE. Although this isn't needed for Gnome, this way works in both environments so we'll use this.
gtk-theme-switch-1.0.1: This is needed to switch the gtk1 theme and font. At the time of this howto, 1.0.1 was the most up to date gtk1 version of gtk-theme-switch.
ttf-bitstream-vera: The bitstream fonts -- by far the best looking fonts in Linux, thanks to Bitstream. The microsoft fonts are no longer needed, and I personally think these look better anyways.

After all those things are installed, we need to modify a few X configuration files so that the bitstream fonts are seen in all toolkits.

First up, /etc/X11/XF86Config:
Code:

...
Section "Files"
    RgbPath     "/usr/X11R6/lib/X11/rgb"
    FontPath    "/usr/share/fonts/ttf-bitstream-vera"
    ...
EndSection
...

Find the "Files" Section, and add the bitstream fonts to the very top of the list of fonts.

Next, /etc/X11/fs/config:
Code:

...
catalogue = /usr/X11R6/lib/X11/fonts/75dpi,
   ...,
   /usr/share/fonts/ttf-bitstream-vera
...

Make sure you add a comma to the end of the last font directory before you add the bitstream font directory to the end of the list.

After that, you'll need to restart X to make sure the changes take effect.

Now we can start changing things around. First, log into KDE. We'll go ahead and configure Qt.
Load KDE's Control Center (should be a wrench in the toolbar).

Under the sub section Apperance & Themes, change the following:
Colors: Change color Scheme to "Bluecurve."
Fonts: Choose "Addjust All Fonts" and change the font to "Bitstream Vera Sans 12 pt." After clicking ok, we'll now need to change the fixed width font. Click "Choose..." next to that font, and change it to "Bitstream Vera Sans Mono 12pt."
Icons: Change to "Bluecurve."
Style: Change to "Bluecurve."
Window Decorations: Change to "Bluecurve theme."
We've now fully configured Qt!

Next, lets setup gtk2. Run "switch2" from the console.
You'll need to click the + icon in order to see the font. Change the theme to Bluecurve, and the font to "Bitstream Vera Sans 12 pt."

Next, we need to configure gtk1. Run "switch" from the console. Just like you changed the gtk2 theme/font, you can change the gtk1 theme/font. Although instead of a + symbol, the advanced configuration to change the font looks like a dropdown menu.

Everything will now look identical in KDE! The only exception is gtk1 still doesn't have anti-alias fonts. gdkxft can fix this, but I've been unable to get it to work in XFree-4.3, so I won't cover it. Even if I did get it to work, it is very hard to get working right (I've tried once.. and failed miserably), and it causes conflicts with gtk2. Unless someone can provide a "very" clear, and effective walkthrough just for gentoo, I wouldn't advise trying it.

Now, we need to log into Gnome and configure it. Gnome doesn't really like to adhere to our switch2 program, so the fonts in gnome won't be right.

After logging into gnome, run "gnome-font-properties" from the console. Obviously you'll need to change all your fonts to "Bitstream Vera Sans, 12 pt." Thanks to Gnome 2.2's new theme manager, it will be snap to set the theme. Just run "gnome-theme-manager" from the console, and change the theme to "Bluecurve." (Hint hint KDE developers! it should be this easy to change themes in KDE). Your widgets, icons, and window manager should now have the bluecurve look and feel.

If you want to take it a step further like I have, we can even make GDM feel right at home with a Bluecurve look. You'll need to run "gdmsetup" as root, either through sudo or su. Simply switch to the "Graphical Greeter" tab, and change the theme to Bluecurve.

Bluecurve comes with an xmms theme as well, for the most popular linux mp3 player. There are a few things I wish redhat would get off their arse and make: namely, there is no gkrellm bluecurve theme, and there's no gmplayer bluecurve theme. Your best option if you want a bluecurve media player is kmplayer or gxine. gmplayer uses a skinning system unlike kmplayer, and i've yet to find any bluecurve gmplayer themes.
_________________
-Tristan


Last edited by OmniVector on Fri Sep 05, 2003 12:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
hook
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1398
Location: Ljubljana, Slovenia

PostPosted: Mon Sep 01, 2003 4:29 am    Post subject: Reply with quote

where's the throw-up smiley when you need one :roll:

...well, i don't like the idea of a unified desktop, but i'm sure quite a few guys will really appreciate your post here ..._most_ won't, but still, we're here becasue of choices, and if someone wants it, well, why not ...as long as it's not on by default (which with gentoo nothing is!!:D) i'm ok with it ...not a fan though
_________________
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Back to top
View user's profile Send private message
OmniVector
n00b
n00b


Joined: 21 Oct 2002
Posts: 37
Location: Rochester, NY

PostPosted: Mon Sep 01, 2003 5:54 am    Post subject: Reply with quote

most people don't care what toolkit a program uses. why do you?

at the very least, you can take my suggestions for changing the bluecurve theme and font everywhere. that will make all applications feel the same, and you can customize the kwin or metacity theme, icons, and gdm theme as you please.

i don't think it's quite as important that gnome and kde look the same for users, as it is that the boundaries between qt, gtk, and gtk2 are dropped. i get really tired seeing 3 different look and feels even with bluecurve! the differences are subtle but they are still there.

i guess this is why i own a powerbook, and i am soon replacing my linux desktop with a G5 :)
_________________
-Tristan
Back to top
View user's profile Send private message
red_over_blue
Guru
Guru


Joined: 16 Dec 2002
Posts: 310

PostPosted: Mon Sep 01, 2003 7:39 am    Post subject: Reply with quote

OmniVector,

Great post! You are certainly not alone in wishing for a unified appearance among all apps. Why would I want my desktop to look like a hodge-podge of different apps - it makes it look "thrown together".

You obviously did alot of work and your tutorial is greatly appreciated. Thanks again!



red_over_blue
_________________
All your code are belong to us.
Back to top
View user's profile Send private message
Jevin Sweval
n00b
n00b


Joined: 19 Jun 2003
Posts: 64
Location: Indiana

PostPosted: Mon Sep 01, 2003 6:22 pm    Post subject: Reply with quote

great guide!

thats one of the things i really liked about redhat. now i have it! :D



maybe i'll go back to using gnome... hmm...
_________________
Help me! :(
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Tue Sep 02, 2003 1:00 am    Post subject: Reply with quote

I personally prefer running GTK apps with the geramik theme, so when i run them under KDE they have the same Window decorations (beacuse KWin is the window manager) and the same toolkit "look" (because geramik emulates keramik)
Back to top
View user's profile Send private message
kamilian
n00b
n00b


Joined: 23 Jun 2003
Posts: 59
Location: Sydney, Australia

PostPosted: Tue Sep 02, 2003 10:53 am    Post subject: Reply with quote

Thankyou very much!

I've been wondering if there was a way to make them more uniform so i could use non-Qt based apps with KDE and have a uniform look.

Just as a note, I set my USE flags for KDE and as such have "-gnome -gtk" in there. When I tried to get gtk1 to use the Bluecurve theme via "switch", it would say it had changed to that theme, but it was no different (switch2 changed the gtk2 themes without problems though). If anyone else has that problem, just make sure you set gtk and gtk2 in your USE flags, and xmms if you want the xmms theme.

Code:
USE="+gtk +gtk2 +kde +xmms" emerge redhat-artwork

Are there any other themes beside Bluecurve that have a reasonably consistent look across all toolkits?
_________________
May contain traces of nuts.
Back to top
View user's profile Send private message
OmniVector
n00b
n00b


Joined: 21 Oct 2002
Posts: 37
Location: Rochester, NY

PostPosted: Tue Sep 02, 2003 11:31 am    Post subject: Reply with quote

as someone else said, gerimack does look good in gtk2 and qt, but i'm not sure if a gtk1 port of the theme exists.
_________________
-Tristan
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Fri Sep 05, 2003 10:55 pm    Post subject: Reply with quote

Thank you. This is a great howto/tip. Even though i didn't use the bluecurve theme. I found the font part of this howto VERY helpful, and i think my new favourite font is ttf-bitstream-vera.

Thanks again :)
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
Unne
l33t
l33t


Joined: 21 Jul 2003
Posts: 616

PostPosted: Sat Sep 06, 2003 12:36 am    Post subject: Reply with quote

This is one reason I like fluxbox. The window decorations are all fluxbox decorations, so all you have to change are the fonts and colors of your qt, gtk and gtk2 apps, and it all matches perfectly. Nice post though. :) I'm definitely a fan of a unified look however you manage to get it. Bluecurve isn't my favorite decoration in the world, but it's not the worst thing I've ever seen either.

There are some other themes that have GTK and KDE equivalents. Someone ported Gnome's Gorilla to KDE as an IceWM manager I think, and the icons are ported too. There also are a lot of OSX-clone themes for both KDE and Gnome too. Yay for http://kde-look.org .
Back to top
View user's profile Send private message
trepanne
n00b
n00b


Joined: 23 Aug 2003
Posts: 35

PostPosted: Sun Sep 07, 2003 1:19 pm    Post subject: Reply with quote

thanks for this little guide!

i run mozilla-firebird on top of KDE, and have been bugged by exactly this issues (clashing themes).

i used geramik with keramik, and it's great.

i have only two remaining issues:

1) the smaller problem - i start up GIMP. menu text fonts are correct (i've always used bistream vera), but the point size ignores my settings in switch/switch2, as well as "default-point-size" set in /etc/X11/fs/config. what can i do to make the GIMP font point size match all my others?

2) the bigger problem - i browse traditional-chinese websites. the text in firebird's widget buttons comes up under GTK rules (not KDE); the chinese fonts in the widget buttons are not synched with the KDE chinese fonts on the actual web page content. how to fix that? switch/switch2 assume only a single font, whereas i need two (one for western, one for traditional chinese).

thanks!

trp
Back to top
View user's profile Send private message
hakan
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 252
Location: Aachen, Germany

PostPosted: Sun Sep 14, 2003 5:24 pm    Post subject: Reply with quote

Exists a port of the bluecurv theme where I can make menus translucent?
_________________
-der kleine eine-
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Thu Sep 09, 2004 2:25 pm    Post subject: Re: Creating a unified Linux desktop look Reply with quote

This how-to assumes you have KDE and Gnome already installed.

The emerges:
Code:

USE="+gtk +gtk2 +kde +xmms" emerge redhat-artwork
emerge gtk-theme-switch
emerge =x11-themes/gtk-theme-switch-1.0.1
emerge ttf-bitstream-vera



i get this error
Code:
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/qt/3/lib, headers /usr/qt/3/include using -mt
checking if Qt compiles without flags... no
checking for moc... /usr/qt/3/bin/moc
checking for uic... /usr/qt/3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /usr/kde/3.3/lib, headers /usr/kde/3.3/include
checking for KDE paths... defaults
checking for dcopidl... /usr/kde/3.3/bin/dcopidl
checking for dcopidl2cpp... /usr/kde/3.3/bin/dcopidl2cpp
checking for mcopidl... not found
configure: error: The important program mcopidl was not found!
Please check whether you installed aRts correctly.


!!! ERROR: x11-themes/redhat-artwork-0.98-r1 failed.
!!! Function src_compile, Line 123, Exitcode 1
!!! (no error message)


any ideas?
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
MooktaKiNG
Guru
Guru


Joined: 11 Nov 2002
Posts: 326
Location: London, UK

PostPosted: Thu Sep 09, 2004 3:00 pm    Post subject: Re: Creating a unified Linux desktop look Reply with quote

mahir wrote:
This how-to assumes you have KDE and Gnome already installed.

The emerges:
Code:

USE="+gtk +gtk2 +kde +xmms" emerge redhat-artwork
emerge gtk-theme-switch
emerge =x11-themes/gtk-theme-switch-1.0.1
emerge ttf-bitstream-vera



i get this error
Code:
checking for libjpeg... -ljpeg
checking for Qt... libraries /usr/qt/3/lib, headers /usr/qt/3/include using -mt
checking if Qt compiles without flags... no
checking for moc... /usr/qt/3/bin/moc
checking for uic... /usr/qt/3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /usr/kde/3.3/lib, headers /usr/kde/3.3/include
checking for KDE paths... defaults
checking for dcopidl... /usr/kde/3.3/bin/dcopidl
checking for dcopidl2cpp... /usr/kde/3.3/bin/dcopidl2cpp
checking for mcopidl... not found
configure: error: The important program mcopidl was not found!
Please check whether you installed aRts correctly.


!!! ERROR: x11-themes/redhat-artwork-0.98-r1 failed.
!!! Function src_compile, Line 123, Exitcode 1
!!! (no error message)


any ideas?


Do:
Code:
 ACCEPT_KEYWORDS="~x86" emerge redhat-artwork


I found that the stable version just refuses to compile.
_________________
http://www.mooktakim.com
Athlon XP 2001, Giga-Byte GA-7VRXP MB, 640Mb DDR RAM 333MHz, MSI Geforce 4800SE 128Mb DDR, 40x12x48 Liteon CDRW drive, Flower Cooler, ADSL Router
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Thu Sep 09, 2004 4:59 pm    Post subject: Reply with quote

Also worth mentioning is gtk-qt-engine, it'll use your Qt theme for any GTK things. I don't have very many GTK apps and don't know which ones are 1, 2, +, or whatever other variants exist, but the ones I have looked good on cursory inspection. Except the configuration dialog for Basilisk II, which remained the same ugly white with sharp and aliased edges it always was... I assume that's GTK1 then?
_________________
Work is punishment for failing to procrastinate effectively.
last.fm
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Fri Sep 10, 2004 9:17 am    Post subject: where do i get mcopidl Reply with quote

i cant stand uninteligabel answers.

yea i cant spell. so what.
lol
ne who

where do i find this software mcopidl.
i need to to make redhat-artwork work with kde.
somebody help please.
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
Pixelbrei
n00b
n00b


Joined: 25 Apr 2003
Posts: 62

PostPosted: Mon Sep 13, 2004 1:35 am    Post subject: Reply with quote

Code:

 $ locate mcopidl
/usr/kde/3.2/bin/mcopidl
 $ qpkg -f /usr/kde/3.2/bin/mcopidl
kde-base/arts *
 $

mcopidl is part of arts :)

There are some other Themes that have similar-looking versions for other TKs.

I.E. eXperience for gtk2 goes quite well with kde_xp for qt. Sadly, there's no gtk1 version (at least i didn't find one).

For gtk1/2 there is ThinGeramik, which also takes the color settings from kde/qt, and doesn't look too ugly with the Plastik-qt-theme. I also heard of Plastig for gtk and ThinKeramik for qt, but i didn't try those.

Nice Topic! Keep posting Themes that get along well :)
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Wed Oct 29, 2008 7:27 pm    Post subject: Reply with quote

Hey, I like this one. I put this in /etc/portage/package.use
Code:
x11-themes/redhat-artwork kde cursors gdm icons kdm nautilus


Great HOWTO, now I like Gnome for the first time ever. :) :D


EDIT: Oh crap, that redhat-artwork wants to pull in some KDE4 stuff. :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum