Skip to content

Commit

Permalink
fix(YouTube - Seekbr components): Reverse start and end colors for Ca…
Browse files Browse the repository at this point in the history
…iro seekbar
  • Loading branch information
anddea committed Dec 12, 2024
1 parent e4e51f5 commit e9bd106
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ val seekbarComponentsPatch = bytecodePatch(
getContext().document("res/values/colors.xml").use { document ->
document.doRecursively loop@{ node ->
if (node is Element && node.tagName == "color") {
if (node.getAttribute("name") == "yt_youtube_magenta") {
if (node.getAttribute("name") == "yt_youtube_red_cairo") {
node.textContent = cairoStartColor
}
if (node.getAttribute("name") == "yt_youtube_red_cairo") {
if (node.getAttribute("name") == "yt_youtube_magenta") {
node.textContent = cairoEndColor
}
}
Expand Down

0 comments on commit e9bd106

Please sign in to comment.