Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old July 12th, 2008   #1
artrbinfo
5 Cups of Ubuntu
 
artrbinfo's Avatar
 
Join Date: Nov 2007
Beans: 42
Create custom themes for applications.

Hello!
Is it possible to make custom themes, for example for F-spot. I want to create another metacity for it. Is it possible, and how to set specific metacity to apps?
Thank you!
__________________
Ubuntu here, ubuntu there, ubuntu everywhere! Hope so

Last edited by artrbinfo; July 12th, 2008 at 12:08 PM..
artrbinfo is offline   Reply With Quote
Old July 12th, 2008   #2
sayakb
Koz Kubuntu's Kewl
 
sayakb's Avatar
 
Join Date: Jan 2008
Location: /dev/null
My beans are hidden!
Kubuntu 8.10 Intrepid Ibex
Send a message via ICQ to sayakb Send a message via AIM to sayakb Send a message via MSN to sayakb Send a message via Yahoo to sayakb
Re: Create custom themes for applications.

All apps using GTK themes will have the same theme you select in the Appearance Properties window. So I don't think (or I don't know) whether it can be done..
__________________
sayakb is offline   Reply With Quote
Old July 12th, 2008   #3
Spaceman9
Ubuntu Extra Shot
 
Spaceman9's Avatar
 
Join Date: Jun 2007
Location: USA
Beans: 345
Ubuntu 9.10 Karmic Koala
Re: Create custom themes for applications.

The F-Spot web site http://f-spot.org/Main_Page doesn't seem to have anything about making themes for it.

Check out these on metacity themes.

Metacity Wiki http://en.wikipedia.org/wiki/Metacity

Gnome metacity themes http://art.gnome.org/themes/metacity

Designing Metacity Themes http://developer.gnome.org/doc/tutor...ty-themes.html
__________________
The How-To-Geek http://www.howtogeek.com/tag/ubuntu/ubuntu-tips/

The final and most influential thing anyone will ever teach you is to be independent of the influence of others.
Spaceman9 is offline   Reply With Quote
Old July 13th, 2008   #4
urukrama
Dark Roasted Ubuntu
 
urukrama's Avatar
 
Join Date: Jul 2006
Beans: 1,015
Re: Create custom themes for applications.

You can set different Gtk themes for certain applications, but I don't think using a different Metacity theme would work.

If you want to use a different Gtk theme for f-spot, launch it with the following command:

Quote:
GTK2_RC_FILES=/path/to/your/theme/gtkrc f-spot
Your theme's gtkrc file will be either in /home/USERNAME/.themes/THEMENAME/gtk-2.0/gtkrc for themes you have installed, or /usr/share/themes/THEMENAME/gtk-2.0/gtkrc for themes that you installed systemwide (as through Synaptic or apt).

If you'd also like to set a custom icon theme and font for the application, create an empty file, wherever you find convenient (for example in /home/USERNAME/.themes) and call it fspot.gtkrc or so. Then add the following to that file:

Quote:
#To set the Gtk theme
include "/path/to/your/theme/gtkrc"

#To set the icon theme
gtk-icon-theme-name = "Human"

#To set the font
style "Sans"
{
font_name = "Sans 8"
}
widget_class "*" style "Sans"
gtk-font-name = "Sans 8"
Change 'Human' to the icon theme you'd like to use, and "Sans" to the font you'd like to use. The /path/to/your/theme/gtkrc is the same as mentioned above.

To launch the application with these settings, use the following:

Quote:
GTK2_RC_FILES=/home/USERNAME/.themes/fspot.gtkrc f-spot
(If you saved the file elsewhere, adjust the above appropriately.)

If using this in a launcher doesn't work (it works from the terminal), try the following:

Quote:
bash -c 'GTK2_RC_FILES=/path/to/your/gtkrc f-spot'
EDIT: This works fine in Openbox, which is the window manager I use, but it seems that if you have either gnome-settings-daemon or xfce-mcs-manager running (which control the Gtk theme and more in Gnome and Xfce respectively) this method doesn't work.
__________________
Openbox Guide | Blog

Last edited by urukrama; July 13th, 2008 at 10:04 AM..
urukrama is offline   Reply With Quote
Old July 13th, 2008   #5
Vadi
Happy user
 
Vadi's Avatar
 
Join Date: May 2007
Location: Toronto, Canada
Beans: 4,430
Ubuntu Karmic Koala (testing)
Send a message via AIM to Vadi
Re: Create custom themes for applications.

Different gtk themes for applications is a yes, metacity highly likely no.
Vadi is offline   Reply With Quote
Old July 16th, 2008   #6
artrbinfo
5 Cups of Ubuntu
 
artrbinfo's Avatar
 
Join Date: Nov 2007
Beans: 42
Re: Create custom themes for applications.

Sorry for my late answer!
Thank you very much! Now I'll try to do that all.
TNX again!
__________________
Ubuntu here, ubuntu there, ubuntu everywhere! Hope so
artrbinfo is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:46 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry