Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9575 → Rev 9576

/programs/cmm/lib/gui.h
83,8 → 83,6
#define padding_h 15
#define right_margin 12
#define h padding_v + padding_v + 16 //16 font height
int tx = x + padding_h;
int ty = y + padding_v+1;
int tw = strlen(text)*8;
int w = tw + padding_h + padding_h;
unsigned darker_color = MixColors(sc.button,0,230);
91,12 → 89,16
 
DefineButton(x,y,w,h,id,sc.button);
 
WriteText(tx+1,ty+1,0x90,darker_color,text);
WriteText(tx,ty,0x90,sc.button_text,text);
x += padding_h;
y += padding_v+1;
 
WriteText(x+1,y+1,0x90,darker_color,text);
WriteText(x,y,0x90,sc.button_text,text);
 
if (active_button_id==id) {
DrawBar(tx,ty+15,tw,1, darker_color);
DrawBar(tx,ty+14,tw,1, sc.button_text);
DrawBar(x,y+15,tw,1, darker_color);
DrawBar(x,y+14,tw,1, sc.button_text);
}
 
return w + right_margin;
152,21 → 154,21
#define DOT_W 37
:void DrawFileBox(dword edit_box_pointer, title, btn)
{
dword x,y,w,h,bg,t;
dword x,y,w,bg,t;
ESI = edit_box_pointer;
x = ESI.edit_box.left;
y = ESI.edit_box.top;
w = ESI.edit_box.width+1;
h = 22;
#define box_h 22
 
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff;
edit_box_draw stdcall (edit_box_pointer);
DrawRectangle3D(x-1, y-1, w+1, h+1, 0xE7E7E7, bg);
DrawRectangle(x-2, y-2, w+3, h+3, sc.work_graph);
DrawRectangle3D(x-3, y-3, w+DOT_W+5, h+5, sc.work_dark, sc.work_light);
DrawRectangle3D(x-1, y-1, w+1, box_h+1, 0xE7E7E7, bg);
DrawRectangle(x-2, y-2, w+3, box_h+3, sc.work_graph);
DrawRectangle3D(x-3, y-3, w+DOT_W+5, box_h+5, sc.work_dark, sc.work_light);
 
WriteText(x-2, y-19, 0x90, sc.work_text, title);
DrawCaptButton(x+w+1, y-2, DOT_W, h+3, btn, sc.button, sc.button_text, "...");
DrawCaptButton(x+w+1, y-2, DOT_W, box_h+3, btn, sc.button, sc.button_text, "...");
}
 
:void DrawEditBoxPos(dword x,y, edit_box_pointer)