From bd6690cd2b19c587ea7a3ffb4593a32354693bac Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:41:16 +0900 Subject: [PATCH] fix(YouTube/Theme): revert `reverts background color of More comments icon in live chats` https://github.com/inotia00/ReVanced_Extended/issues/2197 --- .../youtube/layout/theme/BaseThemePatch.kt | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/BaseThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/BaseThemePatch.kt index 303150dd34..d0e95dc1ac 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/BaseThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/BaseThemePatch.kt @@ -5,7 +5,6 @@ import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.annotation.Patch import app.revanced.patches.shared.drawable.DrawableColorPatch import app.revanced.patches.youtube.utils.integrations.Constants.UTILS_PATH -import app.revanced.util.doRecursively import org.w3c.dom.Element @Patch(dependencies = [DrawableColorPatch::class]) @@ -88,24 +87,6 @@ object BaseThemePatch : ResourcePatch() { } } - /** - * Since YouTube 19.20.35, the visibility of the background color of the `More comments` icon in live chat has worsened. - * See ReVanced_Extended#2197 - * - * As a temporary workaround, revert to the colors of YouTube 19.19.39. - */ - context.xmlEditor["res/drawable/live_chat_more_comments_selector.xml"].use { editor -> - editor.file.doRecursively loop@{ node -> - if (node !is Element) return@loop - - node.getAttributeNode("android:color")?.let { attribute -> - if (attribute.textContent == "?ytInvertedBackground") { - attribute.textContent = "?ytThemedBlue" - } - } - } - } - } internal var isMonetPatchIncluded: Boolean = false