Changeset 3611


Ignore:
Timestamp:
12/07/07 15:06:28 (6 years ago)
Author:
thomas
Message:
  • src/moko-draw.c: (moko_gradient):
  • src/moko-utils.c: (moko_shade_colour):

Change how shading operates to allow shading up from black.

  • data/gtk-2.0/gtkrc:

Change the default fg colour to black (used as bg colour in some
widgets, e.g. toolbars)

Location:
trunk/src/target/OM-2007.2/libraries/moko-gtk-engine
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/ChangeLog

    r3427 r3611  
     12007-12-07  Thomas Wood  <thomas@openedhand.com> 
     2 
     3        * src/moko-draw.c: (moko_gradient): 
     4        * src/moko-utils.c: (moko_shade_colour): 
     5        Change how shading operates to allow shading up from black. 
     6 
     7        * data/gtk-2.0/gtkrc: 
     8        Change the default fg colour to black (used as bg colour in some 
     9        widgets, e.g. toolbars) 
     10 
    1112007-11-14  Thomas Wood  <thomas@openedhand.com> 
    212 
  • trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/data/gtk-2.0/gtkrc

    r3427 r3611  
    1515 
    1616# Set the default gtk-color-scheme property 
    17 gtk_color_scheme = "fg_color:#333;bg_color:#f4f0f4;base_color:#fff;text_color:#000;selected_bg_color:#ff7d00;selected_fg_color:#000" 
     17gtk_color_scheme = "fg_color:#000;bg_color:#f4f0f4;base_color:#fff;text_color:#000;selected_bg_color:#ff7d00;selected_fg_color:#000" 
    1818 
    1919style "default" 
  • trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-draw.c

    r3404 r3611  
    103103 
    104104  /* get the start and end colours */ 
    105   moko_shade_colour (&style->bg[state_type], &c1, 1.8); 
    106   moko_shade_colour (&style->bg[state_type], &c2, 1.4); 
    107   moko_shade_colour (&style->bg[state_type], &c3, 1.3); 
    108   moko_shade_colour (&style->bg[state_type], &c4, 1.0); 
     105  moko_shade_colour (&style->bg[state_type], &c1, 0.8); 
     106  moko_shade_colour (&style->bg[state_type], &c2, 0.4); 
     107  moko_shade_colour (&style->bg[state_type], &c3, 0.3); 
     108  moko_shade_colour (&style->bg[state_type], &c4, 0.0); 
    109109 
    110110  /* set line for 1px */ 
  • trunk/src/target/OM-2007.2/libraries/moko-gtk-engine/src/moko-utils.c

    r3405 r3611  
    111111  color_to_hlsx (&_src, &h, &l, &s); 
    112112 
    113   l = CFX_MUL (l, shade); 
     113  l = l + CFX_MUL (CFX_ONE - l, shade); 
    114114  if (l > CFX_ONE) 
    115115    l = CFX_ONE; 
    116116  else if (l < 0) 
    117117    l = 0; 
    118  
    119   s = CFX_MUL (s, shade); 
     118/* 
     119  s = s + CFX_MUL (CFX_ONE - s, shade); 
    120120  if (s > CFX_ONE) 
    121121    s = CFX_ONE; 
    122122  else if (s < 0) 
    123123    s = 0; 
    124    
     124*/ 
    125125  color_from_hlsx (dest, h, l, s); 
    126126 
Note: See TracChangeset for help on using the changeset viewer.