From fd3611c862638e15b99ff3dc0d864d7dd945852e Mon Sep 17 00:00:00 2001 From: inotia00 Date: Tue, 21 Feb 2023 23:34:15 +0900 Subject: [PATCH] refactor: ReVanced settings UI (remove `settings` label in title and remove summary) --- .../app/revanced/util/resources/MusicResourceHelper.kt | 1 - src/main/resources/music/settings/host/values/strings.xml | 3 +-- .../resources/youtube/settings/host/values/strings.xml | 5 ----- .../resources/youtube/settings/values-v21/strings.xml | 8 ++++++++ 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/app/revanced/util/resources/MusicResourceHelper.kt b/src/main/kotlin/app/revanced/util/resources/MusicResourceHelper.kt index 86698e309..da7600eff 100644 --- a/src/main/kotlin/app/revanced/util/resources/MusicResourceHelper.kt +++ b/src/main/kotlin/app/revanced/util/resources/MusicResourceHelper.kt @@ -87,7 +87,6 @@ internal object MusicResourceHelper { .forEach { it.adoptChild(YOUTUBE_MUSIC_PREFERENCE_TAG_NAME) { setAttribute("android:title", "@string/$key" + "_title") - setAttribute("android:summary", "@string/$key" + "_summary") setAttribute("android:key", key) setAttribute("android:defaultValue", defaultValue) } diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml index 15da64399..1450e89cc 100644 --- a/src/main/resources/music/settings/host/values/strings.xml +++ b/src/main/resources/music/settings/host/values/strings.xml @@ -21,8 +21,7 @@ Enable tablet mode Adds a grey tint to the video player to reduce eye strain. Enable zen mode - ReVanced Extended specific settings - ReVanced Extended settings + ReVanced Extended Hides the cast button at the top of the homepage and at the top of the player. Hide cast button "Hides the music category bar at the top of the homepage. diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index 8dac29a61..db7793440 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -49,7 +49,6 @@ 2. ReVanced needs to be shown as registered under Cloud Messaging. 3. Current State in Cloud Messaging must be Connected." Notification - MicroG min Choose the segment category "The segment lasts from %02d:%02d to %02d:%02d (%d minutes %02d seconds) @@ -262,7 +261,6 @@ Is it ready to submit?" Export settings Report issues or leave suggestions here ReVanced Extended Issue Center - ReVanced Extended General layout related settings General layout Captions are enabled when playing a video with captioning is enforced @@ -499,7 +497,6 @@ If you enable this setting, the following features are not available: Since these setting is quite outdated, it may not be valid" Dislike data is provided by the Return YouTube Dislike API. Tap here to learn more. - ReturnYouTubeDislike.com Dislikes shown as number Dislikes shown as percentage Dislikes as percentage @@ -510,7 +507,6 @@ Since these setting is quite outdated, it may not be valid" Dislikes are shown Enable Return YouTube Dislike Dislikes not available (client API limit reached) - Return YouTube Dislike Hidden Failed to set quality No internet connection @@ -520,7 +516,6 @@ Since these setting is quite outdated, it may not be valid" Failed to change default WI-FI quality Changing default speed to: SponsorBlock related settings - SponsorBlock Swipe controls related settings Swipe controls The amount of threshold for swipe to occur diff --git a/src/main/resources/youtube/settings/values-v21/strings.xml b/src/main/resources/youtube/settings/values-v21/strings.xml index e0d37caa8..3912c0d2e 100644 --- a/src/main/resources/youtube/settings/values-v21/strings.xml +++ b/src/main/resources/youtube/settings/values-v21/strings.xml @@ -1,7 +1,10 @@ + MicroG + @string/settings_ie + ReVanced Extended @string/revanced_hide_button_live_chat_summary_off @string/revanced_hide_button_live_chat_summary_on @string/revanced_hide_button_live_chat_title @@ -13,6 +16,11 @@ stock Excluded Included + + ReturnYouTubeDislike.com + Return YouTube Dislike + SponsorBlock + amoled stock materialyou