/programs/cmm/eolite/include/breadcrumbs.h |
---|
3,13 → 3,15 |
void DrawPathBar() |
{ |
PathShow.area_size_x = Form.cwidth-300; |
DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, 0xFFFfff); |
DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,col_graph); |
DrawBar(PathShow.start_x-3, PathShow.start_y-6, PathShow.area_size_x+3, 19, col.odd_line); |
DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,col.graph); |
DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,PATH_BTN); |
DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, system.color.work_light); |
DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, 61, "\26"); |
PathShow.background_color = col.odd_line; |
PathShow.font_color = col.list_gb_text; |
PathShow_prepare stdcall(#PathShow); |
PathShow_draw stdcall(#PathShow); |
} |
44,7 → 46,7 |
//DrawFavButton(btn.x); |
//btn.x+=20; |
btn.x++; |
DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,col_work); |
DrawBar(btn.x,btn.y-1,Form.cwidth-btn.x-25,btn.h+3,col.work); |
} |
59,16 → 61,13 |
} |
dword col_palette_br[14] = {0xFFFfff,0xF3EDF0,0xF3EDF0,0xF3EDF0,0xF3EDF0, |
0xF2EBEF,0xF2EBEF, |
0xF0EAEC,0xEFE9EB,0xEDE6E9,0xEAE6E8,0xE9E4E6,0xE5E0E3,0xE3DDDE,0xE0DBDB, |
0xDFDADA,0xDBD9DA,0xD2D0D2,0xC2C6C6}; |
void DrawBreadcrumbButton(dword x,y,w,h,id,text) |
{ |
int i; |
DrawRectangle(x,y,w,h,col_graph); |
for (i=0; i<h-1; i++) DrawBar(x+1, y+i+1, w-1, 1, col_palette_br[i]); |
DrawRectangle(x,y,w,h,col.graph); |
for (i=0; (i<h-1) & (i<20); i++) DrawBar(x+1, y+i+1, w-1, 1, col.work_gradient[20-i]); |
DrawRectangle3D(x+1,y+1,w-2,h-2,system.color.work_light, system.color.work_dark); |
DefineHiddenButton(x+1,y+1,w-2,h-2,id); |
WriteText(-strlen(text)*8+w/2+x,h/2+y-7,0x90,0x444444,text); |
DrawBar(x, y+h+1, w+1, 1, MixColors(col_work,0xFFFfff,120)); |
WriteText(-strlen(text)*8+w/2+x,h/2+y-7,0x90,system.color.work_text,text); |
DrawBar(x, y+h+1, w+1, 1, system.color.work_light); |
} |
/programs/cmm/eolite/include/gui.h |
---|
1,6 → 1,4 |
dword col_work_gradient[14]; |
void Scroll() { |
dword i; |
22,29 → 20,29 |
if (sc_slider_h > sc_h-sc_slider_y+56) || (files.first+files.visible>=files.count) sc_slider_y= sc_y + sc_h - sc_slider_h - 1; //äëÿ áîëüøîãî ñïèñêà |
} |
//slider |
DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col_graph); |
DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,col.graph); |
DrawRectangle3D(sc_x+1,sc_slider_y+1,14,sc_slider_h-2, system.color.work_light , system.color.work_dark); |
if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_work_gradient[13-i]); |
if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col_work_gradient[i]); |
if (!scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[13-i]); |
if (scroll_used) for (i=0; i<13; i++) DrawBar(sc_x + 2 + i, sc_slider_y+2, 1, sc_slider_h-3, col.work_gradient[i]); |
//area before slider |
if (sc_slider_y > sc_y + 1) |
{ |
DrawBar(sc_x+1, sc_y, 15, 1, 0xC7C9C9); |
DrawBar(sc_x+1, sc_y+1, 1, sc_slider_y-sc_y-1, 0xC7C9C9); |
DrawBar(sc_x+2, sc_y+1, 14, sc_slider_y-sc_y-1, 0xCED0D0); |
DrawBar(sc_x+1, sc_y, 15, 1, col.slider_bg_left); |
DrawBar(sc_x+1, sc_y+1, 1, sc_slider_y-sc_y-1, col.slider_bg_left); |
DrawBar(sc_x+2, sc_y+1, 14, sc_slider_y-sc_y-1, col.slider_bg_big); |
} |
//area after slider |
if (sc_h-sc_slider_h+sc_y-2>sc_slider_y) |
{ |
DrawBar(sc_x+1, sc_slider_y + sc_slider_h+1, 15, 1, 0xC7C9C9); |
DrawBar(sc_x+1, sc_slider_y + sc_slider_h+2, 1, sc_h-sc_slider_h-sc_slider_y+sc_y-2, 0xC7C9C9); |
DrawBar(sc_x+2, sc_slider_y + sc_slider_h+2, 14, sc_h-sc_slider_h-sc_slider_y+sc_y-2, 0xCED0D0); |
DrawBar(sc_x+1, sc_slider_y + sc_slider_h+1, 15, 1, col.slider_bg_left); |
DrawBar(sc_x+1, sc_slider_y + sc_slider_h+2, 1, sc_h-sc_slider_h-sc_slider_y+sc_y-2, col.slider_bg_left); |
DrawBar(sc_x+2, sc_slider_y + sc_slider_h+2, 14, sc_h-sc_slider_h-sc_slider_y+sc_y-2, col.slider_bg_big); |
} |
} |
void DrawFlatButtonSmall(dword x,y,width,height,id,text) |
{ |
DrawRectangle(x,y,width,height,col_graph); |
DrawRectangle(x,y,width,height,col.graph); |
DrawRectangle3D(x+1,y+1,width-2,height-2, system.color.work_light , system.color.work_dark); |
PutPixel(x+width-1, y+1, system.color.work_dark); |
DrawFilledBar(x+2, y+2, width-3, height-3); |
55,10 → 53,12 |
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<fill_h; i++) DrawBar(x, y+i, w, 1, col_work_gradient[14-i]); |
DrawBar(x, y+i, w, h-fill_h, col_work_gradient[14-i]); |
if (h < 12) { |
for (i=0; i<h; i++) DrawBar(x, y+i, w, 1, col.work_gradient[12-i]); |
} else { |
DrawBar(x, y, w, h, col.work_gradient[12]); |
} |
} |
int popin_w=260; |
void DrawEolitePopup(dword b1_text, b2_text) |
65,15 → 65,15 |
{ |
int but_x; |
int popin_x = files.w - popin_w / 2 + files.x ; |
DrawPopup(popin_x, 160, popin_w, 95, 1, system.color.work, col_graph); |
DrawPopup(popin_x, 160, popin_w, 95, 1, system.color.work, col.graph); |
but_x = DrawStandartCaptButton(popin_x+23, 215, POPUP_BTN1, b1_text); |
DrawStandartCaptButton(popin_x+23 + but_x, 215, POPUP_BTN2, b2_text); |
} |
void DrawDot(dword x,y) { |
dword col_pxl = MixColors(col_graph, col_work, 60); |
DrawBar(x+1,y,2,4,col_graph); |
DrawBar(x,y+1,4,2,col_graph); |
dword col_pxl = MixColors(col.graph, col.work, 60); |
DrawBar(x+1,y,2,4,col.graph); |
DrawBar(x,y+1,4,2,col.graph); |
PutPixel(x,y,col_pxl); |
PutPixel(x+3,y,col_pxl); |
PutPixel(x,y+3,col_pxl); |
/programs/cmm/eolite/include/icons.h |
---|
35,7 → 35,7 |
IF(DSDWORD[#BYTE_HEAD_FILE]=='KCPK')||(DSDWORD[#BYTE_HEAD_FILE]=='UNEM') |
icon_n = icons_ini.GetInt("kex", 2); |
} |
if (fairing_color==col_selec) |
if (fairing_color==col.selec) |
{ |
img_draw stdcall(selected_image, xx, yy, icon_size, icon_size, 0, icon_n*icon_size); |
} |
/programs/cmm/eolite/include/left_panel.h |
---|
237,22 → 237,25 |
int actions_y = SystemDiscs.list.count*16; |
int start_y = actions_y+156; |
int area_h; |
DrawBar(2,41,190,15,col_lpanel); //ñèíèé ïðÿìîóãîëüíèê - íàä äåâàéñàìè |
DrawBar(17,actions_y+75,160,15,col_lpanel); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè |
DrawBar(2,41,190,15,col.lpanel); //ñèíèé ïðÿìîóãîëüíèê - íàä äåâàéñàìè |
DrawBar(17,actions_y+75,160,15,col.lpanel); //ñèíèé ïðÿìîóãîëüíèê - ïîä äåâàéñàìè |
PutShadow(17,actions_y+75,160,1,1,3); |
PutShadow(18,actions_y+75+1,158,1,1,1); |
DrawBar(2,56,15,actions_y+103,col_lpanel); //ñèíèé ïðÿìîóãîëüíèê - ñëåâà |
DrawBar(177,56,15,actions_y+103,col_lpanel); //ñèíèé ïðÿìîóãîëüíèê - ñïðàâà |
DrawBar(2,56,15,actions_y+103,col.lpanel); //ñèíèé ïðÿìîóãîëüíèê - ñëåâà |
DrawBar(177,56,15,actions_y+103,col.lpanel); //ñèíèé ïðÿìîóãîëüíèê - ñïðàâà |
area_h = Form.cheight-start_y-2 - status_bar_h; |
if (area_h < 268) |
if (col.lpanel == 0x00699C) |
{ |
if (area_h < 268){ |
PutPaletteImage(#blue_hl, 190, area_h, 2, start_y, 8, #blue_hl_pal); |
} |
else |
{ |
DrawBar(2,start_y,190, area_h-268, col_lpanel); |
} else { |
DrawBar(2,start_y,190, area_h-268, col.lpanel); |
PutPaletteImage(#blue_hl, 190, 268, 2, Form.cheight-270-status_bar_h, 8, #blue_hl_pal); |
} |
} |
else { |
DrawBar(2,start_y,190, area_h, col.lpanel); |
} |
PutShadow(17,start_y,160,1,1,3); |
PutShadow(18,start_y+1,158,1,1,1); |
} |
/programs/cmm/eolite/include/menu.h |
---|
93,7 → 93,7 |
else |
DefineAndDrawWindow(Form.left+files.x+15, files.item_h*files.cur_y+files.y+Form.top+30,rbmenu.w+3,rbmenu.h+6,0x01, 0, 0, 0x01fffFFF); |
GetProcessInfo(#MenuForm, SelfInfo); |
DrawRectangle(0,0,rbmenu.w+1,rbmenu.h+2,col_graph); |
DrawRectangle(0,0,rbmenu.w+1,rbmenu.h+2,col.graph); |
DrawBar(1,1,rbmenu.w,1,0xFFFfff); |
DrawPopupShadow(1,1,rbmenu.w,rbmenu.h,0); |
MenuListRedraw(); |
126,7 → 126,7 |
} |
else |
{ |
m_col_bg = col_work; |
m_col_bg = col.work; |
m_col_text = system.color.work_text; |
m_col_sh_text = system.color.work_light; |
} |
/programs/cmm/eolite/include/settings.h |
---|
207,20 → 207,46 |
void SetAppColors() |
{ |
int i; |
dword bg_col; |
system.color.get(); |
for (i=0; i<=14; i++) col_work_gradient[14-i]= MixColors(0, system.color.work, i); |
col_work = system.color.work; |
col_graph = system.color.work_graph; |
bg_col = system.color.work; |
if (GrayScaleImage(#bg_col,1,1)>=65) |
{ |
//use light colors |
col.list_bg = 0xFFFfff; |
col.list_gb_text = 0x000000; |
col.list_text_hidden = 0xA6A6B7; |
col.list_vert_line = 0xDDD7CF; |
col.work = system.color.work; |
col.graph = system.color.work_graph; |
col.lpanel = 0x00699C; |
col.selec = col.selec_active = 0x94AECE; |
col.selec_text = 0x000000; |
system.color.work_dark = MixColors(0, system.color.work, 35); |
/* |
col_work = 0xE4DFE1; |
col_graph = 0x7E87A3; |
*/ |
col_lpanel = 0x00699C; |
col_selec = 0x94AECE; |
col.slider_bg_big = 0xCDCFCF; |
col.odd_line = 0xF1F1F1; |
} |
else |
{ |
//use dark colors |
col.list_bg = system.color.work; |
col.list_gb_text = system.color.work_text; |
col.list_text_hidden = 0xA6A6B7; |
col.list_vert_line = system.color.work_graph; |
col.work = system.color.work; |
col.graph = system.color.work_graph; |
col.lpanel = MixColors(system.color.work_graph, system.color.work, 65); |
col.selec = col.selec_active = system.color.work_button; |
col.selec_text = system.color.work_button_text; |
system.color.work_dark = MixColors(0, system.color.work, 35); |
if (col.list_bg==col.selec) col.selec = system.color.work_graph; //for fucking skins |
col.slider_bg_big = MixColors(0xCED0D0, system.color.work, 35); |
col.odd_line = MixColors(0xFFFfff, system.color.work, 15); |
} |
col.selec_inactive = MixColors(0xBBBbbb, col.list_bg, 65); |
col.slider_bg_left = MixColors(col.graph, col.slider_bg_big, 10); |
for (i=0; i<=20; i++) col.work_gradient[20-i] = MixColors(0, system.color.work, i); |
} |
void BigFontsChange() |
244,9 → 270,9 |
Libimg_LoadImage(#icons32_default, "/sys/icons32.png"); |
Libimg_LoadImage(#icons32_selected, "/sys/icons32.png"); |
Libimg_ReplaceColor(icons32_default.image, icons32_selected.w, |
icons32_selected.h, 0x00000000, 0xffFFFfff); |
icons32_selected.h, 0x00000000, col.list_bg); |
Libimg_ReplaceColor(icons32_selected.image, icons32_selected.w, |
icons32_selected.h, 0x00000000, col_selec); |
icons32_selected.h, 0x00000000, col.selec); |
} |
} |
else { |
/programs/cmm/eolite/include/translations.h |
---|
1,5 → 1,5 |
#define TITLE "Eolite File Manager 4.1" |
#define ABOUT_TITLE "EOLITE 4.1" |
#define TITLE "Eolite File Manager 4.2" |
#define ABOUT_TITLE "EOLITE 4.2" |
#ifdef LANG_RUS |
?define T_FILE " ©«" |