Rev 7196 | Rev 7202 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7196 | Rev 7200 | ||
---|---|---|---|
Line 269... | Line 269... | ||
269 | if (window_mode == WINDOW_MODE_NORMAL) |
269 | if (window_mode == WINDOW_MODE_NORMAL) |
270 | { |
270 | { |
271 | button_y = 46; |
271 | button_y = 46; |
272 | img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0); |
272 | img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0); |
273 | if (playback_mode != PLAYBACK_MODE_STOPED) |
273 | if (playback_mode != PLAYBACK_MODE_STOPED) |
274 | img_draw stdcall(skin.image, 46, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1); |
274 | img_draw stdcall(skin.image, 47, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1); |
275 | if (repeat) |
275 | if (repeat) |
276 | img_draw stdcall(skin.image, 177, button_y+2, 17,17,skin.w+43, WIN_H_SMALL+1); |
276 | img_draw stdcall(skin.image, 217, button_y+2, 17,17,skin.w+43, WIN_H_SMALL+1); |
277 | if (shuffle) |
277 | if (shuffle) |
278 | img_draw stdcall(skin.image, 196, button_y+2, 17,17, skin.w+62, WIN_H_SMALL+1); |
278 | img_draw stdcall(skin.image, 236, button_y+2, 17,17, skin.w+62, WIN_H_SMALL+1); |
Line 279... | Line 279... | ||
279 | 279 | ||
280 | if (!work_folder) DrawPixieTitle("Pixie"); |
280 | if (!work_folder) DrawPixieTitle("Pixie"); |
281 | else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/')); |
281 | else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/')); |
282 | kfont_width = kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg, |
282 | kfont_width = kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg, |
283 | theme.color_top_panel_song_name, list.font_type, #current_filename); |
283 | theme.color_top_panel_song_name, list.font_type, #current_filename); |
284 | if (kfont_width>skin.w-15) DrawBar(skin.w-1, 24, 1, list.item_h, theme.color_list_border); |
284 | if (kfont_width>skin.w-15) DrawBar(skin.w-1, 24, 1, list.item_h, theme.color_list_border); |
285 | //Playing control buttons |
285 | //Playing control buttons |
286 | DefineHiddenButton(7, button_y, 38, 20, BUTTON_PLAYBACK_PREV); |
286 | DefineHiddenButton(7, button_y, 38, 20, BUTTON_PLAYBACK_PREV); |
287 | DefineHiddenButton(47, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE); |
287 | DefineHiddenButton(48, button_y, 38, 20, BUTTON_PLAYBACK_PLAY_PAUSE); |
288 | DefineHiddenButton(87, button_y, 38, 20, BUTTON_PLAYBACK_NEXT); |
288 | DefineHiddenButton(87, button_y, 38, 20, BUTTON_PLAYBACK_NEXT); |
289 | //Window control buttons |
289 | //Window control buttons |
290 | DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
290 | DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
291 | DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE); |
291 | DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE); |
292 | DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE); |
292 | DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE); |
293 | //Other buttons |
293 | //Other buttons |
294 | DefineHiddenButton(Form.width - 53, button_y, 22, 20, BUTTON_OPEN_DIALOG); |
294 | DefineHiddenButton(218, button_y+3, 17, 16, BUTTON_REPEAT); |
295 | DefineHiddenButton(Form.width - 29, button_y, 22, 20, BUTTON_SHOW_VOLUME); |
295 | DefineHiddenButton(237, button_y+3, 17, 16, BUTTON_SHUFFLE); |
296 | DefineHiddenButton(178, button_y+3, 17, 16, BUTTON_REPEAT); |
296 | DefineHiddenButton(270, button_y+3, 17, 16, BUTTON_OPEN_DIALOG); |
297 | DefineHiddenButton(197, button_y+3, 17, 16, BUTTON_SHUFFLE); |
297 | DefineHiddenButton(289, button_y+3, 17, 16, BUTTON_SHOW_VOLUME); |
298 | } |
298 | } |
299 | else if (window_mode == WINDOW_MODE_SMALL) |
299 | else if (window_mode == WINDOW_MODE_SMALL) |
300 | { |
300 | { |
301 | button_y = 7; |
301 | button_y = 7; |