PDA

View Full Version : HOWTO: Make QT apps look more Gnome'ish


FLeiXiuS
August 13th, 2005, 09:58 AM
Ever wonder how to get your QT/KDE applications to look more "gnome-like"? Well now this is the answer you've been waiting for.

Kassetra was greatly angered after installing skype and noticing how large and UGLY everything really was. No offense to KDE users, BUT WOW! It was horrible. So whats the solution?

Polymer QT Theme
This sorta looks exactly like gnomes clearlooks. So users will enjoy what they see.

Before / After Screenshots Below!

ALRIGHT LETS DO IT
Note: The "$" symbol denotes a terminal command.

1.) You will need to install qt3-qtconfig in order to change the styles.
$ sudo apt-get install qt3-qtconfig

2.) Now it's time to install the theme. Lucky I have created a binary package this way you don't have to go through and download the thousands of KDE/QT libs.

HOARY USERS
$ wget http://fleixius.com/files/downloads/polymer-0.3.1_0.3.1-1_i386.deb
$ sudo dpkg -i polymer-0.3.1_0.3.1-1_i386.deb

BREEZY USERS
$ wget http://fleixius.com/files/downloads/polymer-0.3.2_0.3.2-1_i386.deb
$ sudo dpkg -i polymer-0.3.2_0.3.2-1_i386.deb


3.) Lastly install msttcorefonts. (This are not required but it makes the style look SMOOTH!)
$ sudo apt-get install msttcorefonts

4.) Now that the files are installed lets get to the config!
$ qtconfig

5.) Lets change the font before hand to make it look even sweeter in the end. I decided to use Trebuchet MS 10pt. Make the following changes...

-Default Font-
Family: Trebuchet MS
Style: Normal
Point Size: 10


6.) Time to make it SCHAWEET! Click on the Library Paths tab. In the input-box at the bottom enter "/usr/plugins" then click add.

7.) Now in the Appearance tab, select Polymer as your GUI style.


8.) Sweet eh? Got to File>Save. Exit the program and your almost done!


Another great benefit of this theme is that it has TRANSPARENCY!!
$ polymer-config

Down around the bottom you'll see "KDE Style Settings", chagne the "Transparency Engine" to "Software Tint" and then close the application. You will be prompted to save, click yes of course.

How sweet is that?

EDIT: For other KDE applications, you'll need kcontrol.
(Credits: GilGalad)

1.) Instal kControl
$ sudo apt-get install kcontrol

2.) Configuring the new theme.

$ kcontrol


3.) Click "Appearance" then "Style". From here select the "Polymer" theme. Save and exit.


Before
http://fleixius.com/files/pictures/before.png

After
http://fleixius.com/files/pictures/after.png


Credits:
Kassetra: For the motivation of installing over 30megs of QT/KDE libraries and for 2 hours on skype :-). I have screenshots to prove it... :roll: She also found Polymer, so give a w00t w00t when you see her.
Polymer Project: http://static.int.pl/~mig21/dev/releases/polymer/#screenshots
KDE: Thanks for providing so many libraries to install!!!


EDIT: Step 7 added and fixed the msstcorefonts -- Breezy/Hoary Debs

MBro
August 13th, 2005, 06:01 PM
Good work, Stop those things from looking but ugly

benplaut
August 13th, 2005, 06:55 PM
typo:

msttcorefonts instead of msstcorefonts

great tutorial... i was using a jerry-rigged solution with a bit of tweaking in qtconfigm but this makes it look alot better :grin:

celticmonkey
August 17th, 2005, 01:40 AM
This worked great. Skype really didn't look right before. Now it looks fantastic!

crvendramini
August 17th, 2005, 05:39 AM
Great job!!!

:)

Baltor
August 17th, 2005, 05:27 PM
This is really awesome! I can finally stand to look at my qt apps.

junior aspirin
August 17th, 2005, 05:46 PM
looking nice, one thing does audacity use qt? because it still looks ugly!

matthew
August 17th, 2005, 06:32 PM
I love the idea. It isn't working on most of my kde apps. The qtconfig windows are affected, but a quick test of several random k-apps showed no effect on kpdf, kvim, kparted or ktuberling. Bummer...I wonder if I missed something...hmm <doublechecks work by scrolling up in editor and re-running all commands> Nope. I just saw another poster showing no effect in Audacity either.

dbeckham32
August 17th, 2005, 07:43 PM
Great tweak!! All bow and pay homage to FLeiXiuS!

