revanced-patches-template icon indicating copy to clipboard operation
revanced-patches-template copied to clipboard

feat: `channel infos` and `comments filter bar` amoled

Open OxrxL opened this issue 3 years ago • 3 comments

🐞 Issue

Despite amoled patch is applied, comments filter bar and channel infos panel are still based on dark theme.

❗ Solution

This patch is based on latest YouTube Beta 17.29.33 (but ReVanced patcher should be able to dinamically adapt it for latest Stable as well) --->

On file obo.smali, at method onBoundsChange, there is a setColor instruction with a color value managed by register P1.

Just put the following code before setColor instruction, to align the elements to amoled palette --->

const {UNUSEDREGISTER}, -0xdededf
if-ne {UNUSEDREGISTER}, p1, :cond_lithorecolorset
const/4 p1, 0x0
:cond_lithorecolorset

OxrxL avatar Jul 25 '22 22:07 OxrxL

@OxrxL What is the equivalent for the version from the docs?

oSumAtrIX avatar Jul 25 '22 22:07 oSumAtrIX

@OxrxL What is the equivalent for the version from the docs?

17.28.34: nzo.smali

OxrxL avatar Jul 25 '22 22:07 OxrxL

@OxrxL What is the equivalent for the version from the docs?

17.29.34: obo.smali

OxrxL avatar Jul 26 '22 16:07 OxrxL