Subversion Repositories Kolibri OS

Rev

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

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