2
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-22 10:09:39 +00:00

[YouTube] Add icons and strings for new trending pages

This commit is contained in:
Stypox 2025-07-28 19:24:18 +02:00
parent ed93603815
commit 7cecd11f72
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
3 changed files with 25 additions and 0 deletions

View File

@ -52,6 +52,14 @@ public final class KioskTranslator {
return c.getString(R.string.featured); return c.getString(R.string.featured);
case "Radio": case "Radio":
return c.getString(R.string.radio); return c.getString(R.string.radio);
case "trending_gaming":
return c.getString(R.string.gaming);
case "trending_music":
return c.getString(R.string.music);
case "trending_movies_and_shows":
return c.getString(R.string.movies);
case "trending_podcasts_episodes":
return c.getString(R.string.podcasts);
default: default:
return kioskId; return kioskId;
} }
@ -77,6 +85,14 @@ public final class KioskTranslator {
return R.drawable.ic_stars; return R.drawable.ic_stars;
case "Radio": case "Radio":
return R.drawable.ic_radio; return R.drawable.ic_radio;
case "trending_gaming":
return R.drawable.ic_videogame_asset;
case "trending_music":
return R.drawable.ic_music_note;
case "trending_movies_and_shows":
return R.drawable.ic_movie;
case "trending_podcasts_episodes":
return R.drawable.ic_podcasts;
default: default:
return 0; return 0;
} }

View File

@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
<path android:fillColor="@android:color/white" android:pathData="M14,12c0,0.74 -0.4,1.38 -1,1.72V22h-2v-8.28c-0.6,-0.35 -1,-0.98 -1,-1.72c0,-1.1 0.9,-2 2,-2S14,10.9 14,12zM12,6c-3.31,0 -6,2.69 -6,6c0,1.74 0.75,3.31 1.94,4.4l1.42,-1.42C8.53,14.25 8,13.19 8,12c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,1.19 -0.53,2.25 -1.36,2.98l1.42,1.42C17.25,15.31 18,13.74 18,12C18,8.69 15.31,6 12,6zM12,2C6.48,2 2,6.48 2,12c0,2.85 1.2,5.41 3.11,7.24l1.42,-1.42C4.98,16.36 4,14.29 4,12c0,-4.41 3.59,-8 8,-8s8,3.59 8,8c0,2.29 -0.98,4.36 -2.53,5.82l1.42,1.42C20.8,17.41 22,14.85 22,12C22,6.48 17.52,2 12,2z"/>
</vector>

View File

@ -868,4 +868,8 @@
<string name="migration_info_6_7_message">SoundCloud has discontinued the original Top 50 charts. The corresponding tab has been removed from your main page.</string> <string name="migration_info_6_7_message">SoundCloud has discontinued the original Top 50 charts. The corresponding tab has been removed from your main page.</string>
<string name="migration_info_7_8_title">YouTube combined trending removed</string> <string name="migration_info_7_8_title">YouTube combined trending removed</string>
<string name="migration_info_7_8_message">YouTube has discontinued the combined trending page as of 21st July 2025. NewPipe replaced the default trending page with the trending livestreams.\n\nYou can also select different ones in the content settings.</string> <string name="migration_info_7_8_message">YouTube has discontinued the combined trending page as of 21st July 2025. NewPipe replaced the default trending page with the trending livestreams.\n\nYou can also select different ones in the content settings.</string>
<string name="gaming">Gaming</string>
<string name="music">Music</string>
<string name="movies">Movies</string>
<string name="podcasts">Podcasts</string>
</resources> </resources>