Subversion Repositories Kolibri OS

Rev

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

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