ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.22k stars 260 forks source link

feat (Universal) - Add `Implement Monet` patch for Universal #3612

Open vippium opened 1 week ago

vippium commented 1 week ago

Feature description

This patch will add a Monet Icon by understanding the icon color science. There can be 2 sub-components or sub-settings for the monet icon. 1. Applying Dark color on the main text/icon and light as background. 2.Applying Light on main text/icon and dark as background.

Motivation

This patch will allow old apps to have monet icon support for A12 or later, whose developers are not implementing monet support for it and for those whose development is discontinued.

This will also remove the dependency on apps which forces users to buy premium for using Monet icon support for apps, like AppClønÉr

Acknowledgements

oSumAtrIX commented 1 week ago

How do you make an icon follow the colors?

vippium commented 1 week ago

I mean that the color science used for making monet icon of yt and ytm or other app, it can be done like this.

https://developers.google.com/fonts/docs/material_icons Here is something which can let you help regarding this.

vippium commented 1 week ago

It will just use the themed color gor that:

/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); } 
oSumAtrIX commented 1 week ago

These are for web. I am talking about Android icons

vippium commented 1 week ago

So, there is different method for android. Mmm...Can we check out the method of AppCloner of creating monet icons.?

oSumAtrIX commented 1 week ago

The Android documentation should include how to support M3 icons