Subversion Repositories Kolibri OS

Rev

Rev 7992 | Rev 8762 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7992 Rev 8240
1
#ifdef LANG_RUS
1
#ifdef LANG_RUS
2
	?define TITLE_SETT " áâனª¨"
2
	?define TITLE_SETT " áâனª¨"
3
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
3
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
4
	?define SHOW_STATUS_BAR "®ª §ë¢ âì áâ âãá ¡ à"
4
	?define SHOW_STATUS_BAR "®ª §ë¢ âì áâ âãá ¡ à"
5
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
5
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
6
	?define SHOW_BREADCRUMBS "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
6
	?define SHOW_BREADCRUMBS "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
7
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
7
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
8
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
8
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
9
	?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
9
	?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
10
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
10
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
11
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
11
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
12
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
12
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
13
	?define SAVE_START_PATH_AS_DEFAULT "‚¢¥¤¥­­ë© ¯ãâì"
13
	?define SAVE_START_PATH_AS_DEFAULT "‚¢¥¤¥­­ë© ¯ãâì"
14
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
14
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
15
	?define START_PATH " ‘â àâ®¢ë© ¯ãâì: "
15
	?define START_PATH " ‘â àâ®¢ë© ¯ãâì: "
16
#else
16
#else
17
	?define TITLE_SETT "Settings"
17
	?define TITLE_SETT "Settings"
18
	?define SHOW_DEVICE_CLASS "Show device class name"
18
	?define SHOW_DEVICE_CLASS "Show device class name"
19
	?define SHOW_STATUS_BAR "Show status bar"
19
	?define SHOW_STATUS_BAR "Show status bar"
20
	?define NOTIFY_COPY_END "Notify when copying finished"
20
	?define NOTIFY_COPY_END "Notify when copying finished"
21
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
21
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
22
	?define BIG_ICONS "Big icons in list"
22
	?define BIG_ICONS "Big icons in list"
23
	?define USE_TWO_PANELS "Two panels"
23
	?define USE_TWO_PANELS "Two panels"
24
	?define COLORED_LINES "Highlight even lines in list"
24
	?define COLORED_LINES "Highlight even lines in list"
25
	?define FONT_SIZE_LABEL "Font size"
25
	?define FONT_SIZE_LABEL "Font size"
26
	?define LIST_LINE_HEIGHT "List line height"
26
	?define LIST_LINE_HEIGHT "List line height"
27
	?define SAVE_PATH_AS_DEFAULT "Current path"
27
	?define SAVE_PATH_AS_DEFAULT "Current path"
28
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
28
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
29
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
29
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
30
	?define START_PATH " Start path: "
30
	?define START_PATH " Start path: "
31
#endif
31
#endif
32
 
32
 