arnieboy
August 17th, 2005, 07:54 PM
fleixius-
I owe u a six pack for this one.
-arnieboy

Remix_88
August 18th, 2005, 07:48 AM
Great HOW-TO!

I was using a manually hacked '~/.qt/qtrc' to get my QT apps looking a little less ugly. This is a much nicer solution and I still don't need to install any kdelibs or kcontrol, Yah!

The Polymer theme is a nice find. 'esvn' and 'lincvs' (the only QT apps I use) look pretty now so I am a very happy man :grin:

DShafik
August 21st, 2005, 02:23 PM
I had to close qtconfig after adding the path and re-open it to be able to select the polymer theme, other than that, it works great!

Thanks :D

- Davey

FLeiXiuS
August 21st, 2005, 05:43 PM
Yeah I forgot to mention to change your GUI Style to Polymer....

Thanks guys :-)...

LaSSarD
August 29th, 2005, 05:30 PM
Great how-to! I think it'd be even better if you edit a little mistake you did: it's not msstcorefonts, but msttcorefonts ;)

miscz
August 29th, 2005, 08:36 PM
There's even better style for Gnome integration - QtCurve (http://www.kde-look.org/content/show.php?content=5065), it can be easily made to look like Clearlooks (http://img376.imageshack.us/my.php?image=zrzutekranu0fl.jpg) or whatever colour variation you might be using. Throw in some Bluecurve (http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/redhat-artwork-0.128-1.i386.rpm) or Gnome-Mix (http://kde-look.org/content/show.php?content=27788) icons and you get pretty consistent desktop.

FLeiXiuS
August 31st, 2005, 02:33 PM
Great how-to! I think it'd be even better if you edit a little mistake you did: it's not msstcorefonts, but msttcorefonts ;)

Woops, yes that has been fixed. Thank you and enjoy!

