add custom-branding-icon-revancify-red
patch
@ -0,0 +1,31 @@
|
||||
package app.revanced.patches.youtube.layout.etc.branding.icon.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
import app.revanced.patcher.data.ResourceContext
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.shared.annotation.YouTubeCompatibility
|
||||
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.util.resources.IconHelper.customIcon
|
||||
import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
|
||||
|
||||
@Patch(false)
|
||||
@Name("custom-branding-icon-revancify-red")
|
||||
@Description("Changes the YouTube launcher icon to Revancify Red.")
|
||||
@DependsOn([SettingsPatch::class])
|
||||
@YouTubeCompatibility
|
||||
@Version("0.0.1")
|
||||
class CustomBrandingIconRevancifyRedPatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
context.customIcon("revancify-red")
|
||||
context.updatePatchStatusIcon("revancify_red")
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 539 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 362 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 700 B |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,18 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:pathData="M31.11,48.3C31.26,43.28 34.46,38.94 39.42,38.11C43.04,37.51 47.9,37 54,37C60.1,37 64.96,37.51 68.58,38.11C73.54,38.94 76.74,43.28 76.89,48.3C76.96,50.26 77,52.28 77,54C77,55.72 76.96,57.74 76.89,59.7C76.74,64.72 73.54,69.06 68.58,69.89C64.96,70.49 60.1,71 54,71C47.9,71 43.04,70.49 39.42,69.89C34.46,69.06 31.26,64.72 31.11,59.7C31.05,57.74 31,55.72 31,54C31,52.28 31.05,50.26 31.11,48.3Z"
|
||||
android:strokeWidth="5"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#000000"/>
|
||||
<path
|
||||
android:pathData="M49,49.06C49,45.94 52.21,43.99 54.77,45.55L62.08,49.99C64.64,51.55 64.64,55.45 62.08,57.01L54.77,61.45C52.21,63.01 49,61.06 49,57.94L49,49.06Z"
|
||||
android:fillColor="#000000"
|
||||
android:fillAlpha="0.5"/>
|
||||
<path
|
||||
android:pathData="M43,50.86C43,48.66 45.35,47.29 47.23,48.39L52.59,51.52C54.47,52.62 54.47,55.38 52.59,56.48L47.23,59.61C45.35,60.71 43,59.34 43,57.14L43,50.86Z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
@ -52,6 +52,7 @@
|
||||
<string name="revanced_icons_default">stock</string>
|
||||
<string name="revanced_icons_custom">custom</string>
|
||||
<string name="revanced_icons_mmt">mmt</string>
|
||||
<string name="revanced_icons_revancify_red">revancify / red</string>
|
||||
<string name="revanced_labels_default">stock</string>
|
||||
<string name="revanced_patches_excluded">Excluded</string>
|
||||
<string name="revanced_patches_included">Included</string>
|
||||
|