mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-22 19:09:12 +02:00
fix(YouTube/Theme): revert reverts background color of More comments icon in live chats
https://github.com/inotia00/ReVanced_Extended/issues/2197
This commit is contained in:
parent
435154cae3
commit
bd6690cd2b
@ -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 <a href="https://github.com/inotia00/ReVanced_Extended/issues/2197">ReVanced_Extended#2197</a>
|
||||
*
|
||||
* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user