new icons for radio status
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8002 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5745e4106c
commit
2c836341ed
5 changed files with 11 additions and 4 deletions
|
@ -226,6 +226,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw)
|
||||||
bar->info.volume);
|
bar->info.volume);
|
||||||
gui_statusbar_icon_play_state(display, current_playmode() +
|
gui_statusbar_icon_play_state(display, current_playmode() +
|
||||||
Icon_Play);
|
Icon_Play);
|
||||||
|
|
||||||
switch (bar->info.repeat) {
|
switch (bar->info.repeat) {
|
||||||
#ifdef AB_REPEAT_ENABLE
|
#ifdef AB_REPEAT_ENABLE
|
||||||
case REPEAT_AB:
|
case REPEAT_AB:
|
||||||
|
|
|
@ -63,12 +63,14 @@ const unsigned char bitmap_icons_7x8[][7] =
|
||||||
{0x08,0x1c,0x3e,0x7f,0x1c,0x3e,0x7f}, /* Fast backward */
|
{0x08,0x1c,0x3e,0x7f,0x1c,0x3e,0x7f}, /* Fast backward */
|
||||||
{0x1c,0x3e,0x7f,0x7f,0x7f,0x3e,0x1c}, /* Record */
|
{0x1c,0x3e,0x7f,0x7f,0x7f,0x3e,0x1c}, /* Record */
|
||||||
{0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */
|
{0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */
|
||||||
|
{0x40,0xa0,0xa0,0xa0,0x7f,0x02,0x02}, /* Radio on */
|
||||||
|
{0x42,0xa4,0xa8,0xb0,0x7f,0x22,0x42}, /* Radio mute */
|
||||||
{0x44,0x4e,0x5f,0x44,0x44,0x44,0x38}, /* Repeat playmode */
|
{0x44,0x4e,0x5f,0x44,0x44,0x44,0x38}, /* Repeat playmode */
|
||||||
{0x44,0x4e,0x5f,0x44,0x38,0x02,0x7f}, /* Repeat-one playmode */
|
{0x44,0x4e,0x5f,0x44,0x38,0x02,0x7f}, /* Repeat-one playmode */
|
||||||
{0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */
|
{0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */
|
||||||
{0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */
|
{0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */
|
||||||
{0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */
|
{0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */
|
||||||
{0x7f,0x04,0x4e,0x5f,0x44,0x38,0x7f}, /* Repeat-AB playmode */
|
{0x7f,0x04,0x4e,0x5f,0x44,0x38,0x7f} /* Repeat-AB playmode */
|
||||||
};
|
};
|
||||||
|
|
||||||
#if CONFIG_LED == LED_VIRTUAL
|
#if CONFIG_LED == LED_VIRTUAL
|
||||||
|
|
|
@ -60,6 +60,8 @@ enum icons_7x8 {
|
||||||
Icon_FastBackward,
|
Icon_FastBackward,
|
||||||
Icon_Record,
|
Icon_Record,
|
||||||
Icon_RecPause,
|
Icon_RecPause,
|
||||||
|
Icon_Radio,
|
||||||
|
Icon_Radio_Mute,
|
||||||
Icon_Repeat,
|
Icon_Repeat,
|
||||||
Icon_RepeatOne,
|
Icon_RepeatOne,
|
||||||
Icon_Shuffle,
|
Icon_Shuffle,
|
||||||
|
|
|
@ -126,10 +126,10 @@ int current_playmode(void)
|
||||||
audio_stat = get_radio_status();
|
audio_stat = get_radio_status();
|
||||||
|
|
||||||
if(audio_stat == FMRADIO_PLAYING)
|
if(audio_stat == FMRADIO_PLAYING)
|
||||||
return STATUS_PLAY;
|
return STATUS_RADIO;
|
||||||
|
|
||||||
if(audio_stat == FMRADIO_PAUSED)
|
if(audio_stat == FMRADIO_PAUSED)
|
||||||
return STATUS_PAUSE;
|
return STATUS_RADIO_PAUSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return STATUS_STOP;
|
return STATUS_STOP;
|
||||||
|
|
|
@ -42,7 +42,9 @@ enum playmode
|
||||||
STATUS_FASTFORWARD,
|
STATUS_FASTFORWARD,
|
||||||
STATUS_FASTBACKWARD,
|
STATUS_FASTBACKWARD,
|
||||||
STATUS_RECORD,
|
STATUS_RECORD,
|
||||||
STATUS_RECORD_PAUSE
|
STATUS_RECORD_PAUSE,
|
||||||
|
STATUS_RADIO,
|
||||||
|
STATUS_RADIO_PAUSE
|
||||||
};
|
};
|
||||||
|
|
||||||
void status_init(void);
|
void status_init(void);
|
||||||
|
|
Loading…
Reference in a new issue