diff --git a/romfs/gfx/msg/string_resources_en.txt b/romfs/gfx/msg/string_resources_en.txt index df56fd9b..40a29033 100644 --- a/romfs/gfx/msg/string_resources_en.txt +++ b/romfs/gfx/msg/string_resources_en.txt @@ -6,6 +6,7 @@ Cancel OK Play +Playing URL Settings Watch History diff --git a/romfs/gfx/msg/string_resources_ja.txt b/romfs/gfx/msg/string_resources_ja.txt index 1435be15..583ac3ef 100644 --- a/romfs/gfx/msg/string_resources_ja.txt +++ b/romfs/gfx/msg/string_resources_ja.txt @@ -6,6 +6,7 @@ キャンセル OK 再生 +再生中 URL 設定 履歴 diff --git a/source/scenes/video_player.cpp b/source/scenes/video_player.cpp index e5b29a62..a4b7d469 100644 --- a/source/scenes/video_player.cpp +++ b/source/scenes/video_player.cpp @@ -758,15 +758,18 @@ static void load_video_page(void *arg) { { TextView *play_button = (new TextView(0, 0, 160 - SMALL_MARGIN, 20)); play_button - ->set_text((std::function) [] () { return LOCALIZED(PLAY); }) + ->set_text((std::function) [] () { return cur_video_info.id == playing_video_info.id ? LOCALIZED(PLAYING) : LOCALIZED(PLAY); }) ->set_x_alignment(TextView::XAlign::CENTER); if (tmp_video_info.is_playable()) { play_button ->set_on_view_released([url] (View &) { - send_change_video_request_wo_lock(url, true, false, false); + if (cur_video_info.id != playing_video_info.id) send_change_video_request_wo_lock(url, true, false, false); }) - ->set_get_background_color(View::STANDARD_BACKGROUND); - } else play_button->set_get_background_color([] (const View &) { return LIGHT2_BACK_COLOR; }); + ->set_get_background_color([] (const View &view) -> u32 { + if (cur_video_info.id == playing_video_info.id) return 0xFFFFBBBB; + return View::STANDARD_BACKGROUND(view); + }); + } else play_button->set_get_background_color([] (const View &) { return LIGHT1_BACK_COLOR; }); TextView *reload_button = (new TextView(0, 0, 160 - SMALL_MARGIN, 20)); reload_button