Swad
August 31st, 2005, 02:50 PM
Hmmm... K3B menu fonts before and after look the same--big and ugly. Everything seemed to take per what you outlined in your original post in terms of setting it up, though. :(

edit: I downloaded Skype as a test and any font changes I did in qtconfig applied and I easily made Skype look like the rest of my Gnome apps. Apparently K3B is controlled by something else :/

edit2: amaroK is doing the same thing. I must be missing something that you guys have (I've read the OP a couple times and have that squared away).

LaSSarD
August 31st, 2005, 04:09 PM
Thank you, FLeiXiuS.
Just wondering... is there any way to get opera using this theme? The top bar (File Edit View ...) and its content is still horrible. btw, skype didn't get this light style on your screenshot, it is gray.

angkor
August 31st, 2005, 06:28 PM
Ooo...very nice indeed. Thanks a bunch Flexius

GilGalad
September 2nd, 2005, 07:56 AM
Hmmm... K3B menu fonts before and after look the same--big and ugly. Everything seemed to take per what you outlined in your original post in terms of setting it up, though. :(

edit: I downloaded Skype as a test and any font changes I did in qtconfig applied and I easily made Skype look like the rest of my Gnome apps. Apparently K3B is controlled by something else :/

edit2: amaroK is doing the same thing. I must be missing something that you guys have (I've read the OP a couple times and have that squared away).

If you want to change the look of k3b and other kde applications you will need to install kcontrol and select Polymer in the Appearence->Style tab.

idn
September 2nd, 2005, 10:42 AM
Awesome



You could always use gizmo project instead of skype, that uses gtk so integrates into your desktop really well.



Also the UI is much better than skype's

majikstreet
September 3rd, 2005, 03:39 PM
I love you!

I only had one problem. After I added /usr/plugins, I had to save qt-config then close then run qt-config again, then choose polymer.



Anyway, skype looks wonderful!

majikstreet

benplaut
September 3rd, 2005, 06:48 PM
doesn't work in breezy, unfortunately :mad:

FLeiXiuS
September 4th, 2005, 01:34 AM
I'll have to see if i can manage to create a port for breezy users.

As for k3b / opera I'll reasearch and get back to you guys. It's late and I'm tired.. :-)

FLeiXiuS
September 4th, 2005, 01:36 AM
If you want to change the look of k3b and other kde applications you will need to install kcontrol and select Polymer in the Appearence->Style tab.

Awesome, I just test this and it did work flawlessly.

darkmatter
September 4th, 2005, 02:51 AM
You could also try the following program, whick is designed to unify the various graphics toolkits (allowing qt to use gtk+, etc)

http://www.kde-look.org/content/show.php?content=13010

parktownprawn
September 4th, 2005, 08:46 AM
doesn't work in breezy, unfortunately :mad:

Seems like breezy uses newer/different qt libraries. The good news is that it's really easy to compile.

down load the source from here (http://static.int.pl/~mig21/dev/releases/polymer/)

then you need to install the developement libraries
sudo apt-get install qt3-apps-dev

unpack the source in some appropriate place go to the created directory and do the usual
./configure
make
sudo make install

if you would rather make a .deb package install checkinstall and change the last line to sudo checkinstall

The bad news is that installing the newer qt libraries may neccitate removing some programes which rely on the old qt libraries and have not been updated for breezy yet - like lyx-qt :(

Edit: lyx-qt has been updated yipeee :D
Edit2: changed link to sources - the one on kde-look doesn't seem to work

pholie
September 5th, 2005, 02:56 AM
Thank you, FLeiXiuS.
Just wondering... is there any way to get opera using this theme? The top bar (File Edit View ...) and its content is still horrible.

Yeah, opera doesn't use qt styles by default, i already sent them a bugreport. But you can enable it when you run opera --style default. Look also here (http://my.opera.com/forums/showthread.php?threadid=73577).

pholie
September 5th, 2005, 02:59 AM
But i still wonder why some KDE apps (akregator, kmail) have bigger fonts in GNOME (or xfce) than in KDE?!

Pikapooh
September 5th, 2005, 03:24 AM
It is probably DPI thingie. In Gnome u can set DPI via System->Preferences->Fonts. KDE AFAIK read DPI from config file (xorg.conf). If u want to have same DPI search this forum for 'xdpyinfo'.

pholie
September 5th, 2005, 03:51 AM
Yeah, i have DisplaySize in xorg.conf set for my monitor dimensions. xdpyinfo says: resolution: 73x74 dots per inch, so I set in gnome DPI to 72 (before it was 96). Now KDE apps look as small as in KDE. Thanks

MrJack
September 5th, 2005, 05:06 AM
Thank you! :D
Now i can actualy work with qt apps ...

FLeiXiuS
September 6th, 2005, 12:49 AM
But i still wonder why some KDE apps (akregator, kmail) have bigger fonts in GNOME (or xfce) than in KDE?!

I'll experiment with them later tonight. Hopefully I can find a solution for you.

As for breezy users, follow the wonderful guide provided ahead. Thankyou parktownprawn!

And for everyone...Sorry for being inactive..work is really catching ahold of me. I'm going to try to get more time to the forums shortly.

Skebaristi
September 8th, 2005, 02:05 PM
Hell yeah! Thanks a bunch! Why didn't I try to look here for a solution to butt-ugly skype and hplip... I'm dumb...

THANKS!

EDIT: Ugh... Quoted the original by accident :) ******* I'm dumb :) :)

newen
September 13th, 2005, 09:15 AM
Seems like breezy uses newer/different qt libraries. The good news is that it's really easy to compile.

down load the source from kde-look (http://www.kde-look.org/content/show.php?content=27968&PHPSESSID=df76bc402f16b5650578c70bbeddec6a)

then you need to install the developement libraries
sudo apt-get install qt3-apps-dev

unpack the source in some appropriate place go to the created directory and do the usual
./configure
make
sudo make install

if you would rather make a .deb package install checkinstall and change the last line to sudo checkinstall

The bad news is that installing the newer qt libraries may neccitate removing some programes which rely on the old qt libraries and have not been updated for breezy yet - like lyx-qt :(

Edit: lyx-qt has been updated yipeee :D


I have tryed compiling, but i get this:

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

what I need now?

EDIT: if only anyone could upload a deb for breezy...

foxy123
September 13th, 2005, 09:44 AM
I have tryed compiling, but i get this:

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

what I need now?

EDIT: if only anyone could upload a deb for breezy...
you need to install dev kde libraries.. (kdelibs with dev).

FLeiXiuS
September 13th, 2005, 10:04 AM
I'll experiment with them later tonight. Hopefully I can find a solution for you.

As for breezy users, follow the wonderful guide provided ahead. Thankyou parktownprawn!

And for everyone...Sorry for being inactive..work is really catching ahold of me. I'm going to try to get more time to the forums shortly.


I know this may sound silly, but it appears that some of my QT applications only search for the QT style upon configuration. I'm not sure if it stores it's configurations for faster loading times. But when I reinstalled the application, things worked like a charm. New STYLE and all. I'll see if this is a bug or if there is another possibly easier fix.

parktownprawn
September 13th, 2005, 11:01 AM
I have tryed compiling, but i get this:

checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

what I need now?

EDIT: if only anyone could upload a deb for breezy...

urk - they have updated the polymer sources so that my instructions no longer work - i'll get back to you. You can try install the attached deb (unzip it first).

parktownprawn
September 13th, 2005, 11:59 AM
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!


i don't know whats up with the new sources from kde-look.
The sources from here (http://static.int.pl/~mig21/dev/releases/polymer/) should compile as per my original howto (http://www.ubuntuforums.org/showpost.php?p=332825&postcount=27)

frodon
September 13th, 2005, 01:01 PM
Nice guide !

However i still have some problems getting the good fonts with K3B, all i did is follow this guide and then install kcontrol and select the polymer theme.
Any idea ?

sinbad782
September 13th, 2005, 01:12 PM
This is pretty good. I was wondering about this for ages. I don't know of any small applet that would do this automatically (you can get one for KDE called something like gtk-qt-engine or such), but that would be a nice addition.

What I ended up doing in the end was this:

1.) Changing all the QT fonts in kcontrol to match the GNOME ones.
2.) Installing a couple of extra colour schemes from kde-look.org and then installing these in kcontrol. I found that 'clearlooks' and 'almost industrial' seem to work best with how I have GNOME set up.

PJS

digits
September 14th, 2005, 02:58 PM
great !!!!

does anybody of you know something similar for these stupid java progs ? they really mess up.

thank you!

greetings,
digits

majikstreet
September 14th, 2005, 06:33 PM
**i didn't even see the guide above.. following now :)


The correct way to install it on breezy is to apt-get the qt3-apps-dev or whatever then download the .zip from earlier, install that deb in the zip (you must apt-get remove polymer-0.3.1 first though!) then open qtconfig and select polymer! and save and voila!

beow
September 17th, 2005, 10:43 AM
Thanks for the tip! qcad is now a superb program! I used the "sans serif" font instead of Trebuchet to get an even more gnomish look.

beow
September 17th, 2005, 10:45 AM
Sorry for the quoting... "Quote message in reply?" should maybe not be default in a "quick reply"...

rwabel
September 23rd, 2005, 07:31 PM
thanks alot for the howto. There is a debian sid package now which works fine in breezy. I made a howto on the ubuntu wiki page: https://wiki.ubuntu.com/QtGnome with some additions (debian packages and another font (XLinSans)

beefsprocket
September 23rd, 2005, 09:50 PM
So what am I missing here? I've installed polymer both from .debs and from various versions of source. In every instance it installs properly but I cannot figure out how to get the glass looking theme pictured here:

http://kde-look.org/content/pre1/27968-1.jpg
http://kde-look.org/content/pre1/27968-1.jpg

My style looks like the 2nd one with any version I use. I can't get either of the other two styles. Am I missing something really simple here? The fact that it installs or compiles and installs leads me to belive that it is not my system causing this -- rather it is a PEBKAC or... I don't know? Grr ](*,)

Using Breezy 5.10 with Kde3.5beta (and have nothing but good things to say about the combination).

rwabel
September 24th, 2005, 05:14 AM
So what am I missing here? I've installed polymer both from .debs and from various versions of source. In every instance it installs properly but I cannot figure out how to get the glass looking theme pictured here:

http://kde-look.org/content/pre1/27968-1.jpg
http://kde-look.org/content/pre1/27968-1.jpg

My style looks like the 2nd one with any version I use. I can't get either of the other two styles. Am I missing something really simple here? The fact that it installs or compiles and installs leads me to belive that it is not my system causing this -- rather it is a PEBKAC or... I don't know? Grr ](*,)

Using Breezy 5.10 with Kde3.5beta (and have nothing but good things to say about the combination).
have tried to play with kcontrol? I don't use KDE normally, therefore I can't really help u with getting it tweak to look like on the image.

beefsprocket
September 24th, 2005, 11:01 AM
Umm... Kcontrol is where I've been trying to make the changes. I've used polymer-config and qtconfig as well but to no avail.

psychicdragon
September 28th, 2005, 02:24 PM
Thanks a lot for this. Now if only we could somehow make qt apps use the gtk file selector as well.

yesidh
September 30th, 2005, 05:19 PM
Hello, thanks is it very useful, but it didn't worked in Kdevelop, what can I do?

def_
October 1st, 2005, 12:30 PM
hi,
can someone explain me why, upgrading from 5.04 to 5.10, this tutorial wont work any more? Now i can configure fonts via qtconfig, but the interface "polymer" is no longer present in the interface list!

Any sugestion?

parktownprawn
October 2nd, 2005, 02:40 AM
hi,
can someone explain me why, upgrading from 5.04 to 5.10, this tutorial wont work any more? Now i can configure fonts via qtconfig, but the interface "polymer" is no longer present in the interface list!
Any sugestion?

see http://ubuntuforums.org/showpost.php?p=332825&postcount=27

also try using qtconfig-qt3.

qtconfig might be bringing up qtconfig-qt4 which configures applications using qt4 rather than qt3.

majikstreet
October 2nd, 2005, 08:10 PM
HOWTO Gnomeify Skype on Breezy:
**DO THIS IN THE TERMINAL**


sudo apt-get install qt3-apps-dev

wget http://www.majikstreet.org/ubuntu/polymer-0.3.2.zip

unzip polymer-0.3.2.zip

sudo apt-get remove polymer-0.3.1*

sudo dpkg -i polymer-0.3.2_0.3.2-1_i386.deb

qtconfig
Select "Polymer as your GUI style"
Save and you are done :)

majikstreet


*****If you got skype from the official skype apt repo's, this guide can be followed, but you need to REBOOT your computer before it works.****

refdoc
October 4th, 2005, 05:50 PM
Fleixius and majikstreet -

Many, many thanks!! This makes a huge difference. Only I would not go with trebuchet but simply with Sans serif which appears to be the default font and works fine.

magnusbb
October 9th, 2005, 05:24 AM
As I try to keep the system as clean as possible, hence not downloading the qt3-libs just for compiling a single theme, I thought...

if anybody had done it - could they provide a pre-compileed package of the Polymer theme for Breezy?

That would be most kind.

FLeiXiuS
October 9th, 2005, 05:29 AM
As I try to keep the system as clean as possible, hence not downloading the qt3-libs just for compiling a single theme, I thought...

if anybody had done it - could they provide a pre-compileed package of the Polymer theme for Breezy?

That would be most kind.

Revert back a few posts and read majikstreet's response. He offers a good package for polymer users on Breezy.

lusepuster
October 9th, 2005, 09:24 AM
How sweet is that...??:D :D :D

viuks
October 17th, 2005, 05:20 AM
Thank You!!! Very nice!:)

Pablo_Escobar
October 17th, 2005, 05:23 AM
hi,
can someone explain me why, upgrading from 5.04 to 5.10, this tutorial wont work any more? Now i can configure fonts via qtconfig, but the interface "polymer" is no longer present in the interface list!

Any sugestion?

If You don't have polymer in Your selection choice, in the qtconfig go to the tab where there are some paths to directories. (3rd tab as far as I remember)

Add at the bottom : "/usr/plugins".
Save configuration, Exit, qtconfig again and presto, polymer is right there to select.

Doughsay
November 27th, 2005, 04:48 PM
This HOWTO worked great for skype. But, like someone earlier in this thread, I'm wondering about audacity... How can I make it use the polymer theme?

Brian McConnell
December 9th, 2005, 06:11 PM
Revert back a few posts and read majikstreet's response. He offers a good package for polymer users on Breezy.

any Polymer available for the ppc user? I hope so :D

kalos
December 13th, 2005, 10:53 PM
any Polymer available for the ppc user? I hope so :D

I'm sure it will work, but I think you're going to have to compile yourself.
See parktownprawn's earlier little howto (http://www.ubuntuforums.org/showpost.php?p=332825&postcount=27).

-kalos

phoenix49
May 22nd, 2006, 06:53 AM
This HOWTO worked great for skype. But, like someone earlier in this thread, I'm wondering about audacity... How can I make it use the polymer theme?

Audacity uses GTK1, you cannot apply QT theme to GTK. Anyway, I think Qt applications are pretty beautiful, but not in GNOME, only in native KDE.

blackpaw
June 15th, 2006, 05:34 PM
works in xubuntu dapper!

although the qtconfig throws some errors... it works :D