Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7659 → Rev 7660

/programs/cmm/lib/gui.h
69,7 → 69,7
dword ty = h/2-7+y;
 
if (id>0) DefineButton(x,y,w,h,id,color_b);
WriteText(tx+1,ty+1,0x90,LightenDarkenColor(color_b, -40),text);
WriteText(tx+1,ty+1,0x90,MixColors(color_b,0,230),text);
WriteText(tx,ty,0x90,color_t,text);
}
 
84,7 → 84,7
int ty = y + padding_v+1;
int tw = strlen(text)*8;
int w = tw + padding_h + padding_h;
unsigned darker_color = LightenDarkenColor(system.color.work_button, -40);
unsigned darker_color = MixColors(system.color.work_button,0,230);
 
 
if (id>0) DefineButton(x,y,w,h,id,system.color.work_button);
100,6 → 100,7
return w + right_margin;
}
 
/* UNSTABLE
:unsigned LightenDarkenColor(dword color, amt) {
dword r = color >> 16 + amt << 16;
dword b = color >> 8 & 0x00FF + amt << 8;
106,6 → 107,7
dword g = color & 0x0000FF + amt;
return g | b | r ;
}
*/
 
:void ActiveButtonSwitch(int min, max)
{