33
char path_start[4096];
33
char path_start[4096];
34
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,
34
edit_box path_start_ed = {290,50,57,0xffffff,0x94AECE,0xffffff,0xffffff,0x10000000,4098,
35
	                      #path_start,0, 100000000000010b,0,0};
35
	                      #path_start,0, 100000000000010b,0,0};
36
 
36
 
37
more_less_box font_size   = { NULL, 9, 22, FONT_SIZE_LABEL };
37
more_less_box font_size   = { NULL, 9, 22, FONT_SIZE_LABEL };
38
more_less_box line_height = { NULL, 16, 64, LIST_LINE_HEIGHT };
38
more_less_box line_height = { NULL, 16, 64, LIST_LINE_HEIGHT };
39
checkbox show_dev_name    = { SHOW_DEVICE_CLASS };
39
checkbox show_dev_name    = { SHOW_DEVICE_CLASS };
40
checkbox show_status_bar  = { SHOW_STATUS_BAR };
40
checkbox show_status_bar  = { SHOW_STATUS_BAR };
41
checkbox info_after_copy  = { NOTIFY_COPY_END };
41
checkbox info_after_copy  = { NOTIFY_COPY_END };
42
checkbox show_breadcrumb  = { SHOW_BREADCRUMBS };
42
checkbox show_breadcrumb  = { SHOW_BREADCRUMBS };
43
checkbox big_icons        = { BIG_ICONS };
43
checkbox big_icons        = { BIG_ICONS };
44
checkbox two_panels       = { USE_TWO_PANELS };
44
checkbox two_panels       = { USE_TWO_PANELS };
45
checkbox colored_lines    = { COLORED_LINES };
45
checkbox colored_lines    = { COLORED_LINES };
46
 
46
 
47
 
47
 
48
void settings_dialog()
48
void settings_dialog()
49
{   
49
{   
50
	proc_info Settings;
50
	proc_info Settings;
51
	int id;
51
	int id;
52
	active_settings=1;
52
	active_settings=1;
53
	font_size.value = kfont.size.pt;
53
	font_size.value = kfont.size.pt;
54
	line_height.value = files.item_h;
54
	line_height.value = files.item_h;
55
	SetEventMask(0x27);
55
	SetEventMask(0x27);
56
	loop(){
56
	loop(){
57
		switch(WaitEvent())
57
		switch(WaitEvent())
58
		{
58
		{
59
			case evMouse:
59
			case evMouse:
60
				edit_box_mouse stdcall (#path_start_ed);
60
				edit_box_mouse stdcall (#path_start_ed);
61
				break;
61
				break;
62
				
62
				
63
			case evButton: 
63
			case evButton: 
64
				id=GetButtonID();
64
				id=GetButtonID();
65
				if (1==id) { ExitSettings(); break; }
65
				if (1==id) { ExitSettings(); break; }
66
				else if (id==5)
66
				else if (id==5)
67
				{
67
				{
68
					RunProgram("/sys/tinypad", "/sys/settings/assoc.ini");
68
					RunProgram("/sys/tinypad", "/sys/settings/assoc.ini");
69
					break;
69
					break;
70
				}
70
				}
71
				else if (id==6)
71
				else if (id==6)
72
				{
72
				{
73
					strcpy(#path_start,#path);
73
					strcpy(#path_start,#path);
74
					path_start_ed.size = path_start_ed.pos = strlen(#path_start);
74
					path_start_ed.size = path_start_ed.pos = strlen(#path_start);
75
					ini.SetString("DefaultPath", #path, strlen(#path));
75
					ini.SetString("DefaultPath", #path, strlen(#path));
76
					edit_box_draw stdcall (#path_start_ed);
76
					edit_box_draw stdcall (#path_start_ed);
77
					break;
77
					break;
78
				}
78
				}
79
				else if (id==7)
79
				else if (id==7)
80
				{
80
				{
81
					SetDefaultPath(#path_start);
81
					SetDefaultPath(#path_start);
82
					break;
82
					break;
83
				}
83
				}
84
				show_dev_name.click(id);
84
				show_dev_name.click(id);
85
				info_after_copy.click(id);
85
				info_after_copy.click(id);
86
				two_panels.click(id);
86
				two_panels.click(id);
87
				show_breadcrumb.click(id);
87
				show_breadcrumb.click(id);
88
				show_status_bar.click(id);
88
				show_status_bar.click(id);
89
				colored_lines.click(id);
89
				colored_lines.click(id);
90
				if (font_size.click(id)) { 
90
				if (font_size.click(id)) { 
91
					kfont.size.pt = font_size.value; 
91
					kfont.size.pt = font_size.value; 
92
					kfont.changeSIZE(); 
92
					kfont.changeSIZE(); 
93
					BigFontsChange(); 
93
					BigFontsChange(); 
94
				}
94
				}
95
				if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value; 
95
				if (line_height.click(id)) files.item_h = files_inactive.item_h = line_height.value; 
96
				if (big_icons.click(id)) BigIconsSwitch();
96
				if (big_icons.click(id)) BigIconsSwitch();
97
				EventRedrawWindow(Form.left,Form.top);
97
				EventRedrawWindow(Form.left,Form.top);
98
				//RefreshWindow(Form.slot, Settings.slot);
98
				//RefreshWindow(Form.slot, Settings.slot);
99
				break;
99
				break;
100
					
100
					
101
			case evKey:
101
			case evKey:
102
				GetKeys();
102
				GetKeys();
103
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
103
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
104
				EAX= key_ascii << 8;
104
				EAX= key_ascii << 8;
105
				edit_box_key stdcall (#path_start_ed);	
105
				edit_box_key stdcall (#path_start_ed);	
106
				break;
106
				break;
107
				
107
				
108
			case evReDraw:
108
			case evReDraw:
109
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
109
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
110
					435+skin_height,0x34,sc.work,TITLE_SETT,0);
110
					435+skin_height,0x34,sc.work,TITLE_SETT,0);
111
				GetProcessInfo(#Settings, SelfInfo);
111
				GetProcessInfo(#Settings, SelfInfo);
112
				DrawSettingsCheckBoxes();
112
				DrawSettingsCheckBoxes();
113
		}
113
		}
114
	}
114
	}
115
}
115
}
116
 
116
 
117
void ExitSettings()
117
void ExitSettings()
118
{
118
{
119
	active_settings = 0;
119
	active_settings = 0;
120
	settings_window = 0;
120
	settings_window = 0;
121
	cmd_free = 4;
121
	cmd_free = 4;
122
	ExitProcess();
122
	ExitProcess();
123
}
123
}
124
 
124
 
125
void DrawSettingsCheckBoxes()
125
void DrawSettingsCheckBoxes()
126
{
126
{
127
	incn y;
127
	incn y;
128
	int x=11, frx=26, but_x;
128
	int x=11, frx=26, but_x;
129
	y.n = 0;
129
	y.n = 0;
130
	show_dev_name.draw(x, y.inc(14));
130
	show_dev_name.draw(x, y.inc(14));
131
	show_status_bar.draw(x, y.inc(25));
131
	show_status_bar.draw(x, y.inc(25));
132
	info_after_copy.draw(x, y.inc(25));
132
	info_after_copy.draw(x, y.inc(25));
133
	show_breadcrumb.draw(x, y.inc(25));
133
	show_breadcrumb.draw(x, y.inc(25));
134
	big_icons.draw(x, y.inc(25));
134
	big_icons.draw(x, y.inc(25));
135
	two_panels.draw(x, y.inc(25));
135
	two_panels.draw(x, y.inc(25));
136
	colored_lines.draw(x, y.inc(25));
136
	colored_lines.draw(x, y.inc(25));
137
	font_size.draw(x, y.inc(31));
137
	font_size.draw(x, y.inc(31));
138
	line_height.draw(x, y.inc(31));
138
	line_height.draw(x, y.inc(31));
139
	
139
	
140
	DrawFrame(x, y.inc(37), 340, 95, START_PATH);
140
	DrawFrame(x, y.inc(37), 340, 95, START_PATH);
141
	// START_PATH {
141
	// START_PATH {
142
	DrawEditBoxPos(frx, y.inc(21), #path_start_ed);
142
	DrawEditBoxPos(frx, y.inc(21), #path_start_ed);
143
	but_x = DrawStandartCaptButton(frx, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
143
	but_x = DrawStandartCaptButton(frx, y.inc(34), 6, SAVE_PATH_AS_DEFAULT);
144
	DrawStandartCaptButton(frx+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
144
	DrawStandartCaptButton(frx+but_x, y.inc(0), 7, SAVE_START_PATH_AS_DEFAULT);
145
	// } START_PATH
145
	// } START_PATH
146
 
146
 
147
	DrawStandartCaptButton(x, y.inc(52), 5, EDIT_FILE_ASSOCIATIONS);
147
	DrawStandartCaptButton(x, y.inc(52), 5, EDIT_FILE_ASSOCIATIONS);
148
}
148
}
149
 
149
 
150
 
150
 
151
void LoadIniSettings()
151
void LoadIniSettings()
152
{
152
{
153
	ini.path = GetIni(#eolite_ini_path, "app.ini");
153
	ini.path = GetIni(#eolite_ini_path, "app.ini");
154
	ini.section = "Eolite";
154
	ini.section = "Eolite";
155
 
155
 
156
	files.SetFont(6, 9, 10000000b);
156
	files.SetFont(6, 9, 10000000b);
157
	show_dev_name.checked   = ini.GetInt("ShowDeviceName", true); 
157
	show_dev_name.checked   = ini.GetInt("ShowDeviceName", true); 
158
	show_status_bar.checked = ini.GetInt("ShowStatusBar", true); 
158
	show_status_bar.checked = ini.GetInt("ShowStatusBar", true); 
159
	info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); 
159
	info_after_copy.checked = ini.GetInt("InfoAfterCopy", false); 
160
	big_icons.checked       = ini.GetInt("BigIcons", false); BigIconsSwitch();
160
	big_icons.checked       = ini.GetInt("BigIcons", false); BigIconsSwitch();
161
	two_panels.checked      = ini.GetInt("TwoPanels", false); 
161
	two_panels.checked      = ini.GetInt("TwoPanels", false); 
162
	colored_lines.checked   = ini.GetInt("ColoredLines", false); 
162
	colored_lines.checked   = ini.GetInt("ColoredLines", false); 
163
	kfont.size.pt   = ini.GetInt("FontSize", 13); 
163
	kfont.size.pt   = ini.GetInt("FontSize", 13); 
164
	files.item_h    = ini.GetInt("LineHeight", 19);
164
	files.item_h    = ini.GetInt("LineHeight", 19);
165
	Form.left   = ini.GetInt("WinX", 200); 
165
	Form.left   = ini.GetInt("WinX", 200); 
166
	Form.top    = ini.GetInt("WinY", 50); 
166
	Form.top    = ini.GetInt("WinY", 50); 
167
	Form.width  = ini.GetInt("WinW", 550); 
167
	Form.width  = ini.GetInt("WinW", 550); 
168
	Form.height = ini.GetInt("WinH", 506); 
168
	Form.height = ini.GetInt("WinH", 506); 
169
	ini.GetString("DefaultPath", #path, 4096, "/rd/1");
169
	ini.GetString("DefaultPath", #path, 4096, "/rd/1");
170
	ini.GetString("DefaultPath", #path_start, 4096, "/rd/1");
170
	ini.GetString("DefaultPath", #path_start, 4096, "/rd/1");
171
	path_start_ed.size = path_start_ed.pos = strlen(#path_start);
171
	path_start_ed.size = path_start_ed.pos = strlen(#path_start);
172
 
172
 
173
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
173
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font file",#temp,4096,DEFAULT_FONT);
174
	kfont.init(#temp);
174
	kfont.init(#temp);
175
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
175
	ini_get_str stdcall ("/sys/SETTINGS/SYSTEM.INI", "system", "font smoothing",#temp,4096,"on");
176
	if(!strcmp(#temp,"off")) kfont.smooth = false; else kfont.smooth = true;
176
	if(!strcmp(#temp,"off")) kfont.smooth = false; else kfont.smooth = true;
177
}
177
}
178
 
178
 
179
 
179
 
180
void SaveIniSettings()
180
void SaveIniSettings()
181
{
181
{
182
	ini.SetInt("ShowDeviceName", show_dev_name.checked);
182
	ini.SetInt("ShowDeviceName", show_dev_name.checked);
183
	ini.SetInt("ShowStatusBar", show_status_bar.checked);
183
	ini.SetInt("ShowStatusBar", show_status_bar.checked);
184
	ini.SetInt("InfoAfterCopy", info_after_copy.checked);
184
	ini.SetInt("InfoAfterCopy", info_after_copy.checked);
185
	ini.SetInt("BigIcons", big_icons.checked);
185
	ini.SetInt("BigIcons", big_icons.checked);
186
	ini.SetInt("TwoPanels", two_panels.checked);
186
	ini.SetInt("TwoPanels", two_panels.checked);
187
	ini.SetInt("ColoredLines", colored_lines.checked);
187
	ini.SetInt("ColoredLines", colored_lines.checked);
188
	ini.SetInt("FontSize", kfont.size.pt);
188
	ini.SetInt("FontSize", kfont.size.pt);
189
	ini.SetInt("LineHeight", files.item_h);
189
	ini.SetInt("LineHeight", files.item_h);
190
	ini.SetInt("WinX", Form.left);
190
	ini.SetInt("WinX", Form.left);
191
	ini.SetInt("WinY", Form.top);
191
	ini.SetInt("WinY", Form.top);
192
	ini.SetInt("WinW", Form.width);
192
	ini.SetInt("WinW", Form.width);
193
	ini.SetInt("WinH", Form.height);
193
	ini.SetInt("WinH", Form.height);
194
}
194
}
195
 
195
 
196
 
196
 
197
 
197
 
198
void Write_Error(int error_number)
198
void Write_Error(int error_number)
199
{
199
{
200
	char error_message[500];
200
	char error_message[500];
201
	sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE");
201
	sprintf(#error_message,"\"%s\n%s\" -%s","Eolite",get_error(error_number),"tE");
202
	notify(#error_message);	
202
	notify(#error_message);	
203
}
203
}
204
 
204
 
205
 
205
 
206
void LoadIcons()
206
void LoadIcons()
207
{
207
{
208
	//ICONS16.PNG
208
	//ICONS16.PNG
209
	icons16_default.load("/sys/icons16.png");
209
	icons16_default.load("/sys/icons16.png");
210
	icons16_selected.load("/sys/icons16.png");
210
	icons16_selected.load("/sys/icons16.png");
211
	icons16_selected.replace_color(0xffFFFfff, col.selec);
211
	icons16_selected.replace_color(0xffFFFfff, col.selec);
212
	icons16_selected.replace_color(0xffCACBD6, MixColors(col.selec, 0, 200));
212
	icons16_selected.replace_color(0xffCACBD6, MixColors(col.selec, 0, 200));
213
	if (col.list_bg!=0xFFFfff) {
213
	if (col.list_bg!=0xFFFfff) {
214
		icons16_default.replace_color(0xffFFFfff, col.list_bg);
214
		icons16_default.replace_color(0xffFFFfff, col.list_bg);
215
		icons16_default.replace_color(0xffCACBD6, MixColors(col.list_bg, 0, 200));		
215
		icons16_default.replace_color(0xffCACBD6, MixColors(col.list_bg, 0, 200));		
216
	}
216
	}
217
	//ICONS32.PNG
217
	//ICONS32.PNG
218
	if (big_icons.checked) {
218
	if (big_icons.checked) {
219
		icons32_default.load("/sys/icons32.png");
219
		icons32_default.load("/sys/icons32.png");
220
		icons32_selected.load("/sys/icons32.png");
220
		icons32_selected.load("/sys/icons32.png");
221
		icons32_default.replace_color(0x00000000, col.list_bg);
221
		icons32_default.replace_color(0x00000000, col.list_bg);
222
		icons32_selected.replace_color(0x00000000, col.selec);		
222
		icons32_selected.replace_color(0x00000000, col.selec);		
223
	}
223
	}
224
}
224
}
225
 
225
 
226
void SetAppColors()
226
void SetAppColors()
227
{
227
{
228
	int i;
228
	int i;
229
	static dword bg_col;
229
	static dword bg_col;
230
	dword old_list_bg_color = col.list_bg;
230
	dword old_list_bg_color = col.list_bg;
231
	sc.get();
231
	sc.get();
232
	sc.work_dark = MixColors(0, sc.work, 35);
232
	sc.work_dark = MixColors(0, sc.work, 35);
233
	if (sc.work == 0) sc.work = 1;
233
	if (sc.work == 0) sc.work = 1;
234
	if (bg_col == sc.work) return;
234
	if (bg_col == sc.work) return;
235
	bg_col = sc.work;
235
	bg_col = sc.work;
236
	if (skin_is_dark()) 
236
	if (skin_is_dark()) 
237
	{
237
	{
238
		//use dark colors
238
		//use dark colors
239
		col.def = false;
239
		col.def = false;
240
		col.list_bg = sc.work;
240
		col.list_bg = sc.work;
241
		col.list_gb_text = sc.work_text;
241
		col.list_gb_text = sc.work_text;
242
		col.list_text_hidden = 0xA6A6B7;
242
		col.list_text_hidden = 0xA6A6B7;
243
		col.list_vert_line = sc.work_graph;
243
		col.list_vert_line = sc.work_graph;
244
		col.lpanel  = MixColors(sc.work_graph, sc.work, 65);
244
		col.lpanel  = MixColors(sc.work_graph, sc.work, 65);
245
		col.selec = col.selec_active = sc.button;
245
		col.selec = col.selec_active = sc.button;
246
		col.selec_text = sc.button_text;
246
		col.selec_text = sc.button_text;
247
		if (col.list_bg==col.selec) col.selec = sc.work_graph; //for fucking skins
247
		if (col.list_bg==col.selec) col.selec = sc.work_graph; //for fucking skins
248
		col.slider_bg_big = MixColors(0xCED0D0, sc.work, 35);
248
		col.slider_bg_big = MixColors(0xCED0D0, sc.work, 35);
249
		col.odd_line = MixColors(0xFFFfff, sc.work, 15);
249
		col.odd_line = MixColors(0xFFFfff, sc.work, 15);
250
	}
250
		for (i=0; blue_hl_pal[i]!=0; i++) waves_pal[i] = MixColors(col.lpanel, blue_hl_pal[i], 180);
-
 
251
	}
251
	else 
252
	else 
252
	{
253
	{
253
		//use light colors
254
		//use light colors
254
		col.def = true;
255
		col.def = true;
255
		col.list_bg = 0xFFFfff;
256
		col.list_bg = 0xFFFfff;
256
		col.list_gb_text = 0x000000;
257
		col.list_gb_text = 0x000000;
257
		col.list_text_hidden = 0xA6A6B7;
258
		col.list_text_hidden = 0xA6A6B7;
258
		col.list_vert_line = 0xDDD7CF;
259
		col.list_vert_line = 0xDDD7CF;
259
		col.lpanel  = 0x00699C;
260
		col.lpanel  = 0x00699C;
260
		col.selec = col.selec_active = 0x94AECE;
261
		col.selec = col.selec_active = 0x94AECE;
261
		col.selec_text = 0x000000;
262
		col.selec_text = 0x000000;
262
		col.slider_bg_big = 0xCDCFCF;
263
		col.slider_bg_big = 0xCDCFCF;
263
		col.odd_line = 0xF1F1F1;
264
		col.odd_line = 0xF1F1F1;
264
	}
265
		for (i=0; blue_hl_pal[i]!=0; i++) waves_pal[i] = blue_hl_pal[i];
-
 
266
	}
265
	col.selec_inactive = MixColors(0xBBBbbb, col.list_bg, 65);
267
	col.selec_inactive = MixColors(0xBBBbbb, col.list_bg, 65);
266
	col.slider_bg_left = MixColors(sc.work_graph, col.slider_bg_big, 10);
268
	col.slider_bg_left = MixColors(sc.work_graph, col.slider_bg_big, 10);
267
	for (i=0; i<20; i++) col.work_gradient[i] = MixColors(sc.work_light, sc.work, i*5);
269
	for (i=0; i<20; i++) col.work_gradient[i] = MixColors(sc.work_light, sc.work, i*5);
268
	if (old_list_bg_color!=col.list_bg) LoadIcons();
270
	if (old_list_bg_color!=col.list_bg) LoadIcons();
269
}
271
}
270
 
272
 
271
 
273
 
272
void BigFontsChange()
274
void BigFontsChange()
273
{
275
{
274
	files.item_h = kfont.size.pt + 4;
276
	files.item_h = kfont.size.pt + 4;
275
	if (files.item_h
277
	if (files.item_h
276
		files.item_h = icon_size+3;
278
		files.item_h = icon_size+3;
277
		line_height.value = files.item_h;
279
		line_height.value = files.item_h;
278
		line_height.redraw();
280
		line_height.redraw();
279
	}
281
	}
280
	files_active.item_h = files_inactive.item_h = files.item_h;
282
	files_active.item_h = files_inactive.item_h = files.item_h;
281
}
283
}
282
 
284
 
283
void BigIconsSwitch()
285
void BigIconsSwitch()
284
{
286
{
285
	if (big_icons.checked) {
287
	if (big_icons.checked) {
286
		icon_size=32; 
288
		icon_size=32; 
287
		LoadIcons();
289
		LoadIcons();
288
	} else {
290
	} else {
289
		icon_size=16; 
291
		icon_size=16; 
290
	}
292
	}
291
	BigFontsChange();
293
	BigFontsChange();
292
}
294
}
293
 
295
 
294
void SetDefaultPath(dword p)
296
void SetDefaultPath(dword p)
295
{
297
{
296
	ini.SetString("DefaultPath", p, strlen(p));
298
	ini.SetString("DefaultPath", p, strlen(p));
297
	notify("'Default path has been set' -O");
299
	notify("'Default path has been set' -O");
298
}
300
}