gtkrc file



 

Hi,

 

I want to draw a selected radio button image with a colored center (it is currently black when selected).  I thought I could do it by changing the gtkrc file but haven’t had any luck.  Following is a portion of my gtkrc file and what I changed (that didn’t work).

 

Thanks for any help,

 

Lourdes Maldonado

 

 

# Default style for all widgets to build from

style "default"

{

  font = "-adobe-helvetica-medium-r-normal-*-*-120-*-*-p-*-iso8859-1"

 

  fg[NORMAL] = "#000000"

  fg[ACTIVE] = "#000000"

  fg[PRELIGHT] = "#000000"

  fg[INSENSITIVE] = "#000000"

  fg[SELECTED] = "#ffffff"

 

  bg[NORMAL] = "#dcdcdc"

  bg[ACTIVE] = "#ababab"

  bg[PRELIGHT] = "#f2f2f2"

  bg[INSENSITIVE] = "#ffffff"

  bg[SELECTED] = "#0A5F89"

 

  text[NORMAL] = "#000000"

  text[ACTIVE] = "#000000"

  text[PRELIGHT] = "#000000"

  text[SELECTED] = "#000000"

  text[INSENSITIVE] = "#000000"

 

  base[NORMAL] = "#ffffff"

  base[PRELIGHT] = "#ffffff"

  base[INSENSITIVE] = "#ffffff"

 

  engine "eazel-engine" {

 

    # The focus/selection color

    palette[0] = { "#dcdcdc" }

 

    # The gradient used for recoloring images

    palette[1] = { "#000000", <0>, "#ffffff" }                     ß--------------- ORIGINAL

    palette[1] = { “#ff00ff:, <1>, “#ffffff” }                        ß--------------- MY CHANGES

 

    # Used for recolouring inactive images

    palette[2] = { "#000000", "#888888", "#ffffff" }

 

    # Create the default (only) stock image table. This maps from

    # identifiers used in the engine to reference image parts to

    # the actual images, and sets attributes of the images

    stock

    {

      "OPTION" {

            image = "radio-default.png"

      }

      "OPTION_FOCUS" {

            image = "radio-default-focus.png"

            recolor = <1>

      }

      "OPTION_HI" {

            image = "radio-hilight.png"

      }

      "OPTION_HI_FOCUS" {

            image = "radio-hilight-focus.png"

            recolor = <1>

      }

      "OPTION_PRESSED" {

            image = "radio-pressed.png"

      }

      "OPTION_PRESSED_FOCUS" {

            image = "radio-pressed-focus.png"

            recolor = <1>

      }

      "OPTION_DISABLED" {

            image = "radio-insensitive.png"

      }

      "OPTION_ACTIVE" {

            image = "radio-active-default.png"

      }

      "OPTION_ACTIVE_FOCUS" {

            image = "radio-active-default-focus.png"

            recolor = <1>

      }

      "OPTION_ACTIVE_HI" {

            image = "radio-active-hilight.png"

      }

      "OPTION_ACTIVE_HI_FOCUS" {

            image = "radio-active-hilight-focus.png"

            recolor = <1>

      }

      "OPTION_ACTIVE_PRESSED" {

            image = "radio-active-pressed.png"

      }

      "OPTION_ACTIVE_PRESSED_FOCUS" {

            image = "radio-active-pressed-focus.png"

            recolor = <1>

      }

      "OPTION_ACTIVE_DISABLED" {

            image = "radio-active-insensitive.png"

      }

}

 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]