From 6a46b302a94b891a2c1d8db0264b161f706f9c51 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 7 Jan 2016 13:10:39 +0000 Subject: [PATCH] Eolite: use bigger fonts by default, other small fixes git-svn-id: svn://kolibrios.org@6039 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 8 ++-- programs/cmm/eolite/include/gui.h | 7 ++-- programs/cmm/eolite/include/settings.h | 47 +++++++++------------- programs/cmm/eolite/include/translations.h | 4 +- programs/cmm/lib/kolibri.h | 7 +--- programs/cmm/lib/list_box.h | 4 +- 6 files changed, 32 insertions(+), 45 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 54188d0a35..f30fe7119c 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -602,25 +602,25 @@ void DrawFilePanels() llist_copy(#files, #files_inactive); strcpy(#path, #inactive_path); col_selec = 0xCCCccc; - files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y, files.item_h); + files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2, files.item_h); DrawList(); Open_Dir(#path,WITH_REDRAW); llist_copy(#files, #files_active); strcpy(#path, #active_path); col_selec = 0x94AECE; - files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y, files.item_h); + files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2, files.item_h); DrawList(); Open_Dir(#path,WITH_REDRAW); } if (active_panel==2) { - files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y, files.item_h); + files.SetSizes(2, files_y, Form.cwidth/2-2-17, Form.cheight-files_y-2, files.item_h); DrawList(); Open_Dir(#path,WITH_REDRAW); llist_copy(#files, #files_active); strcpy(#path, #active_path); col_selec = 0x94AECE; - files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y, files.item_h); + files.SetSizes(Form.cwidth/2, files_y, Form.cwidth/2 -17, Form.cheight-files_y-2, files.item_h); DrawList(); Open_Dir(#path,WITH_REDRAW); } diff --git a/programs/cmm/eolite/include/gui.h b/programs/cmm/eolite/include/gui.h index cb7af1d2fc..2346743edf 100644 --- a/programs/cmm/eolite/include/gui.h +++ b/programs/cmm/eolite/include/gui.h @@ -51,10 +51,9 @@ void DrawFlatButton(dword x,y,width,height,id,color,text) if (color!=-1) DrawFilledBar(x+2, y+2, width-3, height-3); IF (id<>0) DefineButton(x+1,y+1,width-2,height-2,id+BT_HIDE,0xEFEBEF); if (height<18) - WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80 ,system.color.work_text,text); + WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,system.color.work_text,text); else - WriteText(-strlen(text)*8+width/2+x+1,height/2+y-6,10010000b,system.color.work_text,text); - + WriteText(-strlen(text)*8+width/2+x+1,height/2+y-6,0x90,system.color.work_text,text); } void DrawFilledBar(dword x, y, w, h) @@ -62,7 +61,7 @@ void DrawFilledBar(dword x, y, w, h) int i, fill_h; if (h <= 14) fill_h = h; else fill_h = 14; for (i=0; i