From 36e64a3f84f404bce85f4f9f42d71320ba5490d7 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 9 Jan 2022 06:36:16 +0000 Subject: [PATCH] cmm: mass renaming git-svn-id: svn://kolibrios.org@9602 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/app_plus/app_plus.c | 2 +- programs/cmm/appearance/ui_elements_preview.h | 4 +- programs/cmm/barscfg/barscfg.c | 2 +- programs/cmm/browser/WebView.c | 12 +++--- programs/cmm/browser/tabs.h | 18 ++++----- programs/cmm/clipview/clipview.c | 4 +- programs/cmm/dicty/dicty.c | 8 ++-- programs/cmm/downloader/dl.c | 2 +- programs/cmm/eolite/Eolite.c | 20 +++++----- programs/cmm/eolite/include/about.h | 2 +- programs/cmm/eolite/include/gui.h | 40 +++++++++---------- programs/cmm/eolite/include/left_panel.h | 10 ++--- programs/cmm/eolite/include/progress_dialog.h | 4 +- programs/cmm/eolite/include/properties.h | 2 +- programs/cmm/eolite/include/settings.h | 12 +++--- programs/cmm/examples/rgb.c | 6 +-- programs/cmm/experimental/liza/mail_box.c | 10 ++--- programs/cmm/experimental/liza/settings.c | 2 +- programs/cmm/iconedit/iconedit.c | 8 ++-- programs/cmm/imgedit/imgedit.c | 2 +- programs/cmm/kf_font_viewer/font_viewer.c | 8 ++-- programs/cmm/lib/gui.h | 16 ++++---- programs/cmm/lib/gui/checkbox.h | 6 +-- programs/cmm/lib/gui/more_less_box.h | 6 +-- programs/cmm/lib/gui/sensor.h | 6 +-- programs/cmm/lib/gui/tabs.h | 4 +- programs/cmm/lib/kolibri.h | 18 +++------ programs/cmm/lib/obj/box_lib.h | 4 +- programs/cmm/lib/patterns/select_list.h | 6 +-- programs/cmm/lib/patterns/toolbar_button.h | 18 ++++----- programs/cmm/lib/system.h | 6 +-- programs/cmm/menu/menu.c | 14 +++---- programs/cmm/misc/easyshot.c | 2 +- programs/cmm/misc/mblocks.c | 4 +- programs/cmm/misc/reshare.c | 10 ++--- programs/cmm/misc/software_widget.c | 8 ++-- programs/cmm/notes/engine.h | 2 +- programs/cmm/notes/notes.c | 2 +- programs/cmm/pixie2/compile_en.bat | 1 + programs/cmm/quark/quark.c | 14 +++---- programs/cmm/search/search.c | 2 +- programs/cmm/sysmon/sysmon.c | 4 +- programs/cmm/tmpdisk/t_gui.c | 12 +++--- 43 files changed, 169 insertions(+), 174 deletions(-) diff --git a/programs/cmm/app_plus/app_plus.c b/programs/cmm/app_plus/app_plus.c index 7a2f43de7f..41cbd97688 100644 --- a/programs/cmm/app_plus/app_plus.c +++ b/programs/cmm/app_plus/app_plus.c @@ -115,7 +115,7 @@ void draw_screen() { char i; int icon_n=1; - DrawRectangle(WINW-180-1,SCRY-1, 145+1,170+1, sc.work_graph); + DrawRectangle(WINW-180-1,SCRY-1, 145+1,170+1, sc.line); DrawBar(SCRX,SCRY,145,170,0xFFFfff); DrawBar(SCRX+25,SCRY+5,144-25,20,0xBBDDFF); for (i=0; i<8; i++) { diff --git a/programs/cmm/appearance/ui_elements_preview.h b/programs/cmm/appearance/ui_elements_preview.h index 4f2d0d21c3..c0c123833d 100644 --- a/programs/cmm/appearance/ui_elements_preview.h +++ b/programs/cmm/appearance/ui_elements_preview.h @@ -22,8 +22,8 @@ void DrawUiElementsPreview(dword x,y,h) :void DrawStEditBoxPos(dword x,y, edit_box_pointer) { - dword c_inactive = MixColors(sc.work_graph, sc.work, 128); - dword c_active = MixColors(sc.work_graph, 0, 128); + dword c_inactive = MixColors(sc.line, sc.work, 128); + dword c_active = MixColors(sc.line, 0, 128); ESI = edit_box_pointer; ESI.edit_box.left = x; ESI.edit_box.top = y; diff --git a/programs/cmm/barscfg/barscfg.c b/programs/cmm/barscfg/barscfg.c index f2246d772d..7033be52d8 100644 --- a/programs/cmm/barscfg/barscfg.c +++ b/programs/cmm/barscfg/barscfg.c @@ -137,7 +137,7 @@ void main() void DrawPanelsImage(dword y, n) { - _PutImage(22, y, PIMG_W, PIMG_H, n * PIMG_W * PIMG_H * 3 + #panels_img_data); + PutImage(22, y, PIMG_W, PIMG_H, n * PIMG_W * PIMG_H * 3 + #panels_img_data); } void SetDisabledMode() diff --git a/programs/cmm/browser/WebView.c b/programs/cmm/browser/WebView.c index b444853719..fcc0b7a425 100644 --- a/programs/cmm/browser/WebView.c +++ b/programs/cmm/browser/WebView.c @@ -385,8 +385,8 @@ void draw_window() if (!application_mode) { DrawBar(0,0, Form.cwidth,PADDING, sc.work); DrawBar(0,PADDING+TSZE+1, Form.cwidth,PADDING-1, sc.work); - DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, MixColors(sc.work_dark, sc.work, 180)); - DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, sc.work_graph); + DrawBar(0,TOOLBAR_H-2, Form.cwidth,1, MixColors(sc.dark, sc.work, 180)); + DrawBar(0,TOOLBAR_H-1, Form.cwidth,1, sc.line); DrawBar(0, PADDING, omnibox_edit.left-2, TSZE+1, sc.work); DrawBar(omnibox_edit.left+omnibox_edit.width+18, PADDING, Form.cwidth-omnibox_edit.left-omnibox_edit.width-18, TSZE+1, sc.work); @@ -394,7 +394,7 @@ void draw_window() DrawTopPanelButton(FORWARD_BUTTON, PADDING+TSZE+PADDING-2, PADDING, 31, false); DrawTopPanelButton(SANDWICH_BUTTON, Form.cwidth-PADDING-TSZE-3, PADDING, -1, burger_active); //burger menu - DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.work_graph); + DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.line); DrawRectangle(WB1.list.x + WB1.list.w, WB1.list.y, scroll_wv.size_x, WB1.list.h-1, scroll_wv.bckg_col); @@ -901,8 +901,8 @@ void DrawOmnibox() { int imgxoff; if (application_mode) return; - DrawOvalBorder(omnibox_edit.left-2, omnibox_edit.top-3, omnibox_edit.width+18, 24, sc.work_graph, - sc.work_graph, sc.work_graph, sc.work_dark); + DrawOvalBorder(omnibox_edit.left-2, omnibox_edit.top-3, omnibox_edit.width+18, 24, sc.line, + sc.line, sc.line, sc.dark); DrawBar(omnibox_edit.left-1, omnibox_edit.top-2, omnibox_edit.width+18, 1, 0xD8DCD8); DrawBar(omnibox_edit.left-1, omnibox_edit.top-1, omnibox_edit.width+18, 1, omnibox_edit.color); DrawBar(omnibox_edit.left-1, omnibox_edit.top, 1, 22, omnibox_edit.color); @@ -911,7 +911,7 @@ void DrawOmnibox() EditBox_UpdateText(#omnibox_edit, omnibox_edit.flags); edit_box_draw stdcall(#omnibox_edit); if (http.transfer) imgxoff = 16*23*3; else imgxoff = 0; - _PutImage(omnibox_edit.left+omnibox_edit.width+1, omnibox_edit.top-1, 16, 23, imgxoff + #editbox_icons); + PutImage(omnibox_edit.left+omnibox_edit.width+1, omnibox_edit.top-1, 16, 23, imgxoff + #editbox_icons); DefineHiddenButton(omnibox_edit.left+omnibox_edit.width-1, omnibox_edit.top-2, 17, 23, REFRESH_BUTTON); DrawProgress(); diff --git a/programs/cmm/browser/tabs.h b/programs/cmm/browser/tabs.h index 9b33216821..bfb9889833 100644 --- a/programs/cmm/browser/tabs.h +++ b/programs/cmm/browser/tabs.h @@ -84,25 +84,25 @@ void DrawTab(int _id) if (_id==tab.active) { tab.save_state(); - bgcol = sc.work_light; - border_bottom_color = sc.work_light; + bgcol = sc.light; + border_bottom_color = sc.light; } else { bgcol=sc.work; - border_bottom_color = sc.work_graph; + border_bottom_color = sc.line; } if (tabdata[_id].header) { strncpy(#header_no_version, #tabdata[_id].header, strlen(#tabdata[_id].header)-sizeof(version)-2); strncpy(#name, #header_no_version, tab_w-CLOSE_S/6-2); } - DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_dark); + DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.dark); DrawBar(xxx+1, TOOLBAR_H, tab_w-1, TAB_H-1, bgcol); DrawBar(xxx+1, TOOLBAR_H+TAB_H-1, tab_w-1, 1, border_bottom_color); DefineHiddenButton(xxx, TOOLBAR_H-1, tab_w, TAB_H, TAB_ID+_id); WriteTextCenter(xxx, TOOLBAR_H+6, tab_w-CLOSE_S, sc.work_text, #name); DefineHiddenButton(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S-1, CLOSE_S-1, TAB_CLOSE_ID+_id); - DrawBar(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S, CLOSE_S, sc.work_dark); - WriteText(xxx+tab_w-CLOSE_S+1, TOOLBAR_H+5, 0x80, sc.work_light, "x"); + DrawBar(xxx+tab_w-CLOSE_S-3, TOOLBAR_H+3, CLOSE_S, CLOSE_S, sc.dark); + WriteText(xxx+tab_w-CLOSE_S+1, TOOLBAR_H+5, 0x80, sc.light, "x"); } void DrawActiveTab() @@ -118,7 +118,7 @@ int DrawNewTabButton() int xxx = tab.count * tab_w; if (tab.count < TABS_MAX) { - DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.work_graph); + DrawBar(xxx, TOOLBAR_H, 1, TAB_H, sc.line); DrawBar(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, sc.button); DrawRectangle3D(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, btn_light, btn_dark); PutPixel(xxx+1+TAB_H, TOOLBAR_H, btn_dark); @@ -136,8 +136,8 @@ void DrawTabsBar() tab_w = GetTabWidth(); for (i=0; i=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y-17) && (mouse.y0) { pause(8); @@ -257,12 +257,12 @@ void main() List_ReDraw(); mouse.get(); } - DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.work_light,sc.work_dark); + DrawRectangle3D(files.x+files.w+1,files.y-16,14,14,sc.light,sc.dark); } if (mouse.x>=files.x+files.w) && (mouse.x<=files.x+files.w+16) && (mouse.y>files.y+files.h-16) && (mouse.y2) break; logo_pal[0] = sc.work; - ESDWORD[#logo_pal+16] = sc.work_dark; + ESDWORD[#logo_pal+16] = sc.dark; PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal); about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2; WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE); diff --git a/programs/cmm/eolite/include/gui.h b/programs/cmm/eolite/include/gui.h index 12724dd8a9..8914d70eed 100644 --- a/programs/cmm/eolite/include/gui.h +++ b/programs/cmm/eolite/include/gui.h @@ -29,9 +29,9 @@ void DrawScroll(bool _scroll_used) { } } //slider - DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.work_graph); + DrawRectangle(sc_x,sc_slider_y,16,sc_slider_h,sc.line); sc_x++; - DrawRectangle3D(sc_x,sc_slider_y+1,14,sc_slider_h-2, sc.work_light , sc.work_dark); + DrawRectangle3D(sc_x,sc_slider_y+1,14,sc_slider_h-2, sc.light , sc.dark); for (i=0; i<13; i++) { if (!_scroll_used) EDX = col.work_gradient[13-i]; else EDX = col.work_gradient[i]; DrawBar(sc_x + 1 + i, sc_slider_y+2, 1, sc_slider_h-3, EDX); @@ -39,11 +39,11 @@ void DrawScroll(bool _scroll_used) { sc_center = sc_slider_h / 2 + sc_slider_y; - DrawBar(sc_x+2, sc_center, 10, 1, sc.work_graph); + DrawBar(sc_x+2, sc_center, 10, 1, sc.line); DrawBar(sc_x+3, sc_center-3, 8, 1, EDX); DrawBar(sc_x+3, sc_center+3, 8, 1, EDX); - DrawBar(sc_x+3, sc_center+1, 10, 1, sc.work_light); + DrawBar(sc_x+3, sc_center+1, 10, 1, sc.light); DrawBar(sc_x+4, sc_center-2, 8, 1, EDX); DrawBar(sc_x+4, sc_center+4, 8, 1, EDX); @@ -71,9 +71,9 @@ void DrawScroll(bool _scroll_used) { void DrawFlatButtonSmall(dword x,y,width,height,id,text) { - DrawRectangle(x,y,width,height,sc.work_graph); - DrawRectangle3D(x+1,y+1,width-2,height-2, sc.work_light, sc.work_dark); - PutPixel(x+width-1, y+1, sc.work_dark); + DrawRectangle(x,y,width,height,sc.line); + DrawRectangle3D(x+1,y+1,width-2,height-2, sc.light, sc.dark); + PutPixel(x+width-1, y+1, sc.dark); DrawFilledBar(x+2, y+2, width-3, height-3); if (id) DefineHiddenButton(x+1,y+1,width-2,height-2,id); WriteText(-strlen(text)*6+width/2+x+1,height/2+y-3,0x80,sc.work_text,text); @@ -91,9 +91,9 @@ void DrawFuncButton(dword x,y,width,id,number,text) DrawFlatButtonSmall(x,y,width,FH,id,text); return; } - DrawRectangle(x,y,width,FH,sc.work_graph); + DrawRectangle(x,y,width,FH,sc.line); DrawRectangle3D(x+1,y+1,width-2,FH-2, 0x97D194, 0x00A100); - PutPixel(x+width-1, y+1, sc.work_dark); + PutPixel(x+width-1, y+1, sc.dark); DrawBar(x+2, y+2, numw, FH-2, 0x6060FF); WriteText(x+6,FH/2+y-2,0x80,0x444444,itoa(number)); $sub ebx, 1 <<16 + 1 @@ -116,9 +116,9 @@ void DrawFuncButton(dword x,y,width,id,number,text) void Tip(int y, dword caption, id, arrow) { DrawBar(SB_BLOCKX,y,SB_BLOCKW,1,col.list_bg); - DrawBar(SB_BLOCKX,y+1,1,16,sc.work_light); + DrawBar(SB_BLOCKX,y+1,1,16,sc.light); DrawFilledBar(SB_BLOCKX+1, y+1, SB_BLOCKW-1, 16); - DrawBar(SB_BLOCKX,y+SB_BLOCKX,SB_BLOCKW,1,sc.work_graph); + DrawBar(SB_BLOCKX,y+SB_BLOCKX,SB_BLOCKW,1,sc.line); WriteText(SB_BLOCKX+8,y+5,0x80,col.list_gb_text,caption); if (id) DefineButton(159,y+1,16,16,id+BT_HIDE+BT_NOFRAME,0); //arrow button WriteText(165,y+5,0x80,col.list_gb_text,arrow); //arrow @@ -134,7 +134,7 @@ void ActionsDraw(int actions_y) DefineButton(SB_BLOCKX,actions_y,SB_BLOCKW-1,DEV_H,actions[i*3]+BT_HIDE,0xE4DFE1); WriteText(45,actions_y+4,0x80,0,actions[i*3+1]); WriteText(-strlen(actions[i*3+2])*6+SIDEBAR_W-SBPAD-7,actions_y+4,0x80,0x999999,actions[i*3+2]); - _PutImage(23,actions_y+2, 14,13, i*14*13*3+#factions); + PutImage(23,actions_y+2, 14,13, i*14*13*3+#factions); } } @@ -181,9 +181,9 @@ void DrawPathEolite() PathShow.text_pointer = location[0]; PathShow.area_size_x = Form.cwidth-300; 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,sc.work_graph); + DrawRectangle(PathShow.start_x-4,PathShow.start_y-7,PathShow.area_size_x+4,20,sc.line); DefineHiddenButton(PathShow.start_x-4+1,PathShow.start_y-7+1,PathShow.area_size_x+4-2,20-2,BTN_PATH); - DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.work_light); + DrawBar(PathShow.start_x-4, PathShow.start_y+14, PathShow.area_size_x+5+18, 1, sc.light); DrawFlatButtonSmall(PathShow.start_x+PathShow.area_size_x,PathShow.start_y-7,18,20, BTN_BREADCRUMB, "\x19"); @@ -209,10 +209,10 @@ void DrawPathBarKfm() draw_x = 3 + DDW; draw_w = Form.cwidth/2 - draw_x - 17; do { - DrawBar(draw_x, SELECTY-1, draw_w-KFM2_DEVH+1, 1, sc.work_graph); + DrawBar(draw_x, SELECTY-1, draw_w-KFM2_DEVH+1, 1, sc.line); DrawBar(draw_x, SELECTY, draw_w-KFM2_DEVH+1, KFM2_DEVH, back_color); DefineHiddenButton(draw_x, SELECTY, draw_w-KFM2_DEVH, KFM2_DEVH-1, BTN_PATH+i); - DrawBar(draw_x, SELECTY+KFM2_DEVH, draw_w-KFM2_DEVH+1, 1, sc.work_graph); + DrawBar(draw_x, SELECTY+KFM2_DEVH, draw_w-KFM2_DEVH+1, 1, sc.line); kfont.WriteIntoWindow(draw_x + 3, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), back_color, text_color, kfont.size.pt, location[i]+strrchr(location[i], '/')); DrawFlatButtonSmall(draw_x+draw_w-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, BTN_BREADCRUMB+i, "\x19"); @@ -286,7 +286,7 @@ void ClickOnBreadCrumb(unsigned clickid) int DrawEolitePopup(dword b1_text, b2_text) { int popin_x = files.w - POPIN_W / 2 + files.x ; - DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.work_graph); + DrawPopup(popin_x, 160, POPIN_W, 95, 1, sc.work, sc.line); DrawCaptButton(popin_x+23+000, 215, 100, 26, POPUP_BTN1, sc.button, sc.button_text, b1_text); DrawCaptButton(popin_x+23+114, 215, 100, 26, POPUP_BTN2, sc.button, sc.button_text, b2_text); popin_text.left = popin_x+30; @@ -295,9 +295,9 @@ int DrawEolitePopup(dword b1_text, b2_text) } void DrawDot(dword x,y) { - dword col_pxl = MixColors(sc.work_graph, sc.work, 60); - DrawBar(x+1,y,2,4,sc.work_graph); - DrawBar(x,y+1,4,2,sc.work_graph); + dword col_pxl = MixColors(sc.line, sc.work, 60); + DrawBar(x+1,y,2,4,sc.line); + DrawBar(x,y+1,4,2,sc.line); PutPixel(x,y,col_pxl); PutPixel(x+3,y,EDX); PutPixel(x,y+3,EDX); diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index 4f600a310a..ecf72ffa06 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -110,7 +110,7 @@ void _SystemDiscs::Draw() if (is_active) WriteText(draw_x+30,draw_y+5,0x80,0x555555,#dev_name); WriteText(draw_x+29,draw_y+5,0x80,0,#dev_name); } - _PutImage(draw_x+6,draw_y, 18,17, is_active*7+dev_icon*17*18*3+#devices); + PutImage(draw_x+6,draw_y, 18,17, is_active*7+dev_icon*17*18*3+#devices); draw_y += DEV_H; } DrawBar(draw_x+6, draw_y, 18, 1, 0xFFFfff); @@ -134,9 +134,9 @@ void _SystemDiscs::DrawSelect(int draw_x, btid, dword _path) GetDiskIconAndName(#dev_name, #dev_icon, #disc_name); if (strstr(_path, #dev_name)-_path==0) break; } - DrawRectangle(draw_x-1, SELECTY-1, DDW+2-KFM2_DEVH, KFM2_DEVH+1, sc.work_graph); + DrawRectangle(draw_x-1, SELECTY-1, DDW+2-KFM2_DEVH, KFM2_DEVH+1, sc.line); DrawBar(draw_x, SELECTY, DDW+1-KFM2_DEVH, KFM2_DEVH, 0xFFFFFF); - _PutImage(draw_x + 5, SELECTY+2, 18,17, dev_icon*17*18*3+#devices); + PutImage(draw_x + 5, SELECTY+2, 18,17, dev_icon*17*18*3+#devices); kfont.WriteIntoWindow(draw_x + 24, math.max(KFM2_DEVH-kfont.height/2+SELECTY,0), 0xFFFfff, 0x000000, kfont.size.pt, #dev_name+1); DefineHiddenButton(draw_x, SELECTY, DDW-1, KFM2_DEVH-1, btid); DrawFlatButtonSmall(draw_x+DDW-KFM2_DEVH+1, SELECTY-1, KFM2_DEVH-1, KFM2_DEVH+1, NULL, "\x19"); @@ -150,7 +150,7 @@ void _SystemDiscs::DrawOptions(int draw_x) SystemDiscs.Get(); - DrawPopup(draw_x, optionsy, DDW, list.count*KFM2_DEVH, 1, -1, sc.work_graph); + DrawPopup(draw_x, optionsy, DDW, list.count*KFM2_DEVH, 1, -1, sc.line); for (i=0;i0) { @@ -589,7 +589,7 @@ void DrawPreview() if (image.columns > right_bar.w) return; if (image.rows > preview_h) return; - _PutImage(right_bar.w - image.columns / 2 + x - 3, + PutImage(right_bar.w - image.columns / 2 + x - 3, preview_h - image.rows / 2 + y, image.columns, image.rows, image.get_image() ); @@ -606,7 +606,7 @@ void DrawImageWithBg(dword _x, _y, _col_to) _x *= preview_size; _y *= preview_size; DrawWideRectangle(_x,_y, preview_size, preview_size, preview_size-image.columns/2, _col_to); - _PutImage(preview_size - image.columns / 2 + _x, preview_size - image.rows / 2 + _y, + PutImage(preview_size - image.columns / 2 + _x, preview_size - image.rows / 2 + _y, image.columns, image.rows, image.get_image_with_replaced_color(color2, _col_to)); } diff --git a/programs/cmm/imgedit/imgedit.c b/programs/cmm/imgedit/imgedit.c index 57a34427e9..5489c8983c 100644 --- a/programs/cmm/imgedit/imgedit.c +++ b/programs/cmm/imgedit/imgedit.c @@ -155,7 +155,7 @@ void draw_window() scroll_v.all_redraw = scroll_h.all_redraw = 1; if (skin_is_dark()) { - scroll_v.bckg_col = scroll_h.bckg_col = sc.work_light; + scroll_v.bckg_col = scroll_h.bckg_col = sc.light; scroll_v.frnt_col = scroll_h.frnt_col = sc.button; scroll_v.line_col = scroll_h.line_col = sc.button_text; } diff --git a/programs/cmm/kf_font_viewer/font_viewer.c b/programs/cmm/kf_font_viewer/font_viewer.c index 153424d6aa..fcd9076e79 100644 --- a/programs/cmm/kf_font_viewer/font_viewer.c +++ b/programs/cmm/kf_font_viewer/font_viewer.c @@ -54,7 +54,7 @@ void main() _DRAW_WINDOW_CONTENT: DrawBar(0, 0, WINW, BARH-1, sc.work); - DrawBar(0, BARH-1,WINW,1,sc.work_graph); + DrawBar(0, BARH-1,WINW,1,sc.line); if (!kfont.font) { DrawBar(0, BARH, WINW, WINH - BARH, 0xFFFfff); @@ -130,15 +130,15 @@ void draw_checkbox(dword _x, _checked) { #define SIZE 14 #define CHBOXY 7 - DrawRectangle3D(_x, CHBOXY, SIZE, SIZE, sc.work_graph, sc.work_graph); + DrawRectangle3D(_x, CHBOXY, SIZE, SIZE, sc.line, sc.line); if (_checked == false) { DrawRectangle3D(_x+1, CHBOXY+1, SIZE-2, SIZE-2, 0xDDDddd, 0xffffff); DrawBar(_x+2, CHBOXY+2, SIZE-3, SIZE-3, 0xffffff); } else { - if (checkbox_flag) _PutImage(_x+1, CHBOXY+1, 13, 13, checkbox_flag); + if (checkbox_flag) PutImage(_x+1, CHBOXY+1, 13, 13, checkbox_flag); } - DrawRectangle3D(_x-1,CHBOXY-1,SIZE+2,SIZE+2,sc.work_dark,sc.work_light); + DrawRectangle3D(_x-1,CHBOXY-1,SIZE+2,SIZE+2,sc.dark,sc.light); } char title[PATHLEN]; \ No newline at end of file diff --git a/programs/cmm/lib/gui.h b/programs/cmm/lib/gui.h index b8006ff7d5..364bfbc666 100644 --- a/programs/cmm/lib/gui.h +++ b/programs/cmm/lib/gui.h @@ -147,8 +147,8 @@ 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+5, h+5, sc.work_dark, sc.work_light); + DrawRectangle(x-2, y-2, w+3, h+3, sc.line); + DrawRectangle3D(x-3, y-3, w+5, h+5, sc.dark, sc.light); } #define DOT_W 37 @@ -164,8 +164,8 @@ 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, 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); + DrawRectangle(x-2, y-2, w+3, box_h+3, sc.line); + DrawRectangle3D(x-3, y-3, w+DOT_W+5, box_h+5, sc.dark, sc.light); WriteText(x-2, y-19, 0x90, sc.work_text, title); DrawCaptButton(x+w+1, y-2, DOT_W, box_h+3, btn, sc.button, sc.button_text, "..."); @@ -214,7 +214,7 @@ GetProcessInfo(#wForm, SelfInfo); CopyScreen(shadow_buf, 5*skinned+x+wForm.left, GetSkinHeight()*skinned+y+wForm.top, w, h); ShadowImage(shadow_buf, w, h, strength); - _PutImage(x,y,w,h,shadow_buf); + PutImage(x,y,w,h,shadow_buf); mem_Free(shadow_buf); } @@ -229,9 +229,9 @@ :void Draw3DPopup(dword x,y,w,h) { - DrawRectangle3D(x,y,w,h, sc.work_dark, sc.work_graph); - DrawBar(x+1,y+1,w-1,1,sc.work_light); - DrawBar(x+1,y+2,1,h-2,sc.work_light); + DrawRectangle3D(x,y,w,h, sc.dark, sc.line); + DrawBar(x+1,y+1,w-1,1,sc.light); + DrawBar(x+1,y+2,1,h-2,sc.light); DrawPopupShadow(x,y,w,h-1,0); } diff --git a/programs/cmm/lib/gui/checkbox.h b/programs/cmm/lib/gui/checkbox.h index 6454b7d33d..40209651df 100644 --- a/programs/cmm/lib/gui/checkbox.h +++ b/programs/cmm/lib/gui/checkbox.h @@ -33,7 +33,7 @@ struct checkbox DefineHiddenButton(x-1, y-1, strlen(text)*8 + SIZE + 17, SIZE+2, id+BT_NOFRAME); UnsafeDefineButton(x, y, SIZE, SIZE, id, 0); - DrawRectangle(x, y, SIZE, SIZE, sc.work_graph); + DrawRectangle(x, y, SIZE, SIZE, sc.line); if (disabled) { DrawRectangle(x+1, y+1, SIZE-2, SIZE-2, 0xffffff); @@ -48,11 +48,11 @@ struct checkbox else if (checked == true) { if (!checkbox_flag) checkbox_flag = memopen("CHECKBOX", NULL, SHM_READ); - if (checkbox_flag) _PutImage(x+1, y+1, 13, 13, checkbox_flag); + if (checkbox_flag) PutImage(x+1, y+1, 13, 13, checkbox_flag); else DrawBar(x+2, y+2, SIZE-3, SIZE-3, 0x58C33C); } if (text) WriteTextWithBg(x+SIZE+8, SIZE / 2 + y -7, 0xD0, text_col, text, sc.work); - DrawRectangle3D(x-1,y-1,SIZE+2,SIZE+2,sc.work_dark,sc.work_light); + DrawRectangle3D(x-1,y-1,SIZE+2,SIZE+2,sc.dark,sc.light); } :void checkbox::redraw() diff --git a/programs/cmm/lib/gui/more_less_box.h b/programs/cmm/lib/gui/more_less_box.h index ad1c59db20..88d3bcafe2 100644 --- a/programs/cmm/lib/gui/more_less_box.h +++ b/programs/cmm/lib/gui/more_less_box.h @@ -49,14 +49,14 @@ check_values(); x=_x; y=_y; - DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, sc.work_graph); + DrawRectangle(x, y, VALUE_FIELD_W+1, SIZE, sc.line); DrawRectangle3D(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xDDDddd, 0xffffff); if (disabled) { DrawRectangle(x+1, y+1, VALUE_FIELD_W-2, SIZE-2, 0xffffff); DrawBar(x+2, y+2, VALUE_FIELD_W-3, SIZE-3, 0xCCCccc); - text_col = sc.work_graph; + text_col = sc.line; } else { @@ -69,7 +69,7 @@ DrawCaptButton(VALUE_FIELD_W + x + 1, y, SIZE, SIZE, id_inc, sc.button, sc.button_text, "+"); DrawCaptButton(VALUE_FIELD_W + x + SIZE, y, SIZE, SIZE, id_dec, sc.button, sc.button_text, "-"); WriteTextWithBg(x+VALUE_FIELD_W+SIZE+SIZE+10, SIZE / 2 + y -7, 0xD0, text_col, text, sc.work); - DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,sc.work_dark,sc.work_light); + DrawRectangle3D(x-1,y-1,VALUE_FIELD_W+SIZE+SIZE+2,SIZE+2,sc.dark,sc.light); } :void more_less_box::redraw() diff --git a/programs/cmm/lib/gui/sensor.h b/programs/cmm/lib/gui/sensor.h index 11710b81a6..639aa76c1b 100644 --- a/programs/cmm/lib/gui/sensor.h +++ b/programs/cmm/lib/gui/sensor.h @@ -23,8 +23,8 @@ :void sensor::draw_wrapper() { - DrawRectangle(x-1, y-1, w+1, h+1, sc.work_graph); - DrawRectangle3D(x-2, y-2, w+3, h+3, sc.work, sc.work_light); + DrawRectangle(x-1, y-1, w+1, h+1, sc.line); + DrawRectangle3D(x-2, y-2, w+3, h+3, sc.work, sc.light); } :void sensor::draw_progress(dword progress_w) @@ -32,7 +32,7 @@ char textp[16]; DrawBar(x, y, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, PROGRESS_BG, 200)); DrawBar(x, y+1, w-progress_w, h-2, PROGRESS_ACTIVE); - DrawBar(x, y+h-1, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, sc.work_graph, 200)); + DrawBar(x, y+h-1, w-progress_w, 1, MixColors(PROGRESS_ACTIVE, sc.line, 200)); DrawBar(x+w-progress_w, y, progress_w, h, PROGRESS_BG); strcpy(#textp, itoa(w-progress_w*100/w)); diff --git a/programs/cmm/lib/gui/tabs.h b/programs/cmm/lib/gui/tabs.h index 88dcdad29e..3fe475d930 100644 --- a/programs/cmm/lib/gui/tabs.h +++ b/programs/cmm/lib/gui/tabs.h @@ -28,8 +28,8 @@ int i, xx=x; if (w) { - DrawBar(x+1,y+0+TAB_HEIGHT,w,1, sc.work_graph); - DrawBar(x+1,y+1+TAB_HEIGHT,w,1, sc.work_light); + DrawBar(x+1,y+0+TAB_HEIGHT,w,1, sc.line); + DrawBar(x+1,y+1+TAB_HEIGHT,w,1, sc.light); } for (i=0; i WINW) { x = PAD; diff --git a/programs/cmm/misc/software_widget.c b/programs/cmm/misc/software_widget.c index a413a93893..d2ca172894 100644 --- a/programs/cmm/misc/software_widget.c +++ b/programs/cmm/misc/software_widget.c @@ -130,8 +130,8 @@ void SetAppColors() //dark colors swc.list_bg = sc.work; swc.text = sc.work_text; - swc.dark = sc.work_dark; - swc.light = sc.work_light; + swc.dark = sc.dark; + swc.light = sc.light; } else { //light colors swc.list_bg = 0xF3F3F3; @@ -225,8 +225,8 @@ byte process_sections(dword sec_name, f_name) void DrawTopBar() { DrawBar(0,0,Form.cwidth, list.y-2, sc.work); - DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(sc.work, sc.work_graph, 180)); - DrawBar(0,list.y-1, Form.cwidth, 1, sc.work_graph); + DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(sc.work, sc.line, 180)); + DrawBar(0,list.y-1, Form.cwidth, 1, sc.line); kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, sc.work, sc.work_text, 16, #window_title); } diff --git a/programs/cmm/notes/engine.h b/programs/cmm/notes/engine.h index 8f64829576..9a5e61b5a8 100644 --- a/programs/cmm/notes/engine.h +++ b/programs/cmm/notes/engine.h @@ -134,7 +134,7 @@ dword NOTES::DrawLine(int line_n, draw_h) { { drawy = item_h*line_n+5+y; DefineButton(RED_LINE_X-CHBOX/2+x, drawy, CHBOX-1,CHBOX-1, CHECKBOX_ID+line_n+BT_HIDE, 0); //checkbox - _PutImage(RED_LINE_X-CHBOX/2+x,drawy, CHBOX,CHBOX, lines[line_n].state*CHBOX*CHBOX*3+#checkbox); + PutImage(RED_LINE_X-CHBOX/2+x,drawy, CHBOX,CHBOX, lines[line_n].state*CHBOX*CHBOX*3+#checkbox); if (cur_text) WriteText(x+RED_LINE_X+6, drawy+2, 0x80, lines[line_n].state*0x777777, cur_text); if (lines[line_n].state == true) DrawBar(x+RED_LINE_X+6, drawy+6, strlen(cur_text)*6, 1, 0x444444); //strike DrawBar(WIN_W,drawy,1,item_h,0xBBBBBB); //fast fix; proper fix is to restrict WriteText() char length diff --git a/programs/cmm/notes/notes.c b/programs/cmm/notes/notes.c index 4999c3c276..adc1478653 100644 --- a/programs/cmm/notes/notes.c +++ b/programs/cmm/notes/notes.c @@ -174,7 +174,7 @@ void draw_window() DrawBar(2,2,WIN_W-3,TITLE_H-4,0xE08C5E); WriteText(9,TITLE_H/2-6,0x90,0xA9613A,WINDOW_CAPTION); WriteTextB(7,TITLE_H/2-7,0x90,0xFFFfff,WINDOW_CAPTION); - _PutImage(1, TITLE_H, 292,EDGE_H, #edge); + PutImage(1, TITLE_H, 292,EDGE_H, #edge); PutPixel(notes.x, notes.y-1, COL_RED_LINE); ECX-=1; $int 0x40; DrawCloseButton(WIN_W-23,4,16,16); diff --git a/programs/cmm/pixie2/compile_en.bat b/programs/cmm/pixie2/compile_en.bat index a886c74649..8e981fc502 100644 --- a/programs/cmm/pixie2/compile_en.bat +++ b/programs/cmm/pixie2/compile_en.bat @@ -2,4 +2,5 @@ @del pixie @rename pixie.com pixie @del warning.txt +if not exists pixie ( @pause ) @pause \ No newline at end of file diff --git a/programs/cmm/quark/quark.c b/programs/cmm/quark/quark.c index 804713a9be..8975eb7730 100644 --- a/programs/cmm/quark/quark.c +++ b/programs/cmm/quark/quark.c @@ -627,7 +627,7 @@ void DrawToolbar() if (menu_id == REOPEN_IN_APP) reopa = true; DrawBar(0, 0, Form.cwidth, TOOLBAR_H - 1, sc.work); - DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, sc.work_graph); + DrawBar(0, TOOLBAR_H - 1, Form.cwidth, 1, sc.line); x.set(-GAP_S+8); TopBarBt(#EventOpenDialog, ECTRL+SCAN_CODE_KEY_O, 0, x.inc(GAP_S), false); @@ -644,7 +644,7 @@ void DrawStatusBar(dword _in_text) static char status_text[64]; if (Form.status_window&ROLLED_UP) return; if (_in_text) strncpy(#status_text, _in_text, sizeof(status_text)); - DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.work_graph); + DrawBar(0,Form.cheight - STATUSBAR_H, Form.cwidth,1, sc.line); DrawBar(0,Form.cheight - STATUSBAR_H+1, Form.cwidth,STATUSBAR_H-1, sc.work); WriteText(5, Form.cheight - STATUSBAR_H + 4, 0x80, sc.work_text, #status_text); if (file_path[0]) { @@ -687,20 +687,20 @@ bool DrawSearch() char matches[30]; int _y = Form.cheight - SEARCH_H - STATUSBAR_H; if (!search.visible) return false; - DrawBar(0, _y, Form.cwidth, 1, sc.work_graph); + DrawBar(0, _y, Form.cwidth, 1, sc.line); DrawBar(0, _y+1, Form.cwidth, SEARCH_H-1, sc.work); search_box.top = _y + 6; search_box.width = math.min(Form.width - 200, 150); - DrawRectangle(search_box.left-1, search_box.top-1, search_box.width+2, 23,sc.work_graph); + DrawRectangle(search_box.left-1, search_box.top-1, search_box.width+2, 23,sc.line); edit_box_draw stdcall(#search_box); DrawCaptButton(search_box.left+search_box.width+14, search_box.top-1, 30, - TOOLBAR_ICON_HEIGHT+1, BTN_FIND_PREVIOUS+10, sc.work_light, sc.work_text, "<"); + TOOLBAR_ICON_HEIGHT+1, BTN_FIND_PREVIOUS+10, sc.light, sc.work_text, "<"); DrawCaptButton(search_box.left+search_box.width+44, search_box.top-1, 30, - TOOLBAR_ICON_HEIGHT+1, BTN_FIND_NEXT+10, sc.work_light, sc.work_text, ">"); + TOOLBAR_ICON_HEIGHT+1, BTN_FIND_NEXT+10, sc.light, sc.work_text, ">"); sprintf(#matches, T_MATCHES, search.found.count); WriteTextWithBg(search_box.left+search_box.width+14+85, @@ -708,7 +708,7 @@ bool DrawSearch() DefineHiddenButton(Form.cwidth-26, search_box.top-1, TOOLBAR_ICON_HEIGHT+1, TOOLBAR_ICON_HEIGHT+1, BTN_FIND_CLOSE+10); - WriteText(Form.cwidth-26+7, search_box.top+2, 0x81, sc.work_graph, "x"); + WriteText(Form.cwidth-26+7, search_box.top+2, 0x81, sc.line, "x"); return true; } diff --git a/programs/cmm/search/search.c b/programs/cmm/search/search.c index 3f4264c274..afdc55265b 100644 --- a/programs/cmm/search/search.c +++ b/programs/cmm/search/search.c @@ -169,7 +169,7 @@ void draw_window() Form.cwidth-scroll1.size_x-1, Form.cheight-TOOLBAR_H-1); SelectList_Draw(); - DrawBar(0, TOOLBAR_H-1, Form.cwidth, 1, sc.work_graph); + DrawBar(0, TOOLBAR_H-1, Form.cwidth, 1, sc.line); DrawBar(0, 0, Form.cwidth, TOOLBAR_H-1, sc.work); DrawEditBox(#edit_name); WriteText(edit_name.left-2, edit_name.top-20, 0x90, sc.work_text, T_SEARCH_NAME); diff --git a/programs/cmm/sysmon/sysmon.c b/programs/cmm/sysmon/sysmon.c index 60e694159c..d90ceabbc1 100644 --- a/programs/cmm/sysmon/sysmon.c +++ b/programs/cmm/sysmon/sysmon.c @@ -171,8 +171,8 @@ void main() WriteText(GAP+5, WIN_CONTENT_Y-20, 0x90, sc.work_text, T_PROC_HEADER); DefineButton(RIGHT_X-38,WIN_CONTENT_Y-25,18,18,BTN_SHOWHIDE_SENSORS,sc.button); - DrawRectangle3D(RIGHT_X-38,WIN_CONTENT_Y-25,19,18,sc.work_graph,sc.work_light); - PutPixel(RIGHT_X-38+19,WIN_CONTENT_Y-25,sc.work_light); + DrawRectangle3D(RIGHT_X-38,WIN_CONTENT_Y-25,19,18,sc.line,sc.light); + PutPixel(RIGHT_X-38+19,WIN_CONTENT_Y-25,sc.light); EDX = "<\0>"; EDX += show_sensors * 2; WriteText(RIGHT_X-38+5,WIN_CONTENT_Y-25+2,0x90,sc.button_text, EDX); diff --git a/programs/cmm/tmpdisk/t_gui.c b/programs/cmm/tmpdisk/t_gui.c index 6dd0217596..342142908a 100644 --- a/programs/cmm/tmpdisk/t_gui.c +++ b/programs/cmm/tmpdisk/t_gui.c @@ -148,14 +148,14 @@ void Main_Window() if (Form.status_window&ROLLED_UP) break; DrawBar(0,0, Form.cwidth,TOPPANELH, sc.work); - DrawBar(0,TOPPANELH, Form.cwidth,1, sc.work_graph); + DrawBar(0,TOPPANELH, Form.cwidth,1, sc.line); WriteText(6, 9, 0x90, sc.work_text, SIZE_TEXT); - DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,sc.work_graph); + DrawRectangle(edit_disk_size.left-1, edit_disk_size.top-1, edit_disk_size.width+2, 23,sc.line); edit_box_draw stdcall (#edit_disk_size); x = 6 + DrawStandartCaptButton(6, 36, 10, T_ADD_DISK); DrawStandartCaptButton(x, 36, 11, T_DELETE_DISK); - _PutImage(6+6, 42, 14,14, #icons_btn); - _PutImage(x+6, 42, 14,14, 14*14*3+#icons_btn); + PutImage(6+6, 42, 14,14, #icons_btn); + PutImage(x+6, 42, 14,14, 14*14*3+#icons_btn); GetDisks(); DrawTmpDisks(); } @@ -231,7 +231,7 @@ void DrawTmpDisks() byte i; DrawBar(0,TOPPANELH+1, Form.cwidth,Form.cheight-TOPPANELH-BOTPANELH-2, 0xFFFFFF); - DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.work_graph); + DrawBar(0,Form.cheight-BOTPANELH-1, Form.cwidth,1, sc.line); DrawBar(0,Form.cheight-BOTPANELH, Form.cwidth,BOTPANELH, sc.work); sprintf(#free_ram_text, FREE_RAM_TEXT, GetFreeRAM()/1024); WriteText(10, Form.cheight-20, 0x90, sc.work_text, #free_ram_text); @@ -251,7 +251,7 @@ void DrawTmpDisks() WriteText(disk_pos_x[i]+29,disk_pos_y[i]+6, 0x90, 0x222222, #disk_list[i].Item); WriteText(disk_pos_x[i]+30,disk_pos_y[i]+24, 0x80, 0x555555, ConvertSize(GetDiskSize(disk_list[i].Item[3] - '0'))); - _PutImage(disk_pos_x[i]+9,disk_pos_y[i]+10, 15,9, #disk_icon); + PutImage(disk_pos_x[i]+9,disk_pos_y[i]+10, 15,9, #disk_icon); if (selected==i) { if ( edit_disk_size.flags & ed_focus) selection_color = SELECTION_INACTIVE;