From 0568e7f088f5363ed2c6ad3467d4471ca702b933 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Mon, 20 Feb 2023 01:25:41 +0900 Subject: [PATCH] refactor: ReVanced settings UI --- .../revanced/util/resources/ResourceHelper.kt | 1 - .../youtube/settings/host/values/strings.xml | 42 +++++++++---------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/src/main/kotlin/app/revanced/util/resources/ResourceHelper.kt b/src/main/kotlin/app/revanced/util/resources/ResourceHelper.kt index b722bb9d5..9ec28652d 100644 --- a/src/main/kotlin/app/revanced/util/resources/ResourceHelper.kt +++ b/src/main/kotlin/app/revanced/util/resources/ResourceHelper.kt @@ -127,7 +127,6 @@ internal object ResourceHelper { if (attribute.textContent == "@string/about_key" && it.getAttributeNode("app:iconSpaceReserved").textContent == "false") { it.insertNode("Preference", it) { setAttribute("android:title", "@string/revanced_" + key + "_title") - setAttribute("android:summary", "@string/revanced_" + key + "_summary") this.appendChild(ownerDocument.createElement("intent").also { intentNode -> intentNode.setAttribute("android:targetPackage", targetPackage) intentNode.setAttribute("android:data", key) diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index 55b6eeaa2..8dac29a61 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -41,16 +41,16 @@ This time appears in brackets next to the current time. This shows the total video duration minus any segments. Your private user id This should be kept private. This is like a password and should not be shared with anyone. If someone has this, they can impersonate you - hours + hrs Please install MicroG MicroG is not found MicroG does not run in the background "1. Google device registration and Cloud Messaging need to be enabled for notifications. 2. ReVanced needs to be shown as registered under Cloud Messaging. 3. Current State in Cloud Messaging must be Connected." - Notification settings - MicroG settings - minutes + Notification + MicroG + min Choose the segment category "The segment lasts from %02d:%02d to %02d:%02d (%d minutes %02d seconds) Is it ready to submit?" @@ -72,7 +72,7 @@ Is it ready to submit?" New SponsorBlock segment Reset Ads related settings - Ads settings + Ads Album cards are shown from search results Album cards are hidden from search results Hide album cards @@ -262,10 +262,9 @@ Is it ready to submit?" Export settings Report issues or leave suggestions here ReVanced Extended Issue Center - ReVanced Extended specific settings - ReVanced Extended settings + ReVanced Extended General layout related settings - General layout settings + General layout Captions are enabled when playing a video with captioning is enforced "Captions aren't enabled when playing a video with captioning is enforced" Hide auto captions @@ -443,16 +442,16 @@ Is it ready to submit?" Hide time and seekbar Fetch ReVanced settings from saved file Import settings - Bottom player layout settings - Flyout menu layout settings - Fullscreen layout settings - Player layout settings - Seekbar layout settings + Bottom player layout + Flyout menu layout + Fullscreen layout + Player layout + Seekbar layout Miscellaneous related settings - Miscellaneous settings + Miscellaneous Others Other layout related settings - Other layout settings + Other layout Auto repeat button is hidden Auto repeat button is shown Show auto repeat button @@ -466,7 +465,7 @@ Is it ready to submit?" Download button is shown Show download button Overlay button related settings - Overlay button settings + Overlay button Video speed reseted (1.0x) Speed button is hidden Speed button is shown @@ -509,9 +508,8 @@ Since these setting is quite outdated, it may not be valid" Compact like button Dislikes are not shown Dislikes are shown - Return YouTube Dislike + Enable Return YouTube Dislike Dislikes not available (client API limit reached) - Settings for Return YouTube Dislike Return YouTube Dislike Hidden Failed to set quality @@ -522,9 +520,9 @@ 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 settings + SponsorBlock Swipe controls related settings - Swipe controls settings + Swipe controls The amount of threshold for swipe to occur Swipe magnitude threshold The visibility of swipe overlay background @@ -538,7 +536,7 @@ Since these setting is quite outdated, it may not be valid" Video ads are hidden Hide video ads Video related settings - Video settings + Video Failed to add channel %s to the %s whitelist Channel %s was added to the %s whitelist Video Ads @@ -567,7 +565,7 @@ Since these setting is quite outdated, it may not be valid" View guidelines Switched successfully. reload the video Switching mirror API server to main API server.. - seconds + sec Endcards/Credits Credits or when the YouTube endcards appear. Not for spoken conclusions Filler Tangent/Jokes