Results 1 to 6 of 6

Thread: Create custom themes for applications.

  1. #1
    Join Date
    Nov 2007
    Beans
    51

    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!
    Last edited by artrbinfo; July 12th, 2008 at 05:08 PM.
    Ubuntu here, ubuntu there, ubuntu everywhere! Hope so

  2. #2
    Join Date
    Jan 2008
    Location
    Bentonville AR
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    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..
    Sayak Banerjee
    KDE Sysadmin | KDE e.V.
    Need help? Contact us.

  3. #3
    Join Date
    Jun 2007
    Location
    USA
    Beans
    397
    Distro
    Xubuntu 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.

  4. #4
    Join Date
    Jul 2006
    Beans
    1,152

    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:

    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:

    #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:

    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:

    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.
    Last edited by urukrama; July 13th, 2008 at 03:04 PM.

  5. #5
    Join Date
    May 2007
    Beans
    4,513
    Distro
    Ubuntu

    Re: Create custom themes for applications.

    Different gtk themes for applications is a yes, metacity highly likely no.

  6. #6
    Join Date
    Nov 2007
    Beans
    51

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •