#4568 HIGH Update.: Need an insensitive icon effect that works.

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 31 12:56:48 EDT 2007


#4568: Need an insensitive icon effect that works.
-----------------------+----------------------------------------------------
 Reporter:  Eben       |       Owner:  benzea  
     Type:  defect     |      Status:  new     
 Priority:  high       |   Milestone:  Update.1
Component:  gtk-theme  |     Version:          
 Keywords:             |    Verified:  0       
-----------------------+----------------------------------------------------
 The current effect for insensitive icons desaturates (which has no effect
 on grayscale imagery) and pixelates (which has no effect on solid fills),
 which means that (98% of the time) the insensitive icons look like normal
 icons.  Useless.

 I'm proposing an alternative that will make the insensitive state more
 apparent (as a bitmap) until we later have a way to follow the "gray
 outline" spec (or, at least, provde a way to specify an icon specifically
 for the state).  The effect will be to reduce icons to a "middle gray"
 tone, by means of reducing contrast (by a lot) and then "centering" the
 resulting histogram about the 50% gray mark.  This can be done in one of
 two ways:

 The "ok" way: Simply divide the pixel values by ''n'' (suggest ''n'' = 10,
 but experiment) and then add (128 - median_pixel_value)

 The "better" way: Define ''n'' to be the percentage of the grayscale
 spectrum you want to reduce contrast to (suggest ''n'' = 10, but
 experiment). Compute the delta ''d'' between min and max pixel values in
 the icon, and divide the pixel values by (''n''*''d''/256).  Then add (128
 - median_pixel_value) to each.

-- 
Ticket URL: <https://dev.laptop.org/ticket/4568>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list