![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||
|
Just Give Me the Beans!
![]() Join Date: Dec 2005
Location: where polar bears live - poland.
Beans: 67
Kubuntu 6.10 Edgy
|
I haven't really found any good howto about gtk1.2 theme switching so here it is.
0. What for? Gtk1.2 is still used by some old apps like xmms, gmplayer and stuff. Changing gtk2 (or qt) theme doesn't affect them. Plus there is no font antialias. While font aliasing can't be turned on in these in any known for me way, you can still change gtk1.x theme and make them look not so ugly. Still not convinced? Run gmplayer or xmms. And then compare its look with my attached screenshot. 1. Let's do it - getting theme Firstly, find some nice gtk1 theme. In fact - that's the hard part. Check: http://gnome-look.org/index.php?xsortmode=high&page=0 I tested (and I recommend) either: Plastig (from screenshot) http://gnome-look.org/content/show.php?content=9724 or Geramik http://gnome-look.org/content/show.php?content=3952 but feel free to use other theme. Download it, unpack, move whole dir to /usr/share/themes/ E.g. for Plastig: run terminal (konsole or anything..) assuming you're in your home directory (prompt like user@server:~$) Code:
wget http://gnome-look.org/content/download.php?content=9724&id=1 tar jxvf 9724-Plastig.tar.bz2 sudo mv Plastig /usr/share/themes/ Code:
wget http://gnome-look.org/content/download.php?content=3952&id=1 tar zxvf 3952-Geramik-0.27.tar.gz cd Geramik-0.27 ./configure make Code:
apt-get install make Code:
make install 2. Make it work So we got some themes. To enable them you need one more thing - libqtpixmap. To install it: Code:
sudo apt-get install gtk-engines-qtpixmap Code:
sudo apt-get install gtk-theme-switch In my opinion, it's not that useful. Back to work. Code:
echo "include \"$HOME/.gtkrc.mine\"" > ~/.gtkrc-1.2-gnome2 gedit .gtkrc.mine Code:
include "/usr/share/themes/Plastig/gtk/gtkrc"
style "default-text" {
fontset = "-adobe-helvetica-medium-o-normal--10-100-75-75-p-57-iso10646-1,\
-*-r-*-iso10646-1,*"
}
class "GtkWidget" style "default-text"
include "/usr/share/themes/Plastig/gtk/gtkrc" to include "/usr/share/themes/Geramik/gtk/gtkrc" or include "/usr/share/themes/ThinGeramik/gtk/gtkrc" I also used some font settings to make it a little nicer. That's all. 3. Oh boy it looks so pretty.. No it doesn't. Don't be deceived. Gtk1 will never look as good as gtk2. Non-antialiased fonts still look ugly. If you're using mplayer - I recommend installing it from cvs (great howto - http://ubuntuforums.org/showthread.php?t=85190) to get it work with gtk2. 4. UPDATE - Anti aliasing fonts with GTK1.2 Thanks for this one, emersonfxbx. Quote:
http://mirror.anl.gov/debian/pool/main/g/gdkxft/ http://debian.mirror.frontiernet.net...main/g/gdkxft/ http://altruistic.lbl.gov/mirrors/de...main/g/gdkxft/ there are all the same mirrors. To be honest - havent tried that yet, but to use it on i386 architecture all you need to do is download for example: http://debian.mirror.frontiernet.net...1.5-4_i386.deb install it by Code:
sudo dpkg -i libgdkxft0_1.5-4_i386.deb Oh, these .debs are specifically for Debian, but stay calm, you can use it in Ubuntu, they will work. If you're using GNOME, you may also want to download capplet gdkxft-capplet_1.5-4_i386.deb This capplet allows you to edit gdkxft configuration file from within GNOME control-center. Handy, isnt it? If anything wont work, you may try emersonfxbx instructions for using it. Quote:
Last edited by shin; November 26th, 2006 at 01:27 PM.. Reason: update |
||
|
|
|
|
|
#2 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Gtk1.2 not so ugly
Very nice, thanks!
Man, with warty it took me ages to figure out a way for doing this. A very nice guide. |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2005
Location: Canada
Beans: 137
Kubuntu Breezy 5.10
|
Re: HOWTO: Gtk1.2 not so ugly
I followed exactly your guide and nothing change in my xmms look.
I'm looking for long time to change this big ugly fonts in xmms preference, so far I couldn't do anything. This is a shot with both xmms and gmplayer PS And another thing: in ~/.gtkrc.mine if you insert that line as: /usr/share/themes/Plastig/gtk/gtkrc and open up the file gtkrc from that path you'll find out that first line is: pixmap_path "~/.themes/Plastig/gtk" but following your guide in ~/.themes/Plastig/gtk we don't have any file of this theme... Probably would be more indicated to install the theme in home directory than in /usr/share/theme path or copy the theme in home directory or just modify that path...anyway...none of the solutions work for my xmms look.
__________________
...optimize, clarify, open, Share....knowledge. Last edited by limit223; January 9th, 2006 at 05:29 PM.. |
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() Join Date: Sep 2005
Location: Denmark Copenhagen
Beans: 35
Ubuntu 5.10
|
Re: HOWTO: Gtk1.2 not so ugly
thanks alot.. Not perfect but WAY better than before
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Mar 2006
Location: Staffordshire, England
Beans: 2
Ubuntu 8.10 Intrepid Ibex
|
Re: HOWTO: Gtk1.2 not so ugly
Thanks so much shin - that looks so much better. I don't use many gtk1.2 apps anymore, but it's really annoying when you come across one looking so hideous as they do by default.
limit223 - I might have a solution. Using the (very nice) Plastig theme, I edited /usr/share/themes/Plastig/gtk/gtkrc, changing the top line to point instead of ~/.themes/ to /usr/share/themes/Plastic/gtk/grkrc - in full. That got it working for me. If you still aren't getting the font look you want, try editing ~/.gtkrc.mine Here is mine, edited to use the Bitstream Vera Sans font. Code:
include "/usr/share/themes/Plastig/gtk/gtkrc"
style "default-text" {
fontset = "-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*,\
-bitstream-bitstream vera sans-medium-r-*-*-12-*-*-*-*-*-iso8859-*"
}
class "GtkWidget" style "default-text"
Note: When I did so, it wouldn't let me change the font size in xfontsel. Just alter it yourself manally after you paste it into your .gtkrc.mine -- in my case, I used 12. |
|
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Jan 2006
Beans: 51
|
Re: HOWTO: Gtk1.2 not so ugly
awesome.. thanks!
|
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() Join Date: Nov 2005
Beans: 73
|
Re: HOWTO: Gtk1.2 not so ugly
Hi,
first, thanks for your howto!!! I have one question: How can I change the color for the mouse-over button effect? It's nearly black here. Thanks for helping. Best regards, Whoopie |
|
|
|
|
|
#8 | |
|
May the Ubuntu Be With You!
![]() Join Date: Apr 2005
Beans: 1,644
|
Re: HOWTO: Gtk1.2 not so ugly
Amazing little how to it solved a magor peave with gtk that I had now it looks pretty.
Quote:
Now to move on to another peave which is synaptic, it looks real ugy Im not shure if it is using gtk 1 or 2 but if it is using 1 how do I apply this how to to root. Edit: just did a sudo natilus and its ugy to so I think its a root thing. Anyways thanks for the great how to.
__________________
Back to using Ubuntu |
|
|
|
|
|
|
#9 | |
|
Just Give Me the Beans!
![]() Join Date: Dec 2005
Location: where polar bears live - poland.
Beans: 67
Kubuntu 6.10 Edgy
|
Re: HOWTO: Gtk1.2 not so ugly
Quote:
To do that: Code:
mv ~/.themes/* /usr/share/themes -rf
__________________
perform miracles. |
|
|
|
|
|
|
#10 | |
|
Just Give Me the Beans!
![]() Join Date: Dec 2005
Location: where polar bears live - poland.
Beans: 67
Kubuntu 6.10 Edgy
|
Re: HOWTO: Gtk1.2 not so ugly
Quote:
__________________
perform miracles. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|