View previous topic :: View next topic |
Author |
Message |
sempsteen n00b
Joined: 18 Jul 2006 Posts: 13
|
Posted: Mon Oct 13, 2008 6:26 pm Post subject: Making GTK applications look good |
|
|
Hi everyone,
Because I'm spending lots of time by using my computer appearance is very important for me. I'm a KDE user but not every application is built on KDE. My GTK based applications were looking bad but finally today I managed to fix it. I'm going to write here so that maybe it can help others like me. It is very easy.
First emerge these two packages:
x11-themes/gtk-engines-qtcurve
x11-themes/qtcurve-qt4
Then create a file named ".gtkrc-2.0" in your home directory put this line in it:
include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"
That's all!
References:
|
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Oct 16, 2008 3:24 am Post subject: |
|
|
Moved from Desktop Environments to Documentation, Tips & Tricks. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Sun Oct 19, 2008 5:01 am Post subject: |
|
|
Thanks sempsteen, nice howto.
I like to also set the font so my .gtkrc-2.0 looks like this Code: | $ cat .gtkrc-2.0
include "/usr/share/themes/Qt/gtk-2.0/gtkrc"
style "user-font"
{
font_name="Dejavu Sans 10"
}
widget_class "*" style "user-font"
gtk-theme-name="Qt"
gtk-font-name="Dejavu Sans 10"
|
|
|
Back to top |
|
|
bblount Tux's lil' helper
Joined: 08 Nov 2004 Posts: 80
|
Posted: Tue Oct 21, 2008 3:30 am Post subject: |
|
|
Could you post some screenshots? |
|
Back to top |
|
|
sempsteen n00b
Joined: 18 Jul 2006 Posts: 13
|
Posted: Tue Oct 21, 2008 9:37 pm Post subject: |
|
|
Quote: | Could you post some screenshots? |
Sorry for the late reply. Here are the screenshots:
|
|
Back to top |
|
|
sempsteen n00b
Joined: 18 Jul 2006 Posts: 13
|
Posted: Tue Oct 21, 2008 9:46 pm Post subject: |
|
|
notHerbert wrote: | Thanks sempsteen, nice howto.
I like to also set the font so my .gtkrc-2.0 looks like this Code: | $ cat .gtkrc-2.0
include "/usr/share/themes/Qt/gtk-2.0/gtkrc"
style "user-font"
{
font_name="Dejavu Sans 10"
}
widget_class "*" style "user-font"
gtk-theme-name="Qt"
gtk-font-name="Dejavu Sans 10"
|
|
Thanks for the info notHerbert. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Wed Oct 22, 2008 4:55 am Post subject: |
|
|
Nice cow.
Looks related to Larry. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
bblount Tux's lil' helper
Joined: 08 Nov 2004 Posts: 80
|
Posted: Wed Oct 22, 2008 7:37 am Post subject: |
|
|
Thanks for the screenshots, great tip. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Oct 23, 2008 1:12 am Post subject: |
|
|
In fact if you emerge gtk-engines-qt, any of the Gtk themes can be set via GUI in the menu of KDE and Gnome. |
|
Back to top |
|
|
Sotol Apprentice
Joined: 09 Apr 2004 Posts: 192
|
Posted: Thu Oct 23, 2008 6:55 am Post subject: |
|
|
Did you grab gtk-engines-qt from an overlay? The one in portage only seems to support kde 3.5. |
|
Back to top |
|
|
shickapooka800 Guru
Joined: 05 Dec 2004 Posts: 304 Location: no
|
Posted: Thu Oct 23, 2008 7:14 am Post subject: |
|
|
this strikes me as a bit opinionized. here is a meta-tip for looking good with gtk:
emerge --search engines
pick some random ones and emerge them.
emerge gtk-chtheme
run gtk-chtheme
flip through the gtk themes until you are blue in the face. |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Oct 23, 2008 3:00 pm Post subject: |
|
|
Sotol wrote: | Did you grab gtk-engines-qt from an overlay? The one in portage only seems to support kde 3.5. |
I'm referring to x11-themes/gtk-engines-qt from portage, which may well not function in KDE-4. I don't know. I'm waiting for KDE-4.2.2-r2.
shickapooka800 wrote: | this strikes me as a bit opinionized. here is a meta-tip for looking good with gtk: |
Well of course, choice of themes, wm, etc... can't be anything more than personal taste.
I think sempsteen's point was just to throw some ideas out there, good for me.
Thanks for your meta-tip, I'm going to try it right now.
Hmmmm Code: | $ gtk-chtheme
(gtk-chtheme:10525): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Segmentation fault | |
|
Back to top |
|
|
shickapooka800 Guru
Joined: 05 Dec 2004 Posts: 304 Location: no
|
Posted: Thu Oct 23, 2008 4:12 pm Post subject: |
|
|
what gtk-chtheme are you running and what arch? |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Oct 23, 2008 5:52 pm Post subject: |
|
|
This is ARCH=x86 x11-themes/gtk-chtheme-0.3.1-r1
I do get the GUI but it segfaults when I click on a theme.
I was thinking just the other day that it would be nice to have a Gtk theme changer, but I was unaware of gtk-chtheme. I tried re-emerging gtk-engines. |
|
Back to top |
|
|
shickapooka800 Guru
Joined: 05 Dec 2004 Posts: 304 Location: no
|
Posted: Fri Oct 24, 2008 3:18 pm Post subject: |
|
|
notHerbert wrote: | This is ARCH=x86 x11-themes/gtk-chtheme-0.3.1-r1
I do get the GUI but it segfaults when I click on a theme.
I was thinking just the other day that it would be nice to have a Gtk theme changer, but I was unaware of gtk-chtheme. I tried re-emerging gtk-engines. :cry: |
hmmm I have the same version, but am using amd64 arch. there is a gtk-chthtme-0.3.1.ebuild in the tree, maybe try that one? it is small, maybe you could compile it by hand (maybe with some debug options) and send a backtrace of the crash to the developer (or gentoo bugzilla).
edit: I assure you, this is THE gtk theme changer that people use all the time, so it should work just fine. maybe re-merge the apps in the DEPEND and RDEPEND list in the gtk-chthtme ebuild (looks like >=gtk+-2 and pkgconfig...... and its not pkgconfig's fault...)....
what are your USE flags that GTK+ cares about?
another idea: compile gtk+ with debug USE flag, then run gtk-chthtme in gdb and run a backtrace when it crashes. gtk-chthtme itself doesn't seem to be affected by the debug USE flag, so either adjust the ebuild and digest it, or compile gtk-chtheme by hand with ./configure --enable-debug. when it crashes in gdb, run `bt full' and either read through the output yourself, or post a bug with it. |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Oct 24, 2008 4:51 pm Post subject: |
|
|
shickapooka800 wrote: | this strikes me as a bit opinionized. | ++
It's kinda suggesting that the only way gtk+ can look good is by emulating kde/qt, which is just inviting yet another flamewar on that issue...
I prefer gtk-chtheme too, but you can try lxappearance instead, which is actively developed (gtk-chtheme hasn't seen any updates in over 4 years...), doesn't have any gnome dependencies either and also lets you browse and set your gtk icon theme(s). _________________ "You have to invite me in" |
|
Back to top |
|
|
notHerbert Advocate
Joined: 11 Mar 2008 Posts: 2228 Location: 45N 73W
|
Posted: Thu Nov 20, 2008 7:47 pm Post subject: |
|
|
timeBandit wrote: | Nice cow.
Looks related to Larry. |
Yep, I wonder who drewed em. |
|
Back to top |
|
|
|