mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-02 15:44:37 +02:00
feat(microg): custom-branding-microg-revancify-blue
patch
This commit is contained in:
parent
36f7eeb30d
commit
c4e5b35b40
@ -0,0 +1,25 @@
|
||||
package app.revanced.patches.microg.layout.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.*
|
||||
import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patches.shared.annotation.MicroGCompatibility
|
||||
import app.revanced.util.resources.MicroGResourceUtils.copyFiles
|
||||
|
||||
@Patch(false)
|
||||
@Name("custom-branding-microg-revancify-blue")
|
||||
@Description("Changes the MicroG launcher icon to Revancify Blue.")
|
||||
@MicroGCompatibility
|
||||
@Version("0.0.1")
|
||||
class CustomBrandingIconRevancifyBluePatch : ResourcePatch {
|
||||
override fun execute(context: ResourceContext): PatchResult {
|
||||
|
||||
context.copyFiles("microg/branding/revancify-blue")
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<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,45.68C31,40.55 36.34,37.34 40.62,39.9L52.79,47.22C57.07,49.79 57.07,56.21 52.79,58.78L40.62,66.1C36.34,68.66 31,65.45 31,60.32L31,45.68Z"
|
||||
android:fillColor="#000000"
|
||||
android:fillAlpha="0.5"/>
|
||||
<path
|
||||
android:pathData="M70.26,41.62C67.42,39.74 64,38.82 60.56,39.03C57.12,39.23 53.84,40.54 51.25,42.74C48.67,44.95 46.91,47.93 46.27,51.21C45.63,54.49 46.14,57.88 47.71,60.85C49.28,63.82 51.84,66.19 54.96,67.6C58.09,69.01 61.61,69.37 64.97,68.62C68.34,67.87 71.34,66.06 73.52,63.47C75.03,61.68 76.08,59.59 76.61,57.37C77,55.73 75.61,54.33 73.93,54.33H63.61"
|
||||
android:strokeWidth="6"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#000000"
|
||||
android:strokeLineCap="round"/>
|
||||
</vector>
|
@ -0,0 +1,32 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="512"
|
||||
android:viewportHeight="512">
|
||||
<group android:scaleX="0.6864"
|
||||
android:scaleY="0.6864"
|
||||
android:translateX="75.400536"
|
||||
android:translateY="80.2816">
|
||||
<path
|
||||
android:pathData="M90,203.21C90,166.15 130.18,142.99 162.32,161.52L253.9,214.31C286.04,232.84 286.04,279.16 253.89,297.69L162.32,350.48C130.18,369.01 90,345.85 90,308.79L90,203.21Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="90"
|
||||
android:startY="256"
|
||||
android:endX="278"
|
||||
android:endY="256"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF83D2FF"/>
|
||||
<item android:offset="1" android:color="#FFAC43FF"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M374.18,165.24C353.98,151.42 329.76,144.72 305.33,146.2C280.89,147.69 257.66,157.28 239.29,173.46C220.93,189.64 208.48,211.47 203.92,235.52C199.37,259.56 202.96,284.44 214.13,306.21C225.3,327.99 243.42,345.42 265.61,355.74C287.8,366.06 312.81,368.69 336.66,363.2C360.51,357.72 381.86,344.44 397.31,325.47C410.61,309.14 418.9,289.41 421.3,268.64C421.94,263.06 417.39,258.44 411.78,258.44H326.94"
|
||||
android:strokeWidth="40"
|
||||
android:fillColor="#00000000"
|
||||
android:strokeColor="#ffffff"
|
||||
android:strokeLineCap="round"/>
|
||||
</group>
|
||||
</vector>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_microg_launcher_background"/>
|
||||
<foreground android:drawable="@drawable/ic_microg_launcher_foreground"/>
|
||||
<monochrome android:drawable="@drawable/ic_app_icons_themed_microg" />
|
||||
</adaptive-icon>
|
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_microg_launcher_background">#000000</color>
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user