From e9bd106114c1669426d10830b544d7936a0728a1 Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:18:52 +0300 Subject: [PATCH] fix(YouTube - Seekbr components): Reverse start and end colors for Cairo seekbar --- .../patches/youtube/player/seekbar/SeekbarComponentsPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt index af643db09..15f6c6d0a 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/player/seekbar/SeekbarComponentsPatch.kt @@ -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 } }