diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java index 84e2faf8b..6b9665277 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java @@ -23,6 +23,11 @@ public class BaseSettings { public static final EnumSetting REVANCED_LANGUAGE = new EnumSetting<>("revanced_language", AppLanguage.DEFAULT, true, "revanced_language_user_dialog_message"); + /** + * Use the icons declared in the preferences created during patching. If no icons or styles are declared then this setting does nothing. + */ + public static final BooleanSetting SHOW_MENU_ICONS = new BooleanSetting("revanced_show_menu_icons", TRUE, true); + public static final BooleanSetting SPOOF_VIDEO_STREAMS = new BooleanSetting("revanced_spoof_video_streams", TRUE, true, "revanced_spoof_video_streams_user_dialog_message"); public static final EnumSetting SPOOF_VIDEO_STREAMS_LANGUAGE = new EnumSetting<>("revanced_spoof_video_streams_language", AppLanguage.DEFAULT, new AudioStreamLanguageOverrideAvailability()); public static final BooleanSetting SPOOF_STREAMING_DATA_STATS_FOR_NERDS = new BooleanSetting("revanced_spoof_streaming_data_stats_for_nerds", TRUE, parent(SPOOF_VIDEO_STREAMS)); diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/preference/AbstractPreferenceFragment.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/preference/AbstractPreferenceFragment.java index 17646fec9..0a09789c7 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/preference/AbstractPreferenceFragment.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/preference/AbstractPreferenceFragment.java @@ -86,7 +86,6 @@ public abstract class AbstractPreferenceFragment extends PreferenceFragment { } }; - /** * Initialize this instance, and do any custom behavior. *

@@ -95,7 +94,10 @@ public abstract class AbstractPreferenceFragment extends PreferenceFragment { * so all app specific {@link Setting} instances are loaded before this method returns. */ protected void initialize() { - final var identifier = Utils.getResourceIdentifier("revanced_prefs", "xml"); + String preferenceResourceName = BaseSettings.SHOW_MENU_ICONS.get() + ? "revanced_prefs_icons" + : "revanced_prefs"; + final var identifier = Utils.getResourceIdentifier(preferenceResourceName, "xml"); if (identifier == 0) return; addPreferencesFromResource(identifier); diff --git a/extensions/tiktok/src/main/java/app/revanced/extension/tiktok/settings/preference/ReVancedPreferenceFragment.java b/extensions/tiktok/src/main/java/app/revanced/extension/tiktok/settings/preference/ReVancedPreferenceFragment.java index b36dcb79a..c1c48b04c 100644 --- a/extensions/tiktok/src/main/java/app/revanced/extension/tiktok/settings/preference/ReVancedPreferenceFragment.java +++ b/extensions/tiktok/src/main/java/app/revanced/extension/tiktok/settings/preference/ReVancedPreferenceFragment.java @@ -9,7 +9,6 @@ import app.revanced.extension.tiktok.settings.preference.categories.DownloadsPre import app.revanced.extension.tiktok.settings.preference.categories.FeedFilterPreferenceCategory; import app.revanced.extension.tiktok.settings.preference.categories.ExtensionPreferenceCategory; import app.revanced.extension.tiktok.settings.preference.categories.SimSpoofPreferenceCategory; -import org.jetbrains.annotations.NotNull; /** * Preference fragment for ReVanced settings diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/SettingsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/SettingsPatch.kt index d6d9df94c..c8d8bd1ea 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/SettingsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/SettingsPatch.kt @@ -7,6 +7,8 @@ import app.revanced.patches.all.misc.resources.addResources import app.revanced.patches.all.misc.resources.addResourcesPatch import app.revanced.patches.shared.misc.settings.preference.BasePreference import app.revanced.patches.shared.misc.settings.preference.IntentPreference +import app.revanced.patches.shared.misc.settings.preference.PreferenceCategory +import app.revanced.patches.shared.misc.settings.preference.PreferenceScreenPreference import app.revanced.util.ResourceGroup import app.revanced.util.copyResources import app.revanced.util.getNode @@ -36,14 +38,14 @@ fun settingsPatch ( execute { copyResources( "settings", - ResourceGroup("xml", "revanced_prefs.xml"), + ResourceGroup("xml", "revanced_prefs.xml", "revanced_prefs_icons.xml"), ) addResources("shared", "misc.settings.settingsResourcePatch") } finalize { - fun Node.addPreference(preference: BasePreference, prepend: Boolean = false) { + fun Node.addPreference(preference: BasePreference) { preference.serialize(ownerDocument) { resource -> // TODO: Currently, resources can only be added to "values", which may not be the correct place. // It may be necessary to ask for the desired resourceValue in the future. @@ -61,7 +63,7 @@ fun settingsPatch ( val preferenceFileName = "res/xml/$fileName.xml" if (get(preferenceFileName).exists()) { document(preferenceFileName).use { document -> - document.getNode("PreferenceScreen").addPreference(intent, true) + document.getNode("PreferenceScreen").addPreference(intent) } modified = true } @@ -71,6 +73,30 @@ fun settingsPatch ( } // Add all preferences to the ReVanced fragment. + document("res/xml/revanced_prefs_icons.xml").use { document -> + val revancedPreferenceScreenNode = document.getNode("PreferenceScreen") + preferences.forEach { revancedPreferenceScreenNode.addPreference(it) } + } + + // Because the icon preferences require declaring a layout resource, + // there is no easy way to change to the Android default preference layout + // after the preference is inflated. + // Using two different preference files is the simplest and most robust solution. + fun removeIconsAndLayout(preferences: Collection) { + preferences.forEach { preference -> + preference.icon = null + preference.layout = null + + if (preference is PreferenceCategory) { + removeIconsAndLayout(preference.preferences) + } + if (preference is PreferenceScreenPreference) { + removeIconsAndLayout(preference.preferences) + } + } + } + removeIconsAndLayout(preferences) + document("res/xml/revanced_prefs.xml").use { document -> val revancedPreferenceScreenNode = document.getNode("PreferenceScreen") preferences.forEach { revancedPreferenceScreenNode.addPreference(it) } diff --git a/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/preference/BasePreference.kt b/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/preference/BasePreference.kt index a07bdc4fe..5428b3983 100644 --- a/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/preference/BasePreference.kt +++ b/patches/src/main/kotlin/app/revanced/patches/shared/misc/settings/preference/BasePreference.kt @@ -19,10 +19,17 @@ abstract class BasePreference( val key: String? = null, val titleKey: String? = "${key}_title", val summaryKey: String? = "${key}_summary", - val icon: String? = null, - val layout: String? = null, + icon: String? = null, + layout: String? = null, val tag: String ) { + + var icon: String? = icon + internal set + + var layout: String? = layout + internal set + /** * Serialize preference element to XML. * Overriding methods should invoke super and operate on its return value. diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt index 9eca261d1..2d972d917 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt @@ -70,6 +70,8 @@ val returnYouTubeDislikePatch = bytecodePatch( key = "revanced_settings_screen_09", titleKey = "revanced_ryd_settings_title", summaryKey = null, + icon = "@drawable/revanced_settings_screen_09_ryd", + layout = "@layout/preference_with_icon", intent = newIntent("revanced_ryd_settings_intent"), ), ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockPatch.kt index 5e33ebd2d..e9f7e945c 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/sponsorblock/SponsorBlockPatch.kt @@ -48,6 +48,8 @@ private val sponsorBlockResourcePatch = resourcePatch { key = "revanced_settings_screen_10", titleKey = "revanced_sb_settings_title", summaryKey = null, + icon = "@drawable/revanced_settings_screen_10_sb", + layout = "@layout/preference_with_icon", intent = newIntent("revanced_sb_settings_intent"), ), ) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt index 3a84ca69d..8ef699f6b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/settings/SettingsPatch.kt @@ -73,7 +73,22 @@ private val settingsResourcePatch = resourcePatch { appearanceStringId = resourceMappings["string", "app_theme_appearance_dark"] arrayOf( - ResourceGroup("drawable", "revanced_settings_icon.xml"), + ResourceGroup("drawable", + "revanced_settings_icon.xml", + "revanced_settings_screen_00_about.xml", + "revanced_settings_screen_01_ads.xml", + "revanced_settings_screen_02_alt_thumbnails.xml", + "revanced_settings_screen_03_feed.xml", + "revanced_settings_screen_04_general.xml", + "revanced_settings_screen_05_player.xml", + "revanced_settings_screen_06_shorts.xml", + "revanced_settings_screen_07_seekbar.xml", + "revanced_settings_screen_08_swipe_controls.xml", + "revanced_settings_screen_09_ryd.xml", + "revanced_settings_screen_10_sb.xml", + "revanced_settings_screen_11_misc.xml", + "revanced_settings_screen_12_video.xml", + ), ResourceGroup("layout", "revanced_settings_with_toolbar.xml"), ).forEach { resourceGroup -> copyResources("settings", resourceGroup) @@ -159,6 +174,8 @@ val settingsPatch = bytecodePatch( // Add an "about" preference to the top. preferences += NonInteractivePreference( key = "revanced_settings_screen_00_about", + icon = "@drawable/revanced_settings_screen_00_about", + layout = "@layout/preference_with_icon", summaryKey = null, tag = "app.revanced.extension.youtube.settings.preference.ReVancedYouTubeAboutPreference", selectable = true, @@ -170,6 +187,10 @@ val settingsPatch = bytecodePatch( ) } + PreferenceScreen.GENERAL_LAYOUT.addPreferences( + SwitchPreference("revanced_show_menu_icons") + ) + PreferenceScreen.MISC.addPreferences( TextPreference( key = null, @@ -277,37 +298,53 @@ object PreferenceScreen : BasePreferenceScreen() { val ADS = Screen( key = "revanced_settings_screen_01_ads", summaryKey = null, + icon = "@drawable/revanced_settings_screen_01_ads", + layout = "@layout/preference_with_icon", ) val ALTERNATIVE_THUMBNAILS = Screen( key = "revanced_settings_screen_02_alt_thumbnails", summaryKey = null, + icon = "@drawable/revanced_settings_screen_02_alt_thumbnails", + layout = "@layout/preference_with_icon", sorting = Sorting.UNSORTED, ) val FEED = Screen( key = "revanced_settings_screen_03_feed", summaryKey = null, + icon = "@drawable/revanced_settings_screen_03_feed", + layout = "@layout/preference_with_icon", ) val GENERAL_LAYOUT = Screen( key = "revanced_settings_screen_04_general", summaryKey = null, + icon = "@drawable/revanced_settings_screen_04_general", + layout = "@layout/preference_with_icon", ) val PLAYER = Screen( key = "revanced_settings_screen_05_player", summaryKey = null, + icon = "@drawable/revanced_settings_screen_05_player", + layout = "@layout/preference_with_icon", ) val SHORTS = Screen( key = "revanced_settings_screen_06_shorts", summaryKey = null, + icon = "@drawable/revanced_settings_screen_06_shorts", + layout = "@layout/preference_with_icon", ) val SEEKBAR = Screen( key = "revanced_settings_screen_07_seekbar", summaryKey = null, - ) + icon = "@drawable/revanced_settings_screen_07_seekbar", + layout = "@layout/preference_with_icon", + ) val SWIPE_CONTROLS = Screen( key = "revanced_settings_screen_08_swipe_controls", summaryKey = null, + icon = "@drawable/revanced_settings_screen_08_swipe_controls", + layout = "@layout/preference_with_icon", sorting = Sorting.UNSORTED, ) @@ -317,10 +354,14 @@ object PreferenceScreen : BasePreferenceScreen() { val MISC = Screen( key = "revanced_settings_screen_11_misc", summaryKey = null, + icon = "@drawable/revanced_settings_screen_11_misc", + layout = "@layout/preference_with_icon", ) val VIDEO = Screen( key = "revanced_settings_screen_12_video", summaryKey = null, + icon = "@drawable/revanced_settings_screen_12_video", + layout = "@layout/preference_with_icon", sorting = Sorting.BY_KEY, ) diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 7df5fd7d5..d5544dffc 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -43,6 +43,9 @@ Second \"item\" text" ReVanced settings reset to default Imported %d settings Import failed: %s + Show ReVanced setting icons + Setting icons are shown + Setting icons are not shown ReVanced language "Translations for some languages may be missing or incomplete. diff --git a/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy.xml b/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy.xml index 2a5bbc872..1a2ab3629 100644 --- a/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy.xml +++ b/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy.xml @@ -2,7 +2,6 @@ https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/content_copy/materialsymbolsoutlined/content_copy_wght200gradN25_24px.xml Changes made: Icon has been resized. - Copyright 2022 Google Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,12 +18,11 @@ Copyright 2022 Google --> + android:pathData="M9.73481,16.9424 Q9.13812,16.9424,8.72859,16.5425 Q8.3191,16.1426,8.3191,15.5599 L8.3191,5.88248 Q8.3191,5.29979,8.7286,4.89988 Q9.13812,4.5,9.73481,4.5 L16.8843,4.5 Q17.481,4.5,17.8905,4.89988 Q18.3,5.29979,18.3,5.88248 L18.3,15.5599 Q18.3,16.1426,17.8905,16.5425 Q17.481,16.9424,16.8843,16.9424 Z M9.73481,16.1129 L16.8843,16.1129 Q17.0967,16.1129,17.2736,15.9401 Q17.4506,15.7673,17.4506,15.5599 L17.4506,5.88248 Q17.4506,5.6751,17.2736,5.50229 Q17.0966,5.32949,16.8843,5.32949 L9.73481,5.32949 Q9.52248,5.32949,9.34549,5.50229 Q9.16854,5.6751,9.16854,5.88248 L9.16854,15.5599 Q9.16854,15.7673,9.34549,15.9401 Q9.52248,16.1129,9.73481,16.1129 Z M7.11572,19.5 Q6.51902,19.5,6.1095,19.1001 Q5.7,18.7002,5.7,18.1175 L5.7,7.61058 L6.54944,7.61058 L6.54944,18.1175 Q6.54944,18.3249,6.72639,18.4977 Q6.90336,18.6705,7.11572,18.6705 L15.1146,18.6705 L15.1146,19.5 Z M9.16854,16.1129 L9.16854,5.32949 Z"/> diff --git a/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy_timestamp.xml b/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy_timestamp.xml index 7fb608414..de5835b5b 100644 --- a/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy_timestamp.xml +++ b/patches/src/main/resources/copyvideourl/drawable/revanced_yt_copy_timestamp.xml @@ -1,8 +1,7 @@ + android:pathData="M15.75,12.5 C15.2313,12.5,14.7434,12.5981,14.2871,12.7949 C13.8309,12.9918,13.4351,13.2601,13.0976,13.5976 C12.7601,13.9351,12.4917,14.3308,12.2949,14.7871 C12.098,15.2434,12,15.7313,12,16.25 C12,16.7687,12.0981,17.2566,12.2949,17.7129 C12.4918,18.1691,12.7601,18.5649,13.0976,18.9024 C13.4351,19.2399,13.8308,19.5083,14.2871,19.7051 C14.7434,19.902,15.2313,20,15.75,20 C16.2687,20,16.7566,19.9019,17.2129,19.7051 C17.6691,19.5082,18.0649,19.2399,18.4024,18.9024 C18.7399,18.5649,19.0083,18.1692,19.2051,17.7129 C19.402,17.2566,19.5,16.7687,19.5,16.25 C19.5,15.7313,19.402,15.2434,19.2051,14.7871 C19.0082,14.3309,18.7398,13.9352,18.4023,13.5977 C18.0648,13.2602,17.6691,12.9918,17.2129,12.7949 C16.7566,12.598,16.2687,12.5,15.75,12.5 Z M15.75,13.25 C16.5812,13.25,17.2887,13.5426,17.873,14.127 C18.4574,14.7113,18.75,15.4188,18.75,16.25 C18.75,17.0812,18.4574,17.7887,17.873,18.373 C17.2887,18.9574,16.5812,19.25,15.75,19.25 C14.9188,19.25,14.2113,18.9574,13.627,18.373 C13.0426,17.7887,12.75,17.0812,12.75,16.25 C12.75,15.4188,13.0426,14.7113,13.627,14.127 C14.2113,13.5426,14.9188,13.25,15.75,13.25 Z M15.375,14.375 L15.375,16.4004 L16.9883,18.0117 L17.5117,17.4883 L16.125,16.0996 L16.125,14.375 Z" /> + diff --git a/patches/src/main/resources/downloads/drawable/revanced_yt_download_button.xml b/patches/src/main/resources/downloads/drawable/revanced_yt_download_button.xml index cefb27095..18d0944b0 100644 --- a/patches/src/main/resources/downloads/drawable/revanced_yt_download_button.xml +++ b/patches/src/main/resources/downloads/drawable/revanced_yt_download_button.xml @@ -2,7 +2,6 @@ https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/download/materialsymbolsoutlined/download_wght200gradN25_24px.xml Changes made: Icon has been resized. - Copyright 2022 Google Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,7 +18,6 @@ Copyright 2022 Google --> - + - \ No newline at end of file + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_00_about.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_00_about.xml new file mode 100644 index 000000000..9bdf13b8d --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_00_about.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_01_ads.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_01_ads.xml new file mode 100644 index 000000000..7bd02f36d --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_01_ads.xml @@ -0,0 +1,27 @@ + + + + + \ No newline at end of file diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_02_alt_thumbnails.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_02_alt_thumbnails.xml new file mode 100644 index 000000000..06a560484 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_02_alt_thumbnails.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_03_feed.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_03_feed.xml new file mode 100644 index 000000000..d54fe5f1f --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_03_feed.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_04_general.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_04_general.xml new file mode 100644 index 000000000..a2d9eadb7 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_04_general.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_05_player.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_05_player.xml new file mode 100644 index 000000000..a2af26781 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_05_player.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_06_shorts.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_06_shorts.xml new file mode 100644 index 000000000..f1383e107 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_06_shorts.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_07_seekbar.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_07_seekbar.xml new file mode 100644 index 000000000..85897e068 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_07_seekbar.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_08_swipe_controls.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_08_swipe_controls.xml new file mode 100644 index 000000000..431ffee71 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_08_swipe_controls.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_09_ryd.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_09_ryd.xml new file mode 100644 index 000000000..80da556ca --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_09_ryd.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_10_sb.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_10_sb.xml new file mode 100644 index 000000000..fd9959714 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_10_sb.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_11_misc.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_11_misc.xml new file mode 100644 index 000000000..455a6d642 --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_11_misc.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/drawable/revanced_settings_screen_12_video.xml b/patches/src/main/resources/settings/drawable/revanced_settings_screen_12_video.xml new file mode 100644 index 000000000..e51a3314e --- /dev/null +++ b/patches/src/main/resources/settings/drawable/revanced_settings_screen_12_video.xml @@ -0,0 +1,27 @@ + + + + + diff --git a/patches/src/main/resources/settings/xml/revanced_prefs_icons.xml b/patches/src/main/resources/settings/xml/revanced_prefs_icons.xml new file mode 100644 index 000000000..66304a5c0 --- /dev/null +++ b/patches/src/main/resources/settings/xml/revanced_prefs_icons.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/patches/src/main/resources/speedbutton/drawable/revanced_playback_speed_dialog_button.xml b/patches/src/main/resources/speedbutton/drawable/revanced_playback_speed_dialog_button.xml index f8b2d8664..114da2a5d 100644 --- a/patches/src/main/resources/speedbutton/drawable/revanced_playback_speed_dialog_button.xml +++ b/patches/src/main/resources/speedbutton/drawable/revanced_playback_speed_dialog_button.xml @@ -2,7 +2,6 @@ https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/slow_motion_video/materialsymbolsoutlined/slow_motion_video_wght200gradN25_24px.xml Changes made: Icon has been resized. - Copyright 2022 Google Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,7 +18,6 @@ Copyright 2022 Google --> + android:width="30dp" + android:height="30dp" + android:viewportWidth="30" + android:viewportHeight="30"> + android:pathData="M15,17.5 C15.707,17.5,16.2969,17.2578,16.7773,16.7773 C17.2578,16.2969,17.5,15.707,17.5,15 C17.5,14.293,17.2578,13.7031,16.7773,13.2227 C16.2969,12.7422,15.707,12.5,15,12.5 C14.293,12.5,13.7031,12.7422,13.2227,13.2227 C12.7422,13.7031,12.5,14.293,12.5,15 C12.5,15.707,12.7422,16.2969,13.2227,16.7773 C13.7031,17.2578,14.293,17.5,15,17.5 Z M15.0039,26.25 C13.4492,26.25,11.9844,25.9531,10.6172,25.3633 C9.24609,24.7734,8.05469,23.9727,7.04297,22.9609 C6.03125,21.9492,5.22656,20.7578,4.63672,19.3906 C4.04688,18.0234,3.75,16.5586,3.75,15.0039 C3.75,13.4492,4.04688,11.9844,4.63672,10.6172 C5.22656,9.24609,6.02734,8.05469,7.03906,7.04297 C8.05078,6.03125,9.24219,5.22656,10.6094,4.63672 C11.9766,4.04688,13.4414,3.75,14.9961,3.75 C16.5508,3.75,18.0156,4.04688,19.3828,4.63672 C20.7539,5.22656,21.9453,6.02734,22.957,7.03906 C23.9688,8.05078,24.7734,9.24219,25.3633,10.6094 C25.9531,11.9766,26.25,13.4414,26.25,14.9961 C26.25,16.5508,25.9531,18.0156,25.3633,19.3828 C24.7734,20.7539,23.9727,21.9453,22.9609,22.957 C21.9492,23.9688,20.7578,24.7734,19.3906,25.3633 C18.0234,25.9531,16.5586,26.25,15.0039,26.25 Z M15,25 C17.793,25,20.1563,24.0313,22.0938,22.0938 C24.0313,20.1563,25,17.793,25,15 C25,12.207,24.0313,9.84375,22.0938,7.90625 C20.1563,5.96875,17.793,5,15,5 C12.207,5,9.84375,5.96875,7.90625,7.90625 C5.96875,9.84375,5,12.207,5,15 C5,17.793,5.96875,20.1563,7.90625,22.0938 C9.84375,24.0313,12.207,25,15,25 Z M15,15 Z M15,15"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_backward.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_backward.xml index 495c29d6a..d1c043cec 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_backward.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_backward.xml @@ -1,7 +1,6 @@ + android:width="30dp" + android:height="30dp" + android:viewportWidth="30" + android:viewportHeight="30"> + android:pathData="M24.8789,20.7695 L16.2266,15 L24.8789,9.23047 Z M13.7734,20.7695 L5.12109,15 L13.7734,9.23047 Z M12.5234,15 Z M23.6289,15 Z M12.5234,18.4375 L12.5234,11.5625 L7.35938,15 Z M23.6289,18.4375 L23.6289,11.5625 L18.4648,15 Z M23.6289,18.4375"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_compare.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_compare.xml index 04f3ecc1b..3ea5a9a21 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_compare.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_compare.xml @@ -1,7 +1,6 @@ + android:width="30dp" + android:height="30dp" + android:viewportWidth="30" + android:viewportHeight="30"> + android:pathData="M13.75,27.7891 L13.75,25 L7.01953,25 C6.44531,25,5.96484,24.8086,5.57813,24.4219 C5.19141,24.0352,5,23.5547,5,22.9805 L5,7.01953 C5,6.44531,5.19141,5.96484,5.57813,5.57813 C5.96484,5.19141,6.44531,5,7.01953,5 L13.75,5 L13.75,2.21094 L15,2.21094 L15,27.7891 Z M6.25,22.5 L13.75,22.5 L13.75,13.5078 Z M17.5,25 L17.5,15 L23.75,22.5 L23.75,7.01953 C23.75,6.82813,23.668,6.65234,23.5078,6.49219 C23.3477,6.33203,23.1719,6.25,22.9805,6.25 L17.5,6.25 L17.5,5 L22.9805,5 C23.5547,5,24.0352,5.19141,24.4219,5.57813 C24.8086,5.96484,25,6.44531,25,7.01953 L25,22.9805 C25,23.5547,24.8086,24.0352,24.4219,24.4219 C24.0352,24.8086,23.5547,25,22.9805,25 Z M17.5,25"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_edit.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_edit.xml index 1e1d8e378..97d77ecfe 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_edit.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_edit.xml @@ -1,7 +1,6 @@ + android:width="30dp" + android:height="30dp" + android:viewportWidth="30" + android:viewportHeight="30"> + android:pathData="M6.25,23.75 L7.62109,23.75 L20.9961,10.3789 L19.6211,9.00391 L6.25,22.3789 Z M5,25 L5,21.8516 L21.4766,5.35938 C21.6055,5.24219,21.7461,5.15625,21.8984,5.09375 C22.0547,5.03125,22.2148,5,22.3828,5 C22.5508,5,22.7148,5.02734,22.8711,5.07813 C23.0313,5.13281,23.1758,5.22656,23.3086,5.36719 L24.6406,6.70703 C24.7813,6.83984,24.875,6.98438,24.9258,7.14453 C24.9766,7.30469,25,7.46094,25,7.62109 C25,7.78906,24.9727,7.95313,24.9141,8.10547 C24.8555,8.26172,24.7656,8.40234,24.6406,8.53125 L8.14844,25 Z M23.7734,7.61719 L22.3828,6.22656 Z M20.2969,9.70313 L19.6211,9.00391 L20.9961,10.3789 Z M20.2969,9.70313"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_forward.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_forward.xml index c7e550b55..5abc73702 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_forward.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_forward.xml @@ -1,7 +1,6 @@ + android:width="30dp" + android:height="30dp" + android:viewportWidth="30" + android:viewportHeight="30"> + android:pathData="M5.12109,20.7695 L5.12109,9.23047 L13.7734,15 Z M16.2266,20.7695 L16.2266,9.23047 L24.8789,15 Z M6.37109,15 Z M17.4766,15 Z M6.37109,18.4375 L11.5352,15 L6.37109,11.5625 Z M17.4766,18.4375 L22.6406,15 L17.4766,11.5625 Z M17.4766,18.4375"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_logo.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_logo.xml index 79383e677..6b55b0da9 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_logo.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_logo.xml @@ -1,14 +1,11 @@ + android:width="32dp" + android:height="32dp" + android:viewportWidth="32" + android:viewportHeight="32"> + android:pathData="M15.4375,25.332 L15.4375,13.3281 L12.1602,16.6055 L11.3516,15.8086 L16,11.1602 L20.6484,15.8086 L19.8398,16.6055 L16.5625,13.3281 L16.5625,25.332 Z M6.66797,12.082 L6.66797,8.61719 C6.66797,8.07031,6.85547,7.60938,7.23047,7.23047 C7.60938,6.85547,8.07031,6.66797,8.61719,6.66797 L23.3828,6.66797 C23.9297,6.66797,24.3906,6.85547,24.7695,7.23047 C25.1445,7.60938,25.332,8.07031,25.332,8.61719 L25.332,12.082 L24.2031,12.082 L24.2031,8.61719 C24.2031,8.41016,24.1211,8.22266,23.9492,8.05078 C23.7773,7.87891,23.5898,7.79688,23.3828,7.79688 L8.61719,7.79688 C8.41016,7.79688,8.22266,7.87891,8.05078,8.05078 C7.87891,8.22266,7.79688,8.41016,7.79688,8.61719 L7.79688,12.082 Z M6.66797,12.082"/> diff --git a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_voting.xml b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_voting.xml index d7b0cc470..5c62953f4 100644 --- a/patches/src/main/resources/sponsorblock/drawable/revanced_sb_voting.xml +++ b/patches/src/main/resources/sponsorblock/drawable/revanced_sb_voting.xml @@ -2,7 +2,6 @@ https://github.com/google/material-design-icons/blob/9beae745bb758f3ad56654fb377ea5cf62be4915/symbols/android/thumbs_up_down/materialsymbolsoutlined/thumbs_up_down_wght300gradN25_24px.xml Changes made: Icon has been resized. - Copyright 2022 Google Licensed under the Apache License, Version 2.0 (the "License"); @@ -19,12 +18,11 @@ Copyright 2022 Google --> + android:pathData="M3.35592,13.078 Q2.78443,13.078,2.3922,12.6903 Q2,12.3025,2,11.722 L2,6.56351 Q2,6.41555,2.06101,6.27218 Q2.12205,6.1288,2.24535,6.0055 L6.25085,2 L6.59321,2.34236 Q6.67361,2.42442,6.73002,2.53108 Q6.78645,2.63775,6.78645,2.72542 L6.78645,2.85423 L6.02035,6.16271 L10.3263,6.16271 Q10.8502,6.16271,11.1979,6.51356 Q11.5457,6.86441,11.5457,7.38304 L11.5457,7.65478 Q11.5457,7.79152,11.5237,7.89286 Q11.5017,7.99417,11.4576,8.1017 L9.53559,12.5492 Q9.42135,12.8012,9.21194,12.9396 Q9.00255,13.078,8.73444,13.078 Z M8.7695,12.2644 L10.7322,7.67796 L10.7322,7.51863 Q10.7322,7.28983,10.5796,7.13304 Q10.4271,6.97627,10.1898,6.97627 L5.04068,6.97627 L5.75931,3.65171 L2.81356,6.60086 L2.81356,11.722 Q2.81356,11.9593,2.9661,12.1118 Q3.11864,12.2643,3.35592,12.2643 Z M17.7491,22 L17.4037,21.6569 Q17.3295,21.5814,17.2715,21.4747 Q17.2135,21.368,17.2135,21.2741 L17.2135,21.1458 L17.9796,17.8373 L13.6736,17.8373 Q13.1497,17.8373,12.802,17.4907 Q12.4542,17.1441,12.4542,16.617 L12.4542,16.3528 Q12.4542,16.217,12.4762,16.117 Q12.4982,16.017,12.5423,15.8984 L14.4643,11.4509 Q14.5762,11.2085,14.7838,11.0653 Q14.9914,10.9221,15.2643,10.9221 L20.644,10.9221 Q21.2155,10.9221,21.6077,11.3143 Q22,11.7065,22,12.278 L22,17.4373 Q22,17.5967,21.936,17.7404 Q21.872,17.8841,21.7525,17.9967 Z M15.2305,11.7356 L13.2678,16.322 L13.2678,16.4813 Q13.2678,16.7186,13.4203,16.8711 Q13.5728,17.0236,13.8101,17.0236 L18.9592,17.0236 L18.2406,20.3566 L21.1864,17.4075 L21.1864,12.2778 Q21.1864,12.049,21.0339,11.8922 Q20.8814,11.7354,20.6441,11.7354 Z M2.81356,11.722 L2.81356,6.60086 L2.81356,12.2644 Z M21.1864,12.278 L21.1864,17.4077 L21.1864,11.7357 Z"/> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_auto.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_auto.xml index 252a97982..151ebcc4e 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_auto.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_auto.xml @@ -20,8 +20,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_full.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_full.xml index c0d45293c..3734e8e39 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_full.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_full.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_high.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_high.xml index fe45b31be..73440402e 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_high.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_high.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_low.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_low.xml index 66010e253..2b330d4a6 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_low.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_low.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_medium.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_medium.xml index fc191d25e..af67c5ec7 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_medium.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_brightness_medium.xml @@ -20,8 +20,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_high.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_high.xml index 5dfb76a0e..a135d4198 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_high.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_high.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_low.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_low.xml index e52b1fe4a..fcbbd9982 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_low.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_low.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_mute.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_mute.xml index 59b9e72e4..f6dd48bb2 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_mute.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_mute.xml @@ -20,8 +20,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24"> diff --git a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_normal.xml b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_normal.xml index 602cd2a64..bb3d4005a 100644 --- a/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_normal.xml +++ b/patches/src/main/resources/swipecontrols/drawable/revanced_ic_sc_volume_normal.xml @@ -21,8 +21,7 @@ Copyright 2022 Google android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24" - android:tint="?attr/colorControlNormal"> + android:viewportHeight="24">