Skip to content

Commit

Permalink
feat(YouTube Music/Navigation bar components): do not use hardcoded c…
Browse files Browse the repository at this point in the history
…olor `Enable black navigation bar` setting is turned off inotia00/ReVanced_Extended#2440
  • Loading branch information
inotia00 committed Oct 20, 2024
1 parent 0a24483 commit 194ca27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ object SettingsPatch : BaseResourcePatch(
setVersionInfo()

/**
* copy strings
* copy arrays, colors and strings
*/
context.copyXmlNode("music/settings/host", "values/strings.xml", "resources")
arrayOf(
"arrays.xml",
"colors.xml",
"strings.xml"
).forEach { xmlFile ->
context.copyXmlNode("music/settings/host", "values/$xmlFile", "resources")
}

/**
* hide divider
Expand All @@ -85,11 +91,6 @@ object SettingsPatch : BaseResourcePatch(
)
)

/**
* Copy arrays
*/
contexts.copyXmlNode("music/settings/host", "values/arrays.xml", "resources")

/**
* Copy colors
*/
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/music/settings/host/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="revanced_color_grey_12">#ff1d1d1d</color>
</resources>

0 comments on commit 194ca27

Please sign in to comment.