Subversion Repositories Kolibri OS

Rev

Rev 7202 | Rev 7229 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6920 leency 1
#define MEMSIZE 4096 * 50
2
 
3
//===================================================//
4
//                                                   //
5
//                       LIB                         //
6
//                                                   //
7
//===================================================//
8
 
7219 leency 9
#include "../lib/fs.h"
6920 leency 10
#include "../lib/list_box.h"
11
#include "../lib/gui.h"
7183 leency 12
#include "../lib/random.h"
7182 leency 13
#include "../lib/kfont.h"
6920 leency 14
 
7049 leency 15
#include "../lib/obj/libio.h"
16
#include "../lib/obj/libimg.h"
6920 leency 17
#include "../lib/obj/libini.h"
7182 leency 18
#include "../lib/obj/proc_lib.h"
19
#include "../lib/obj/box_lib.h"
6920 leency 20
 
21
#include "../lib/patterns/libimg_load_skin.h"
22
#include "../lib/patterns/simple_open_dialog.h"
23
 
24
//===================================================//
25
//                                                   //
26
//                       DATA                        //
27
//                                                   //
28
//===================================================//
29
 
30
//simple open dialog data
31
char default_dir[] = "/rd/1";
7189 leency 32
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
6920 leency 33
 
7202 leency 34
#define ABOUT_MESSAGE "Pixie Player v2.81
7189 leency 35
 
7188 leency 36
A tiny music folder player.
37
Supports MP3, WAV, XM audio file formats.
6920 leency 38
 
39
Controls:
40
Open file: O key
41
Play/Stop: Space or P key
42
Start playing selected file: Enter
43
Goto next/previous track: Ctrl + Left/Right
44
Change sound volume: Left/Right key
7196 leency 45
Remove from the list: Delete
7192 leency 46
Repeat: R
47
Shuffle: S
48
Mute: M
6920 leency 49
 
7189 leency 50
kolibri-n.org & aspero.pro"
6920 leency 51
 
7189 leency 52
scroll_bar scroll1 = { 5,200,398,44,0,2,115,15,0,0xeeeeee,0xBBBbbb,0xeeeeee,
53
	0,0,0,0,0,0,0,0,0,0,0,0,0,1,1};
54
 
6920 leency 55
proc_info Form;
56
llist list;
57
 
58
char pixie_ini_path[4096];
59
char work_folder[4096];
60
char current_filename[256];
61
 
62
enum {
63
	BUTTON_WINDOW_CLOSE = 1,
64
	BUTTON_WINDOW_MINIMIZE,
65
	BUTTON_WINDOW_REDUCE,
66
	BUTTON_PLAYBACK_PLAY_PAUSE = 10,
67
	BUTTON_PLAYBACK_PREV,
68
	BUTTON_PLAYBACK_NEXT,
7183 leency 69
	BUTTON_REPEAT,
70
	BUTTON_SHUFFLE,
6920 leency 71
	BUTTON_OPEN_DIALOG,
72
	BUTTON_SHOW_VOLUME
73
};
74
 
75
int player_run_id;
76
int notify_run_id;
77
 
7183 leency 78
bool repeat;
79
bool shuffle;
80
 
6920 leency 81
int current_playing_file_n=0;
82
 
83
word win_x_normal, win_y_normal;
84
word win_x_small, win_y_small;
85
 
86
byte window_mode;
87
enum {
88
	WINDOW_MODE_NORMAL,
89
	WINDOW_MODE_SMALL
90
};
91
 
92
byte playback_mode;
93
enum {
94
	PLAYBACK_MODE_STOPED,
95
	PLAYBACK_MODE_PLAYING
96
};
97
 
7192 leency 98
#define LAST_FOLDER_EXISTS 1
99
 
6920 leency 100
//===================================================//
101
//                                                   //
102
//                       CODE                        //
103
//                                                   //
104
//===================================================//
105
 
106
#include "get_files_list.h"
107
#include "settings.h"
108
 
