Subversion Repositories Kolibri OS

Rev

Rev 8949 | Rev 8981 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8949 Rev 8953
Line 1... Line 1...
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 "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
-
 
6
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
5
	?define BIG_ICONS "ˆá¯®«ì§®¢ âì ¡®«ì訥 ¨ª®­ª¨"
7
	?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
6
	?define COLORED_LINES "®¤á¢¥ç¨¢ âì ç¥â­ë¥ «¨­¨¨ ¢ ᯨ᪥"
8
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
7
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
8
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
10
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
9
	?define SAVE_PATH_AS_DEFAULT "’¥ªã騩 ¯ãâì"
Line 14... Line 13...
14
#else
13
#else
15
	?define TITLE_SETT "Settings"
14
	?define TITLE_SETT "Settings"
16
	?define SHOW_DEVICE_CLASS "Show device class name"
15
	?define SHOW_DEVICE_CLASS "Show device class name"
17
	?define SHOW_STATUS_BAR "Show status bar"
16
	?define SHOW_STATUS_BAR "Show status bar"
18
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
17
	?define BIG_ICONS "Big icons in list"
19
	?define BIG_ICONS "Big icons in list"
-
 
20
	?define COLORED_LINES "Highlight even lines in list"
18
	?define COLORED_LINES "Highlight even lines in list"
21
	?define FONT_SIZE_LABEL "Font size"
19
	?define FONT_SIZE_LABEL "Font size"
22
	?define LIST_LINE_HEIGHT "List line height"
20
	?define LIST_LINE_HEIGHT "List line height"
23
	?define SAVE_PATH_AS_DEFAULT "Current path"
21
	?define SAVE_PATH_AS_DEFAULT "Current path"
24
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
22
	?define SAVE_START_PATH_AS_DEFAULT "Typed path"
Line 36... Line 34...
36
more_less_box font_size   = { NULL, 9, 22, FONT_SIZE_LABEL };
34
more_less_box font_size   = { NULL, 9, 22, FONT_SIZE_LABEL };
37
more_less_box line_height = { NULL, 16, 64, LIST_LINE_HEIGHT };
35
more_less_box line_height = { NULL, 16, 64, LIST_LINE_HEIGHT };
38
checkbox show_dev_name    = { SHOW_DEVICE_CLASS };
36
checkbox show_dev_name    = { SHOW_DEVICE_CLASS };
39
checkbox show_status_bar  = { SHOW_STATUS_BAR };
37
checkbox show_status_bar  = { SHOW_STATUS_BAR };
40
checkbox show_breadcrumb  = { SHOW_BREADCRUMBS };
-
 
41
checkbox big_icons        = { BIG_ICONS };
38
checkbox big_icons        = { BIG_ICONS };
42
checkbox colored_lines    = { COLORED_LINES };
39
checkbox colored_lines    = { COLORED_LINES };
Line 43... Line 40...
43
 
40
 
Line 78... Line 75...
78
					SetDefaultPath(#path_start);
75
					SetDefaultPath(#path_start);
79
					break;
76
					break;
80
				}
77
				}
81
				show_dev_name.click(id);
78
				show_dev_name.click(id);
82
				show_breadcrumb.click(id);
79
				show_status_bar.click(id);
83
				show_status_bar.click(id);
-
 
84
				colored_lines.click(id);
80
				colored_lines.click(id);
85
				if (font_size.click(id)) { 
81
				if (font_size.click(id)) { 
86
					kfont.size.pt = font_size.value; 
82
					kfont.size.pt = font_size.value; 
87
					kfont.changeSIZE(); 
83
					kfont.changeSIZE(); 
88
					BigFontsChange(); 
84
					BigFontsChange(); 
Line 101... Line 97...
101
				break;
97
				break;
102
				
98
				
Line 103... Line 99...
103
			case evReDraw:
99
			case evReDraw:
104
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
100
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 400, 
105
					-efm*62+365+skin_height,0x34,sc.work,TITLE_SETT,0);
101
					-efm*42+345+skin_height,0x34,sc.work,TITLE_SETT,0);
106
				GetProcessInfo(#Settings, SelfInfo);
102
				GetProcessInfo(#Settings, SelfInfo);
107
				DrawSettingsCheckBoxes();
103
				DrawSettingsCheckBoxes();
108
		}
104
		}
109
	}
105
	}
110
}
106
}
Line 126... Line 122...
126
	y.n = 0;
122
	y.n = 0;
127
	if (!efm) {
123
	if (!efm) {
128
		show_dev_name.draw(XXX, y.inc(14));
124
		show_dev_name.draw(XXX, y.inc(14));
129
		show_status_bar.draw(XXX, y.inc(25));
125
		show_status_bar.draw(XXX, y.inc(25));
130
		show_breadcrumb.draw(XXX, y.inc(25));
126
	}
131
	}
-
 
132
	big_icons.draw(XXX, y.inc(25));
127
	big_icons.draw(XXX, y.inc(25));
133
	colored_lines.draw(XXX, y.inc(25));
128
	colored_lines.draw(XXX, y.inc(25));
134
	font_size.draw(XXX, y.inc(31));
129
	font_size.draw(XXX, y.inc(31));
135
	line_height.draw(XXX, y.inc(31));
130
	line_height.draw(XXX, y.inc(31));
136
	
131
	
Line 236... Line 231...
236
	bg_col = sc.work;
231
	bg_col = sc.work;
237
	if (skin_is_dark()) 
232
	if (skin_is_dark()) 
238
	{
233
	{
239
		//use dark colors
234
		//use dark colors
240
		col.def = false;
235
		col.skin_is_dark = true;
241
		col.list_bg = sc.work;
236
		col.list_bg = sc.work;
242
		col.list_gb_text = sc.work_text;
237
		col.list_gb_text = sc.work_text;
243
		col.list_text_hidden = 0xA6A6B7;
238
		col.list_text_hidden = 0xA6A6B7;
244
		col.list_vert_line = sc.work_graph;
239
		col.list_vert_line = sc.work_graph;
245
		col.lpanel  = MixColors(sc.work_graph, sc.work, 65);
240
		col.lpanel  = MixColors(sc.work_graph, sc.work, 65);
246
		col.selec = col.selec_active = sc.button;
241
		col.selec = col.selec_active = sc.button;
Line 252... Line 247...
252
	}
247
	}
253
	else 
248
	else 
254
	{
249
	{
255
		//use light colors
250
		//use light colors
256
		col.def = true;
251
		col.skin_is_dark = false;
257
		col.list_bg = 0xFFFfff;
252
		col.list_bg = 0xFFFfff;
258
		col.list_gb_text = 0x000000;
253
		col.list_gb_text = 0x000000;
259
		col.list_text_hidden = 0xA6A6B7;
254
		col.list_text_hidden = 0xA6A6B7;
260
		col.list_vert_line = 0xDDD7CF;
255
		col.list_vert_line = 0xDDD7CF;
261
		col.lpanel  = 0x00699C;
256
		col.lpanel  = 0x00699C;
262
		col.selec = col.selec_active = 0x92B1D9;
257
		col.selec = col.selec_active = 0x92B1D9;