Results 1 to 4 of 4

Thread: Custom Theme for a gtk app?

  1. #1
    Join Date
    Jan 2005
    Location
    Toronto, Ontario, Canada
    Beans
    2,204

    Custom Theme for a gtk app?

    I'm playing with pygtk and I want to write an app that has a black background, buttons, etc and white text. Is there any way to do this at all? (can I set the color for each button manually or can I set the theme for the whole app?)

    Cheers.
    Edward A Robinson -- www.earobinson.org

  2. #2
    Join Date
    Dec 2007
    Location
    .
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Custom Theme for a gtk app?

    To set the gtk theme for the entire application:
    Code:
    settings = gtk.settings_get_default()
    settings.set_property("gtk-theme-name",gtk_theme_name)

  3. #3
    Join Date
    Jan 2005
    Location
    Toronto, Ontario, Canada
    Beans
    2,204

    Re: Custom Theme for a gtk app?

    Cheers, Ill test this as soon as I have the chance.
    Edward A Robinson -- www.earobinson.org

  4. #4
    Join Date
    Jan 2005
    Location
    Toronto, Ontario, Canada
    Beans
    2,204

    Re: Custom Theme for a gtk app?

    Hum It did not seem to work, any idea why
    Code:
    gtk_settings = gtk.settings_get_default()
    gtk_settings.set_property('gtk-theme-name', 'UbuntuStudio')
    would not work?
    Edward A Robinson -- www.earobinson.org

Tags for this Thread

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
  •