109
void LoadLibraries()
110
{
111
	load_dll(boxlib, #box_lib_init,0);
112
	load_dll(libio, #libio_init,1);
113
	load_dll(libimg, #libimg_init,1);
114
	load_dll(libini, #lib_init,1);
115
	load_dll(Proc_lib, #OpenDialog_init,0);
7182 leency 116
	OpenDialog_init stdcall (#o_dialog);
6920 leency 117
}
118
 
119
void main()
120
{
7183 leency 121
	list.SetFont(8, 16, 13);
6920 leency 122
	LoadLibraries();
123
	LoadIniConfig();
7192 leency 124
	if (work_folder) param=LAST_FOLDER_EXISTS;
125
	if (!param) notify("'Pixie Player\nPress O key to open MP3/WAV/XM file' -St");
7182 leency 126
	kfont.init(DEFAULT_FONT);
127
	SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
6920 leency 128
	loop()
129
	{
130
	  WaitEventTimeout(10);
131
	  switch(EAX & 0xFF) {
132
	  	case evMouse:
133
			if (!CheckActiveProcess(Form.ID)) break;
134
			mouse.get();
135
			scrollbar_v_mouse (#scroll1);
136
			if (list.first != scroll1.position)
137
			{
138
				list.first = scroll1.position;
139
				DrawPlayList();
140
				break;
141
			}
142
			if (list.MouseOver(mouse.x, mouse.y))
143
			{
144
				if (mouse.vert) && (list.MouseScroll(mouse.vert)) DrawPlayList();
145
				if (mouse.dblclick) EventStartPlayingSelectedItem();
7189 leency 146
				if (mouse.down) && (mouse.key&MOUSE_LEFT)
147
					&& (list.ProcessMouse(mouse.x, mouse.y)) DrawPlayList();
148
				if (mouse.down) && (mouse.key&MOUSE_RIGHT) CreateThread(#EventShowAbout,#menu_stak+4092);
6920 leency 149
			}
7189 leency 150
			if(mouse.key&MOUSE_LEFT) && (mouse.x<14)
151
				&& (window_mode == WINDOW_MODE_SMALL) EventDragWindow();
6920 leency 152
			break;
153
		case evButton:
154
			switch(GetButtonID()) {
155
				case BUTTON_WINDOW_CLOSE: EventExitApp(); break;
156
				case BUTTON_WINDOW_MINIMIZE: MinimizeWindow(); break;
157
				case BUTTON_WINDOW_REDUCE: EventChangeWindowMode(); break;
158
				case BUTTON_PLAYBACK_PREV: EventPlaybackPrevious();	break;
159
				case BUTTON_PLAYBACK_NEXT: EventPlaybackNext(); break;
160
				case BUTTON_PLAYBACK_PLAY_PAUSE: EventPlayAndPause(); break;
7183 leency 161
				case BUTTON_REPEAT: EventRepeatClick(); break;
7192 leency 162
				case BUTTON_SHUFFLE: EventShuffleClick(); break;
6920 leency 163
				case BUTTON_OPEN_DIALOG: EventFileDialogOpen(); break;
164
				case BUTTON_SHOW_VOLUME: RunProgram("/sys/@VOLUME", NULL); break;
165
			}
166
			break;
167
		case evKey:
168
			GetKeys();
169
			if (key_modifier&KEY_LCTRL) || (key_modifier&KEY_RCTRL) {
170
				if (key_scancode==SCAN_CODE_LEFT) EventPlaybackPrevious();
171
				if (key_scancode==SCAN_CODE_RIGHT) EventPlaybackNext();
172
				break;
173
			}
174
			if (key_scancode==SCAN_CODE_KEY_O) EventFileDialogOpen();
175
			if (key_scancode==SCAN_CODE_KEY_M) RunProgram("/sys/@VOLUME", "m");
7192 leency 176
			if (key_scancode==SCAN_CODE_KEY_R) EventRepeatClick();
177
			if (key_scancode==SCAN_CODE_KEY_S) EventShuffleClick();
6920 leency 178
			if (key_scancode==SCAN_CODE_RIGHT) RunProgram("/sys/@VOLUME", "+");
179
			if (key_scancode==SCAN_CODE_LEFT)  RunProgram("/sys/@VOLUME", "-");
180
			if (key_scancode==SCAN_CODE_ENTER) EventStartPlayingSelectedItem();
7196 leency 181
			if (key_scancode==SCAN_CODE_DEL) EventDeleteItem();
7189 leency 182
			if (key_scancode==SCAN_CODE_KEY_P)||(key_scancode==SCAN_CODE_SPACE) EventPlayAndPause();
6920 leency 183
			if (list.ProcessKey(key_scancode)) DrawPlayList();
184
			break;
185
		case evReDraw:
7189 leency 186
			if (window_mode == WINDOW_MODE_NORMAL)
187
				DefineDragableWindow(win_x_normal, win_y_normal, skin.w - 1, skin.h + list.h-1);
188
			if (window_mode == WINDOW_MODE_SMALL)
189
				DefineDragableWindow(win_x_small, win_y_small, WIN_W_SMALL, WIN_H_SMALL);
6920 leency 190
			draw_window();
191
			if (param[0]) {
7192 leency 192
				if (param==LAST_FOLDER_EXISTS) EventOpenFolder(NULL);
193
				else EventOpenFolder(#param);
6920 leency 194
				param[0] = NULL;
195
			}
196
			break;
197
		default:
198
			EventCheckSongFinished();
199
	  }
200
   }
201
}
202
 
203
 
204
void DrawPlayList()
205
{
206
	int i;
207
	int yyy;
7196 leency 208
	int kfont_width;
6920 leency 209
	char temp_filename[4096];
7182 leency 210
	dword text_color, bg_color;
6920 leency 211
	for (i=0; i
212
	{
213
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
7189 leency 214
		temp_filename[strrchr(#temp_filename, '.')-1] = '\0';
6920 leency 215
 
216
		yyy = i*list.item_h+list.y;
217
 
218
		//this is selected file
219
		if (list.cur_y - list.first == i)
220
		{
221
			if (i>=list.count) continue;
7182 leency 222
			bg_color = theme.color_list_active_bg;
223
			text_color = theme.color_list_text;
6920 leency 224
		}
225
		//this is not selected file
226
		else
227
		{
228
			if (i>=list.count) continue;
7182 leency 229
			bg_color = theme.color_list_bg;
230
			text_color = theme.color_list_text;
6920 leency 231
		}
232
		//this is cur_y playing file
7189 leency 233
		if (i + list.first == current_playing_file_n)
234
		&& (playback_mode == PLAYBACK_MODE_PLAYING)
6920 leency 235
		{
7182 leency 236
			text_color = theme.color_list_active_text;
6920 leency 237
		}
7182 leency 238
		DrawBar(list.x, yyy, list.w, list.item_h, bg_color);
7196 leency 239
		kfont_width = kfont.WriteIntoWindow(6, yyy+list.text_y, bg_color,
7189 leency 240
			text_color, list.font_type, #temp_filename);
7196 leency 241
		if (kfont_width>skin.w-15) DrawBar(skin.w-1, yyy, 1, list.item_h, theme.color_list_border);
6920 leency 242
	}
7189 leency 243
	DrawBar(list.x,list.visible * list.item_h + list.y, list.w,
244
		-list.visible * list.item_h + list.h, theme.color_list_bg);
6920 leency 245
	DrawScroller();
246
}
247
 
248
 
249
void draw_window() {
250
	GetProcessInfo(#Form, SelfInfo);
251
	DrawTopPanel();
252
	IF (Form.status_window>=2) return;
253
	if (window_mode == WINDOW_MODE_NORMAL)
254
	{
255
		DrawPlayList();
256
		DrawRectangle(0, skin.h-1, skin.w-1, list.h+1, theme.color_list_border);
257
	}
258
}
259
 
260
void DrawTopPanel()
261
{
7196 leency 262
	int kfont_width;
6920 leency 263
	int button_y;
264
	//Mode depended
265
	if (window_mode == WINDOW_MODE_NORMAL)
266
	{
7182 leency 267
		button_y = 46;
6920 leency 268
		img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0);
7189 leency 269
		if (playback_mode != PLAYBACK_MODE_STOPED)
7200 leency 270
			img_draw stdcall(skin.image, 47, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1);
7189 leency 271
		if (repeat)
7200 leency 272
			img_draw stdcall(skin.image, 217, button_y+2, 17,17,skin.w+43, WIN_H_SMALL+1);
7189 leency 273
		if (shuffle)
7200 leency 274
			img_draw stdcall(skin.image, 236, button_y+2, 17,17, skin.w+62, WIN_H_SMALL+1);
7183 leency 275
 
7189 leency 276
		if (!work_folder) DrawPixieTitle("Pixie");
7166 leency 277
		else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/'));
7196 leency 278
		kfont_width = kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg,
279
			theme.color_top_panel_song_name, list.font_type, #current_filename);
280
		if (kfont_width>skin.w-15) DrawBar(skin.w-1, 24, 1, list.item_h, theme.color_list_border);
7166 leency 281
	 	//Playing control buttons
7183 leency 282
		DefineHiddenButton(7, button_y, 38, 20, BUTTON_PLAYBACK_PREV);
7200 leency 283
		DefineHiddenButton(48, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE);
7183 leency 284
		DefineHiddenButton(87, button_y, 38, 20, BUTTON_PLAYBACK_NEXT);
7166 leency 285
		//Window control buttons
7183 leency 286
		DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
287
		DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE);
288
		DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE);
289
		//Other buttons
7200 leency 290
		DefineHiddenButton(218, button_y+3, 17, 16, BUTTON_REPEAT);
291
		DefineHiddenButton(237, button_y+3, 17, 16, BUTTON_SHUFFLE);
292
		DefineHiddenButton(270, button_y+3, 17, 16, BUTTON_OPEN_DIALOG);
293
		DefineHiddenButton(289, button_y+3, 17, 16, BUTTON_SHOW_VOLUME);
6920 leency 294
	}
295
	else if (window_mode == WINDOW_MODE_SMALL)
296
	{
7166 leency 297
		button_y = 7;
6920 leency 298
		img_draw stdcall(skin.image, 0, 0, WIN_W_SMALL, WIN_H_SMALL, skin.w-1, 0);
7196 leency 299
		if (playback_mode != PLAYBACK_MODE_STOPED)
300
			img_draw stdcall(skin.image, 46, button_y-1, 27, 19, skin.w+83, WIN_H_SMALL+1);
6920 leency 301
		DefineHiddenButton(0, 0, WIN_W_SMALL, WIN_H_SMALL, 99 + BT_NOFRAME);
7166 leency 302
	 	//Playing control buttons
7189 leency 303
		DefineHiddenButton(20, button_y, 24, 16, BUTTON_PLAYBACK_PREV);
304
		DefineHiddenButton(46, button_y, 24, 16, BUTTON_PLAYBACK_PLAY_PAUSE);
305
		DefineHiddenButton(72, button_y, 24, 16, BUTTON_PLAYBACK_NEXT);
7166 leency 306
		//Window control buttons
307
		DefineHiddenButton(Form.width - 20, 1, 19, 13, BUTTON_WINDOW_CLOSE);
308
		DefineHiddenButton(Form.width - 20, 16, 19, 13, BUTTON_WINDOW_REDUCE);
6920 leency 309
	}
310
}
311
 
312
 
313
void DrawScroller()
314
{
315
	scroll1.max_area = list.count;
316
	scroll1.cur_area = list.visible;
317
	scroll1.position = list.first;
318
	scroll1.all_redraw = 0;
319
	scroll1.start_x = skin.w - scroll1.size_x-1;
320
	scroll1.start_y = list.y-1;
321
	scroll1.size_y = list.h+2;
322
	if (list.count > list.visible) scrollbar_v_draw(#scroll1);
323
}
324
 
325
void DrawPixieTitle(dword _title)
326
{
7189 leency 327
	kfont.WriteIntoWindow(8, 5, theme.color_top_panel_bg,
328
		theme.color_top_panel_folder_name, list.font_type, _title);
6920 leency 329
}
330
 
331
//===================================================//
332
//                                                   //
333
//                     EVENTS                        //
334
//                                                   //
335
//===================================================//
336
 
337
 
338
void EventOpenFolder(dword _open_path)
339
{
7192 leency 340
	if (!_open_path)
6920 leency 341
	{
7192 leency 342
		OpenDirectory(#work_folder);
343
	}
344
	else
345
	{
6920 leency 346
		strcpy(#work_folder, _open_path);
347
		work_folder[strrchr(#work_folder, '/')-1]='\0';
348
		OpenDirectory(#work_folder);
349
		SetOpenedFileFirst(_open_path);
350
	}
351
	list.SetSizes(1, skin.h, skin.w-1, 22*15, 22);
352
	if (list.count <= list.visible)
353
	{
354
		list.h = list.count * list.item_h;
355
		list.visible = list.count;
356
		list.w -= 1;
357
	}
358
	else
359
	{
360
		list.w -= scroll1.size_x;
361
	}
7196 leency 362
	if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
6920 leency 363
	list.KeyHome();
364
	current_playing_file_n=0;
7196 leency 365
	EventStopPlaying();
366
	if (_open_path) EventStartPlaying();
6920 leency 367
}
368
 
369
 
7196 leency 370
void EventStopPlaying()
6920 leency 371
{
372
	if (player_run_id) player_run_id = KillProcess(player_run_id);
373
	if (notify_run_id) notify_run_id = KillProcess(notify_run_id);
374
	playback_mode = PLAYBACK_MODE_STOPED;
375
	DrawTopPanel();
376
	DrawPlayList();
377
}
378
 
379
 
7196 leency 380
void EventStartPlaying()
6920 leency 381
{
382
	word i;
383
	char item_path[4096];
384
	char notify_message[512];
7196 leency 385
	EventStopPlaying();
7182 leency 386
	if (current_playing_file_n >= list.count) {
387
		current_playing_file_n = list.count-1;
6920 leency 388
		return;
389
	}
390
	if (current_playing_file_n < 0) {
391
		current_playing_file_n = 0;
392
		return;
393
	}
394
	playback_mode = PLAYBACK_MODE_PLAYING;
395
	strlcpy(#current_filename, Getcur_yItemName(), sizeof(current_filename));
7177 leency 396
	sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename);
7196 leency 397
	current_filename[strrchr(#current_filename, '.')-1] = '\0';
6920 leency 398
	DrawPlayList();
399
	DrawTopPanel();
7182 leency 400
	player_run_id = RunProgram("/sys/media/ac97snd", #item_path);
6920 leency 401
	sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename);
7196 leency 402
	if (!repeat) && (window_mode==WINDOW_MODE_SMALL)
7183 leency 403
	{
404
		for (i=2; i
7189 leency 405
		{
406
			//replace ' char to avoid @notify misunderstood
407
			if (notify_message[i]=='\'') notify_message[i]=96;
408
		}
7183 leency 409
		notify_run_id = notify(#notify_message);
410
	}
6920 leency 411
}
412
 
413
 
414
void EventPlayAndPause()
415
{
416
	if (playback_mode == PLAYBACK_MODE_PLAYING)
417
	{
418
		playback_mode = PLAYBACK_MODE_STOPED;
7196 leency 419
		EventStopPlaying();
6920 leency 420
	}
421
	else
422
	{
423
		playback_mode = PLAYBACK_MODE_PLAYING;
7196 leency 424
		EventStartPlaying();
6920 leency 425
	}
426
}
427
 
428
 
429
void EventChangeWindowMode()
430
{
431
	if (window_mode == WINDOW_MODE_NORMAL)
432
	{
433
		window_mode = WINDOW_MODE_SMALL;
434
		win_x_normal = Form.left;
435
		win_y_normal = Form.top;
436
		MoveSize(OLD, OLD, WIN_W_SMALL-1, WIN_H_SMALL-1);
437
		MoveSize(OLD, win_y_small, OLD, OLD);
438
		MoveSize(win_x_small, OLD, OLD, OLD);
439
	}
440
	else
441
	{
442
		window_mode = WINDOW_MODE_NORMAL;
443
		win_x_small = Form.left;
444
		win_y_small = Form.top;
445
		MoveSize(win_x_normal, win_y_normal, skin.w -1 ,skin.h + list.h);
446
	}
447
}
448
 
449
void EventExitApp()
450
{
7196 leency 451
	EventStopPlaying();
6920 leency 452
	SaveIniConfig();
453
	ExitProcess();
454
}
455
 
456
void EventPlaybackPrevious()
457
{
7183 leency 458
	if (shuffle) current_playing_file_n = random(list.count);
459
	else current_playing_file_n--;
7196 leency 460
	EventStartPlaying();
6920 leency 461
}
462
 
463
void EventPlaybackNext()
464
{
7183 leency 465
	if (shuffle) current_playing_file_n = random(list.count);
466
	else current_playing_file_n++;
7196 leency 467
	EventStartPlaying();
6920 leency 468
}
469
 
470
void EventStartPlayingSelectedItem()
471
{
472
	current_playing_file_n=list.cur_y;
7196 leency 473
	EventStartPlaying();
6920 leency 474
}
475
 
476
void EventFileDialogOpen()
477
{
478
	OpenDialog_start stdcall (#o_dialog);
479
	if (o_dialog.status==1) EventOpenFolder(#openfile_path);
480
}
481
 
482
void EventCheckSongFinished()
483
{
7189 leency 484
	if (playback_mode == PLAYBACK_MODE_PLAYING)
485
	&& (!GetProcessSlot(player_run_id)) {
7196 leency 486
		if (repeat) EventStartPlaying();
7183 leency 487
		else EventPlaybackNext();
6920 leency 488
	}
489
}
490
 
7183 leency 491
void EventRepeatClick()
492
{
493
	repeat ^= 1;
494
	DrawTopPanel();
495
}
6920 leency 496
 
7192 leency 497
void EventShuffleClick()
7183 leency 498
{
499
	shuffle ^= 1;
500
	DrawTopPanel();
501
}
502
 
7196 leency 503
void EventDeleteItem()
504
{
505
	int i;
506
	if (list.cur_y == current_playing_file_n) EventStopPlaying();
507
	for (i=list.cur_y; i
508
	list.count--;
7202 leency 509
	if (list.cur_y <= current_playing_file_n) current_playing_file_n--;
7196 leency 510
	list.CheckDoesValuesOkey();
511
	if (list.count <= list.visible)
512
	{
513
		list.h = list.count * list.item_h;
514
		list.visible = list.count;
515
		if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
516
	}
517
	else DrawPlayList();
518
}
519
 
7189 leency 520
void EventShowAbout()
521
{
522
	proc_info pop_up;
523
	loop() switch(WaitEvent())
524
	{
525
		case evButton:
526
			ExitProcess();
527
			break;
528
		case evKey:
529
			GetKeys();
530
			if (key_scancode == SCAN_CODE_ESC) ExitProcess();
531
			break;
532
		case evReDraw:
7196 leency 533
			DefineDragableWindow(150, 200, 400, 346);
7189 leency 534
			GetProcessInfo(#pop_up, SelfInfo);
535
			DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg);
536
			DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border);
537
			WriteTextLines(10, 10, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19);
538
 
539
			DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
540
			img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0);
7192 leency 541
			DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2,
542
			  theme.color_list_active_bg, theme.color_top_panel_song_name, "Cool");
7189 leency 543
	}
544
}
545
 
546
 
6920 leency 547
stop:
548
 
549
char menu_stak[4096];