2015-02-17 19:46:38 +03:00
|
|
|
|
|
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
?define TITLE_SETT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD>"
|
2015-03-18 14:59:32 +03:00
|
|
|
|
?define SHOW_DEVICE_CLASS "<EFBFBD>뢮<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ன<EFBFBD><E0AEA9><EFBFBD>"
|
2016-08-28 02:44:17 +03:00
|
|
|
|
?define SHOW_STATUS_BAR "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define NOTIFY_COPY_END "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD><E8A5AD> <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD>"
|
|
|
|
|
?define SHOW_BREADCRUMBS "<EFBFBD>ᯮ<EFBFBD>짮<EFBFBD><EFBFBD><EFBFBD><EFBFBD> '嫥<><E5ABA5><EFBFBD><EFBFBD> <20><><EFBFBD>誨'"
|
2018-04-18 17:07:12 +03:00
|
|
|
|
?define BIG_ICONS "<EFBFBD>ᯮ<EFBFBD>짮<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>訥 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2015-08-13 18:28:53 +03:00
|
|
|
|
?define USE_TWO_PANELS "<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2018-10-01 19:41:14 +03:00
|
|
|
|
?define COLORED_LINES "<EFBFBD><EFBFBD><EFBFBD>ᢥ稢<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> ᯨ᪥"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define FONT_SIZE_LABEL "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2015-03-18 14:59:32 +03:00
|
|
|
|
?define LIST_LINE_HEIGHT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ப<EFBFBD> <20> ᯨ᪥"
|
2016-04-19 21:42:13 +03:00
|
|
|
|
?define SAVE_PATH_AS_DEFAULT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>騩 <20><><EFBFBD><EFBFBD>"
|
|
|
|
|
?define SAVE_START_PATH_AS_DEFAULT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define EDIT_FILE_ASSOCIATIONS "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>樠樨 䠩<><E4A0A9><EFBFBD>"
|
2018-04-16 01:44:36 +03:00
|
|
|
|
?define START_PATH " <20><><EFBFBD><EFBFBD>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD>: "
|
2015-02-17 19:46:38 +03:00
|
|
|
|
#else
|
2015-02-19 10:42:42 +03:00
|
|
|
|
?define TITLE_SETT "Settings"
|
2015-03-18 14:59:32 +03:00
|
|
|
|
?define SHOW_DEVICE_CLASS "Show device class name"
|
2016-08-28 02:44:17 +03:00
|
|
|
|
?define SHOW_STATUS_BAR "Show status bar"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define NOTIFY_COPY_END "Notify when copying finished"
|
|
|
|
|
?define SHOW_BREADCRUMBS "Show breadcrumbs"
|
2018-04-18 17:07:12 +03:00
|
|
|
|
?define BIG_ICONS "Big icons in list"
|
2015-08-13 18:28:53 +03:00
|
|
|
|
?define USE_TWO_PANELS "Two panels"
|
2018-10-01 19:41:14 +03:00
|
|
|
|
?define COLORED_LINES "Highlight even lines in list"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define FONT_SIZE_LABEL "Font size"
|
2015-03-18 14:59:32 +03:00
|
|
|
|
?define LIST_LINE_HEIGHT "List line height"
|
2018-04-20 12:43:15 +03:00
|
|
|
|
?define SAVE_PATH_AS_DEFAULT "Current path"
|
2016-04-19 21:42:13 +03:00
|
|
|
|
?define SAVE_START_PATH_AS_DEFAULT "Typed path"
|
2016-02-25 01:30:04 +03:00
|
|
|
|
?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
|
2018-04-16 01:44:36 +03:00
|
|
|
|
?define START_PATH " Start path: "
|
2015-02-17 19:46:38 +03:00
|
|
|
|
#endif
|
|
|
|
|
|
2018-04-21 15:28:00 +03:00
|
|
|
|
char path_start[4096];
|
2018-04-16 01:44:36 +03:00
|
|
|
|
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,
|
2018-04-21 15:28:00 +03:00
|
|
|
|
#path_start,0, 100000000000010b,0,0};
|
2016-04-19 21:42:13 +03:00
|
|
|
|
|
2018-04-19 23:12:07 +03:00
|
|
|
|
more_less_box font_size = { NULL, 9, 22, FONT_SIZE_LABEL };
|
2018-04-19 17:16:32 +03:00
|
|
|
|
more_less_box line_height = { NULL, 16, 64, LIST_LINE_HEIGHT };
|
2018-04-19 23:12:07 +03:00
|
|
|
|
checkbox show_dev_name = { SHOW_DEVICE_CLASS };
|
|
|
|
|
checkbox show_status_bar = { SHOW_STATUS_BAR };
|
|
|
|
|
checkbox info_after_copy = { NOTIFY_COPY_END };
|
|
|
|
|
checkbox show_breadcrumb = { SHOW_BREADCRUMBS };
|
|
|
|
|
checkbox big_icons = { BIG_ICONS };
|
|
|
|
|
checkbox two_panels = { USE_TWO_PANELS };
|
2018-10-01 19:41:14 +03:00
|
|
|
|
checkbox colored_lines = { COLORED_LINES };
|
2018-04-19 17:16:32 +03:00
|
|
|
|
|
|
|
|
|
|
2015-02-17 19:46:38 +03:00
|
|
|
|
void settings_dialog()
|
|
|
|
|
{
|
2018-04-22 16:33:01 +03:00
|
|
|
|
proc_info Settings;
|
2018-04-19 23:12:07 +03:00
|
|
|
|
int id;
|
2015-08-22 16:27:12 +03:00
|
|
|
|
active_settings=1;
|
2018-04-19 17:16:32 +03:00
|
|
|
|
font_size.value = kfont.size.pt;
|
2018-04-21 15:28:00 +03:00
|
|
|
|
line_height.value = files.item_h;
|
2016-04-19 21:42:13 +03:00
|
|
|
|
SetEventMask(0x27);
|
2015-07-16 04:44:30 +03:00
|
|
|
|
loop(){
|
2015-07-21 04:10:37 +03:00
|
|
|
|
switch(WaitEvent())
|
|
|
|
|
{
|
2016-04-19 21:42:13 +03:00
|
|
|
|
case evMouse:
|
|
|
|
|
edit_box_mouse stdcall (#path_start_ed);
|
|
|
|
|
break;
|
|
|
|
|
|
2015-07-21 04:10:37 +03:00
|
|
|
|
case evButton:
|
2015-02-17 19:46:38 +03:00
|
|
|
|
id=GetButtonID();
|
2018-04-19 23:12:07 +03:00
|
|
|
|
if (1==id) { ExitSettings(); break; }
|
2015-07-21 04:10:37 +03:00
|
|
|
|
else if (id==5)
|
2015-02-20 18:25:51 +03:00
|
|
|
|
{
|
2018-09-11 14:18:44 +03:00
|
|
|
|
RunProgram("/sys/tinypad", "/sys/settings/assoc.ini");
|
2015-02-24 20:47:47 +03:00
|
|
|
|
break;
|
2015-02-20 18:25:51 +03:00
|
|
|
|
}
|
2015-09-29 23:05:29 +03:00
|
|
|
|
else if (id==6)
|
|
|
|
|
{
|
2016-04-19 21:42:13 +03:00
|
|
|
|
strcpy(#path_start,#path);
|
2018-04-20 12:43:15 +03:00
|
|
|
|
path_start_ed.size = path_start_ed.pos = strlen(#path_start);
|
2018-03-22 02:26:31 +03:00
|
|
|
|
ini.SetString("DefaultPath", #path, strlen(#path));
|
2016-04-19 21:42:13 +03:00
|
|
|
|
edit_box_draw stdcall (#path_start_ed);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else if (id==7)
|
|
|
|
|
{
|
2018-10-14 13:47:23 +03:00
|
|
|
|
SetDefaultPath(#path_start);
|
2015-09-29 23:05:29 +03:00
|
|
|
|
break;
|
|
|
|
|
}
|
2018-04-19 23:12:07 +03:00
|
|
|
|
show_dev_name.click(id);
|
|
|
|
|
info_after_copy.click(id);
|
|
|
|
|
two_panels.click(id);
|
|
|
|
|
show_breadcrumb.click(id);
|
|
|
|
|
show_status_bar.click(id);
|
2018-10-01 19:41:14 +03:00
|
|
|
|
colored_lines.click(id);
|
2018-04-19 23:12:07 +03:00
|
|
|
|
if (font_size.click(id)) {
|
2018-04-19 17:16:32 +03:00
|
|
|
|
kfont.size.pt = font_size.value;
|
|
|
|
|
kfont.changeSIZE();
|
|
|
|
|
BigFontsChange();
|
|
|
|
|
}
|
2018-09-17 01:30:13 +03:00
|
|
|
|
if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value;
|
2018-04-19 23:12:07 +03:00
|
|
|
|
if (big_icons.click(id)) BigIconsSwitch();
|
2015-07-23 14:54:26 +03:00
|
|
|
|
EventRedrawWindow(Form.left,Form.top);
|
2018-05-02 19:32:29 +03:00
|
|
|
|
//RefreshWindow(Form.slot, Settings.slot);
|
2016-04-19 21:42:13 +03:00
|
|
|
|
break;
|
2015-07-21 04:10:37 +03:00
|
|
|
|
|
|
|
|
|
case evKey:
|
2015-08-10 13:55:14 +03:00
|
|
|
|
GetKeys();
|
2015-08-18 18:02:42 +03:00
|
|
|
|
if (key_scancode==SCAN_CODE_ESC) ExitSettings();
|
2016-04-19 21:42:13 +03:00
|
|
|
|
EAX= key_ascii << 8;
|
|
|
|
|
edit_box_key stdcall (#path_start_ed);
|
2015-02-17 19:46:38 +03:00
|
|
|
|
break;
|
2015-07-21 04:10:37 +03:00
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2018-04-18 17:07:12 +03:00
|
|
|
|
DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400,
|
2018-10-01 19:41:14 +03:00
|
|
|
|
435+skin_height,0x34,system.color.work,TITLE_SETT,0);
|
2018-04-22 16:33:01 +03:00
|
|
|
|
GetProcessInfo(#Settings, SelfInfo);
|
2015-02-24 20:47:47 +03:00
|
|
|
|
DrawSettingsCheckBoxes();
|
2015-07-21 04:10:37 +03:00
|
|
|
|
}
|
2015-02-17 19:46:38 +03:00
|
|
|
|
}
|
2015-02-19 10:42:42 +03:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-18 18:02:42 +03:00
|
|
|
|
void ExitSettings()
|
|
|
|
|
{
|
2015-08-22 16:27:12 +03:00
|
|
|
|
active_settings = 0;
|
2015-08-18 18:02:42 +03:00
|
|
|
|
settings_window = 0;
|
|
|
|
|
cmd_free = 4;
|
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-24 20:47:47 +03:00
|
|
|
|
void DrawSettingsCheckBoxes()
|
|
|
|
|
{
|
2016-02-24 19:49:57 +03:00
|
|
|
|
incn y;
|
2018-04-16 01:44:36 +03:00
|
|
|
|
int x=11, frx=26, but_x;
|
2016-02-24 19:49:57 +03:00
|
|
|
|
y.n = 0;
|
2018-04-19 23:12:07 +03:00
|
|
|
|
show_dev_name.draw(x, y.inc(14));
|
|
|
|
|
show_status_bar.draw(x, y.inc(25));
|
|
|
|
|
info_after_copy.draw(x, y.inc(25));
|
|
|
|
|
show_breadcrumb.draw(x, y.inc(25));
|
|
|
|
|
big_icons.draw(x, y.inc(25));
|
|
|
|
|
two_panels.draw(x, y.inc(25));
|
2018-10-01 19:41:14 +03:00
|
|
|
|
colored_lines.draw(x, y.inc(25));
|
2018-04-19 17:16:32 +03:00
|
|
|
|
font_size.draw(x, y.inc(31));
|
|
|
|
|
line_height.draw(x, y.inc(31));
|
2018-04-16 01:44:36 +03:00
|
|
|
|
|
|
|
|
|
DrawFrame(x, y.inc(37), 340, 95, START_PATH);
|
|
|
|
|
// START_PATH {
|
2018-04-20 12:43:15 +03:00
|
|
|
|
DrawEditBoxPos(frx, y.inc(21), #path_start_ed);
|
2018-04-16 01:44:36 +03:00
|
|
|
|
but_x = DrawStandartCaptButton(frx, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
|
|
|
|
|
DrawStandartCaptButton(frx+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
|
|
|
|
|
// } START_PATH
|
|
|
|
|
|
|
|
|
|
DrawStandartCaptButton(x, y.inc(52), 5, EDIT_FILE_ASSOCIATIONS);
|
2015-02-24 20:47:47 +03:00
|
|
|
|
}
|
|
|
|
|
|
2015-02-19 10:42:42 +03:00
|
|
|
|
|
2015-02-21 15:24:30 +03:00
|
|
|
|
void LoadIniSettings()
|
2015-02-19 10:42:42 +03:00
|
|
|
|
{
|
2018-10-03 02:32:56 +03:00
|
|
|
|
ini.path = GetIni(#eolite_ini_path, "app.ini");
|
|
|
|
|
ini.section = "Eolite";
|
2018-03-22 02:26:31 +03:00
|
|
|
|
|
2015-08-23 16:06:45 +03:00
|
|
|
|
files.SetFont(6, 9, 10000000b);
|
2018-04-19 23:12:07 +03:00
|
|
|
|
show_dev_name.checked = ini.GetInt("ShowDeviceName", true);
|
|
|
|
|
show_status_bar.checked = ini.GetInt("ShowStatusBar", true);
|
|
|
|
|
info_after_copy.checked = ini.GetInt("InfoAfterCopy", false);
|
2018-09-17 01:30:13 +03:00
|
|
|
|
big_icons.checked = ini.GetInt("BigIcons", false); BigIconsSwitch();
|
2018-04-19 23:12:07 +03:00
|
|
|
|
two_panels.checked = ini.GetInt("TwoPanels", false);
|
2018-10-01 19:41:14 +03:00
|
|
|
|
colored_lines.checked = ini.GetInt("ColoredLines", false);
|
2018-03-22 02:26:31 +03:00
|
|
|
|
kfont.size.pt = ini.GetInt("FontSize", 13);
|
|
|
|
|
files.item_h = ini.GetInt("LineHeight", 19);
|
2018-05-13 19:06:20 +03:00
|
|
|
|
Form.left = ini.GetInt("WinX", 200);
|
|
|
|
|
Form.top = ini.GetInt("WinY", 50);
|
|
|
|
|
Form.width = ini.GetInt("WinW", 550);
|
|
|
|
|
Form.height = ini.GetInt("WinH", 506);
|
2018-03-22 02:26:31 +03:00
|
|
|
|
ini.GetString("DefaultPath", #path, 4096, "/rd/1");
|
|
|
|
|
ini.GetString("DefaultPath", #path_start, 4096, "/rd/1");
|
2018-04-21 15:28:00 +03:00
|
|
|
|
path_start_ed.size = path_start_ed.pos = strlen(#path_start);
|
2016-01-07 16:10:39 +03:00
|
|
|
|
|
2015-12-19 00:10:45 +03:00
|
|
|
|
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
|
2016-12-21 22:50:13 +03:00
|
|
|
|
kfont.init(#temp);
|
2015-12-16 19:13:34 +03:00
|
|
|
|
ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
|
2016-12-21 22:50:13 +03:00
|
|
|
|
if(!strcmp(#temp,"off")) kfont.smooth = false; else kfont.smooth = true;
|
2015-02-19 10:42:42 +03:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-06 19:13:03 +03:00
|
|
|
|
|
2015-02-21 15:24:30 +03:00
|
|
|
|
void SaveIniSettings()
|
|
|
|
|
{
|
2018-04-19 23:12:07 +03:00
|
|
|
|
ini.SetInt("ShowDeviceName", show_dev_name.checked);
|
|
|
|
|
ini.SetInt("ShowStatusBar", show_status_bar.checked);
|
|
|
|
|
ini.SetInt("InfoAfterCopy", info_after_copy.checked);
|
2018-09-17 01:30:13 +03:00
|
|
|
|
ini.SetInt("BigIcons", big_icons.checked);
|
2018-04-19 23:12:07 +03:00
|
|
|
|
ini.SetInt("TwoPanels", two_panels.checked);
|
2018-10-01 19:41:14 +03:00
|
|
|
|
ini.SetInt("ColoredLines", colored_lines.checked);
|
|
|
|
|
ini.SetInt("FontSize", kfont.size.pt);
|
2018-03-22 02:26:31 +03:00
|
|
|
|
ini.SetInt("LineHeight", files.item_h);
|
|
|
|
|
ini.SetInt("WinX", Form.left);
|
|
|
|
|
ini.SetInt("WinY", Form.top);
|
|
|
|
|
ini.SetInt("WinW", Form.width);
|
|
|
|
|
ini.SetInt("WinH", Form.height);
|
2015-02-21 15:24:30 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-02-19 10:42:42 +03:00
|
|
|
|
|
|
|
|
|
void Write_Error(int error_number)
|
|
|
|
|
{
|
|
|
|
|
char error_message[500];
|
2015-07-16 04:44:30 +03:00
|
|
|
|
sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE");
|
2015-07-29 15:14:49 +03:00
|
|
|
|
notify(#error_message);
|
2015-02-19 10:42:42 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SetAppColors()
|
|
|
|
|
{
|
2018-10-14 13:47:23 +03:00
|
|
|
|
int i;
|
2019-04-17 15:11:31 +03:00
|
|
|
|
dword bg_col;
|
2016-02-11 04:07:04 +03:00
|
|
|
|
system.color.get();
|
2019-04-17 15:11:31 +03:00
|
|
|
|
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.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);
|
2015-02-24 20:47:47 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-08-06 19:13:03 +03:00
|
|
|
|
void BigFontsChange()
|
|
|
|
|
{
|
2016-12-21 22:50:13 +03:00
|
|
|
|
files.item_h = kfont.size.pt + 4;
|
2018-09-17 01:30:13 +03:00
|
|
|
|
if (files.item_h<icon_size+3) {
|
|
|
|
|
files.item_h = icon_size+3;
|
|
|
|
|
line_height.value = files.item_h;
|
|
|
|
|
line_height.redraw();
|
|
|
|
|
}
|
2015-09-09 17:24:42 +03:00
|
|
|
|
files_active.item_h = files_inactive.item_h = files.item_h;
|
2015-08-06 19:13:03 +03:00
|
|
|
|
}
|
2018-04-19 23:12:07 +03:00
|
|
|
|
|
|
|
|
|
void BigIconsSwitch()
|
|
|
|
|
{
|
|
|
|
|
if (big_icons.checked)
|
|
|
|
|
{
|
|
|
|
|
icon_size=32;
|
|
|
|
|
if (!icons32_default.image)
|
|
|
|
|
{
|
|
|
|
|
Libimg_LoadImage(#icons32_default, "/sys/icons32.png");
|
|
|
|
|
Libimg_LoadImage(#icons32_selected, "/sys/icons32.png");
|
|
|
|
|
Libimg_ReplaceColor(icons32_default.image, icons32_selected.w,
|
2019-04-17 15:11:31 +03:00
|
|
|
|
icons32_selected.h, 0x00000000, col.list_bg);
|
2018-04-19 23:12:07 +03:00
|
|
|
|
Libimg_ReplaceColor(icons32_selected.image, icons32_selected.w,
|
2019-04-17 15:11:31 +03:00
|
|
|
|
icons32_selected.h, 0x00000000, col.selec);
|
2018-04-19 23:12:07 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
icon_size=16;
|
2018-09-17 01:30:13 +03:00
|
|
|
|
}
|
|
|
|
|
BigFontsChange();
|
2018-04-19 23:12:07 +03:00
|
|
|
|
}
|
2018-10-14 13:47:23 +03:00
|
|
|
|
|
|
|
|
|
void SetDefaultPath(dword p)
|
|
|
|
|
{
|
|
|
|
|
ini.SetString("DefaultPath", p, strlen(p));
|
|
|
|
|
notify("'Default path has been set' -O");
|
|
|
|
|
}
|