From dde92cd1ee71132d301e37746103e4e443c6161f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 29 Dec 2022 18:40:28 +0100 Subject: [PATCH] refactor(youtube/theme): apply default formatting --- .../patches/youtube/layout/theme/patch/ThemePatch.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt index b70466776..7b50a3609 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/theme/patch/ThemePatch.kt @@ -32,8 +32,7 @@ class ThemePatch : ResourcePatch { val node = resourcesNode.childNodes.item(i) as? Element ?: continue node.textContent = when (node.getAttribute("name")) { - "yt_black0", "yt_black1", "yt_black1_opacity95", "yt_black1_opacity98", "yt_black2", "yt_black3", - "yt_black4", "yt_status_bar_background_dark", "material_grey_850" -> darkThemeBackgroundColor + "yt_black0", "yt_black1", "yt_black1_opacity95", "yt_black1_opacity98", "yt_black2", "yt_black3", "yt_black4", "yt_status_bar_background_dark", "material_grey_850" -> darkThemeBackgroundColor "yt_white1", "yt_white1_opacity95", "yt_white1_opacity98", "yt_white2", "yt_white3", "yt_white4", -> lightThemeBackgroundColor @@ -46,8 +45,7 @@ class ThemePatch : ResourcePatch { // copies the resource file to change the splash screen color context.copyResources( - "theme", - ResourceUtils.ResourceGroup("values-night-v31", "styles.xml") + "theme", ResourceUtils.ResourceGroup("values-night-v31", "styles.xml") ) return PatchResultSuccess()