mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
feat(YouTube/Custom branding icon): add patch option YouTube (Minimal header)
(#83)
* add minimal yt icon * add minimal yt icon * Update VisualPreferencesIconsPatch.kt * add new choice for settings icon * repalce png turned vector drawables with vector drawables * add splash * add splash * make premium header minimal * rename to yt_minimal * change patch option name * fix compile error * fix: match icons * use more appropriate icon --------- Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
@ -30,7 +30,8 @@ object CustomBrandingIconPatch : BaseResourcePatch(
|
||||
"MMT" to "mmt",
|
||||
"Revancify Blue" to DEFAULT_ICON,
|
||||
"Revancify Red" to "revancify_red",
|
||||
"YouTube" to "youtube"
|
||||
"YouTube" to "youtube",
|
||||
"YouTube (Minimal header)" to "youtube_minimal_header"
|
||||
)
|
||||
|
||||
private val sizeArray = arrayOf(
|
||||
|
@ -32,6 +32,7 @@ object VisualPreferencesIconsPatch : BaseResourcePatch(
|
||||
"Custom branding icon" to "custom_branding_icon",
|
||||
"Extension" to DEFAULT_ICON,
|
||||
"Gear" to "gear",
|
||||
"YT alt" to "yt_alt",
|
||||
"ReVanced" to "revanced",
|
||||
"ReVanced Colored" to "revanced_colored",
|
||||
),
|
||||
|
@ -26,6 +26,8 @@ fun PatchOption<String>.lowerCaseOrThrow() = valueOrThrow()
|
||||
|
||||
fun PatchOption<String>.underBarOrThrow() = lowerCaseOrThrow()
|
||||
.replace(" ", "_")
|
||||
.replace("(", "")
|
||||
.replace(")", "")
|
||||
|
||||
fun Node.adoptChild(tagName: String, block: Element.() -> Unit) {
|
||||
val child = ownerDocument.createElement(tagName)
|
||||
|
Reference in New Issue
Block a user