diff --git a/data/common/icons32.png b/data/common/icons32.png index 28b660b22e..d7d7d6d93e 100644 Binary files a/data/common/icons32.png and b/data/common/icons32.png differ diff --git a/data/common/settings/app_plus.ini b/data/common/settings/app_plus.ini index 218cf240d5..2cec4f9063 100644 --- a/data/common/settings/app_plus.ini +++ b/data/common/settings/app_plus.ini @@ -11,7 +11,7 @@ GrafX2=/k/grafx2/grafx2,48 uPDF=/k/media/updf,73 IconEdit=media/iconedit,98 EasyShot=easyshot,62 -Beat=/k/media/beat/Beat,64 +Beat=/k/media/beat/Beat,123 [3D Tools and Demos] Info3DsPro=/k/3d/info3ds/info3ds,75 diff --git a/programs/cmm/appearance/appearance.c b/programs/cmm/appearance/appearance.c index 0854ba12fb..13b6d0fe2e 100644 --- a/programs/cmm/appearance/appearance.c +++ b/programs/cmm/appearance/appearance.c @@ -204,9 +204,6 @@ void DrawWindowContent() DrawIcon16(tabs.x + TAB_PADDING, 15, sc.work, 17); DrawIcon16(strlen(T_SKINS)*8 + tabs.x + TAB_PADDING + TAB_PADDING, 15, sc.work, 6); - if (select_list.cur_y>select_list.visible) select_list.first=select_list.cur_y; - select_list.CheckDoesValuesOkey(); - id = select_list.cur_y; SelectList_Init( tabs.x+TAB_PADDING, @@ -297,6 +294,17 @@ void SelectList_LineChanged() EventApply(); } +void ActivateTab(int _id) +{ + select_list.ClearList(); + Open_Dir(); + if (!select_list.count) notify("'No files were found' -E"); + select_list.cur_y = _id; + if (select_list.cur_y>select_list.visible) select_list.first=select_list.cur_y; + select_list.CheckDoesValuesOkey(); + if (select_list.w) draw_window(); +} + //===================================================// // // // EVENTS // @@ -307,24 +315,14 @@ void EventTabSkinsClick() { active_wallpaper = select_list.cur_y; strcpy(#folder_path, #skins_folder_path); - select_list.ClearList(); - Open_Dir(); - if (!select_list.count) notify("'No skins were found' -E"); - select_list.cur_y = active_skin; - - if (select_list.w) draw_window(); + ActivateTab(active_skin); } void EventTabWallpappersClick() { active_skin = select_list.cur_y; strcpy(#folder_path, #wallp_folder_path); - select_list.ClearList(); - Open_Dir(); - if (!select_list.count) notify("'No wallpapers were found' -E"); - select_list.cur_y = active_wallpaper; - - if (select_list.w) draw_window(); + ActivateTab(active_wallpaper); } void EventDeleteFile() diff --git a/programs/cmm/quark/data.h b/programs/cmm/quark/data.h index 2a1206ecc3..3cc6d1af41 100644 --- a/programs/cmm/quark/data.h +++ b/programs/cmm/quark/data.h @@ -13,7 +13,7 @@ char intro[] = " char copied_chars[] = "Скопировано сиволов: %i"; -char about[] = "Quark Text v0.72 +char about[] = "Quark Text v0.8 Автор: Кирилл Липатов aka Leency Сайт: http://aspero.pro @@ -52,7 +52,7 @@ Try to open some text file."; char copied_chars[] = "Copied %i chars"; -char about[] = "Quark Text v0.72 +char about[] = "Quark Text v0.8 Author: Kiril Lipatov aka Leency Website: http://aspero.pro @@ -94,13 +94,13 @@ Copy file path"; dword color_schemes[] = { //bg, text, scroll, selected, cursor -0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, //Dairy -0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff //Cosmos +0xFCF0DA, 0x171501, 0xB2ACA0, 0xD8CAA7, 0xFF0000, 0xFEC53A, //Dairy +0x282923, 0xD8D8D2, 0x555551, 0x5A574A, 0xFFFfff, 0x9D7E00 //Cosmos }; struct THEME { - dword bg, text, cursor; + dword bg, text, cursor, found; } theme; char default_dir[] = "/rd/1"; diff --git a/programs/cmm/quark/prepare_page.h b/programs/cmm/quark/prepare_page.h index edea4931af..5d73cade65 100644 --- a/programs/cmm/quark/prepare_page.h +++ b/programs/cmm/quark/prepare_page.h @@ -1,7 +1,6 @@ void ParseAndPaint() { - //search.clear(); list.count=0; selection.cancel(); @@ -46,7 +45,8 @@ dword buflen = strlen(io.buffer_data) + io.buffer_data; void PaintVisible() { - int i; + int i, ff; + signed s1, s2; dword ydraw, absolute_y; dword line_bg; bool swapped_selection = false; @@ -68,6 +68,18 @@ void PaintVisible() selection.draw(absolute_y); + if (search.visible) for (ff=0; ff 0) break; + + if (s1 > 0) && (s2 < 0) { + DrawBuf.DrawBar(search.found.get(ff) - lines.get(absolute_y) * list.font_w + 3, + ydraw, strlen(#found_text) * list.font_w, list.item_h, theme.found); + } + } + if (absolute_y 0 - dd btn - dw q1,q2,q3,q4 - end if - \\} - \} - common - dd 0 -} - -macro SKIN_BITMAPS [a] -{ - common - local bmp - __bitmaps__: - forward - match qq == ww,a - \{ - bmp=-1 - match qqq =active,qq \\{ bmp = 1 \\} - match qqq =inactive,qq \\{ bmp = 0 \\} - match =left qqq,qq - \\{ - if bmp >= 0 - dw 1,bmp - dd ww - end if - \\} - match =oper qqq,qq - \\{ - if bmp >= 0 - dw 2,bmp - dd ww - end if - \\} - match =base qqq,qq - \\{ - if bmp >= 0 - dw 3,bmp - dd ww - end if - \\} - \} - common - dd 0 -}