hop-frog
08-02-2004, 05:58 PM
What effect takes place when an icon in a GTK2 toolbar is disabled? I need to apply this same effect to the icons in non-GTK2 applications.
If you need examples of this effect, open Gedit to a new document and look at the disabled undo and redo buttons. The icons is slightly faded, and there is a slight checker-board effect over the image.
I have put together some information about this effect: The disabled colors are always the same. If you change the GTK2 theme to one of a completely different color, and reload the application, the disabled icons will use the same exact colors. The only exception to this, is the opaque areas that make of the icons' shadows. There are two seperate effects taking place, although they both maybe similar. Imagine that the icon is covered with a two color checkered board. Each pixel represents one square on the board. The red squares would represent all of the pixels that are given Effect A. The black squares would represent all of the pixels that are given Effect B.
Here are some sample Red/Green/Blue color comparisons from pixels falling under Effect A:[list=1] Original color: Red 0, Green 0, Blue 0
Disabled color: Red 0, Green 0, Blue 0
Original color: Red 189, Green 219, Blue 189
Disabled color: Red 140, Green 150, Blue 132
Original color: Red 99, Green 146, Blue 90
Disabled color: Red 74, Green 97, Blue 66
Original color: Red 82, Green 121, Blue 74
Disabled color: Red 66, Green 81, Blue 57[/list=1]
Here are some sample Red/Green/Blue color comparisons from pixels falling under Effect B:[list=1] Original color: Red 0, Green 0, Blue 0
Disabled color: Red 123, Green 125, Blue 123
Original color: Red 189, Green 215, Blue 181
Disabled color: Red 231, Green 227, Blue 231
Original color: Red 74, Green 109, Blue 66
Disabled color: Red 173, Green 174, Blue 173
Original color: Red 115, Green 146, Blue 107
Disabled color: Red 198, Green 195, Blue 198[/list=1]
Using this information, is there a way that I can calculate what different color effects are happening here so that I can duplicate this effect in the GIMP or ImageMagick?
If you need examples of this effect, open Gedit to a new document and look at the disabled undo and redo buttons. The icons is slightly faded, and there is a slight checker-board effect over the image.
I have put together some information about this effect: The disabled colors are always the same. If you change the GTK2 theme to one of a completely different color, and reload the application, the disabled icons will use the same exact colors. The only exception to this, is the opaque areas that make of the icons' shadows. There are two seperate effects taking place, although they both maybe similar. Imagine that the icon is covered with a two color checkered board. Each pixel represents one square on the board. The red squares would represent all of the pixels that are given Effect A. The black squares would represent all of the pixels that are given Effect B.
Here are some sample Red/Green/Blue color comparisons from pixels falling under Effect A:[list=1] Original color: Red 0, Green 0, Blue 0
Disabled color: Red 0, Green 0, Blue 0
Original color: Red 189, Green 219, Blue 189
Disabled color: Red 140, Green 150, Blue 132
Original color: Red 99, Green 146, Blue 90
Disabled color: Red 74, Green 97, Blue 66
Original color: Red 82, Green 121, Blue 74
Disabled color: Red 66, Green 81, Blue 57[/list=1]
Here are some sample Red/Green/Blue color comparisons from pixels falling under Effect B:[list=1] Original color: Red 0, Green 0, Blue 0
Disabled color: Red 123, Green 125, Blue 123
Original color: Red 189, Green 215, Blue 181
Disabled color: Red 231, Green 227, Blue 231
Original color: Red 74, Green 109, Blue 66
Disabled color: Red 173, Green 174, Blue 173
Original color: Red 115, Green 146, Blue 107
Disabled color: Red 198, Green 195, Blue 198[/list=1]
Using this information, is there a way that I can calculate what different color effects are happening here so that I can duplicate this effect in the GIMP or ImageMagick?