WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
87 stars 8 forks source link

Dark theme: Buttons & boxes background are 100% white while the setting is set to 10% white #195

Closed Luke0094 closed 1 year ago

Luke0094 commented 1 year ago

Bug description

Youtube dark mode will break description, likes bar, etc.

Steps to reproduce the behavior

Official dark mode enabled dark mode in the extension (light mode is grayed also)

Browser

Chrome

Operating system

Windows

Extension version

2.37.34

The bug still happens in these conditions

Additional context and/or screenshots

Immagine 2023-09-15 080546

It may be useful if we could disable this option at all. (Right now I'm using Dark Reader extension to fix this behaviour)

Desoroxxx commented 1 year ago

Came here to report the same, it's been happening for a few weeks now and wondered why it wasn't fixed, here is my screenshot of it: image

WesselKroos commented 1 year ago

Another user reported the same problem yesterday in an old issue. Could you check if the solution I had provided there also solves this problem?

This was the issue: https://github.com/WesselKroos/youtube-ambilight/issues/184

Luke0094 commented 1 year ago

Another user reported the same problem yesterday in an old issue. Could you check if the solution I had provided there also solves this problem?

This was the issue: #184

ok, and tried and it will kida solve the issue, at least set at 2%, seem after the last update some settings got resetted or modified (like the "remove the black bar" ), however what it would be useful if we can turn off that settings since I personally prefer the official theme instead of having everything black or white.

Immagine 2023-09-15 180031
WesselKroos commented 1 year ago

Hmm, if there are so many people with this issue then there might be a bug in my migration code between updates. I'll take a look this weekend to see what could cause this.

PS: It's not possible to use the default YouTube style because that style has no transparent backgrounds.

WesselKroos commented 1 year ago

@luchettodj94 @Desoroxxx @Snakzi @harsharora08 Since you all had this problem recently, do you still know at what percentage you had set the "Buttons & boxes background opacity" originally before it was changed to 100% by the update?

Luke0094 commented 1 year ago

@luchettodj94 @Desoroxxx @Snakzi @harsharora08 Since you all had this problem recently, do you still know at what percentage you had set the "Buttons & boxes background opacity" originally before it was changed to 100% by the update?

Unfortunately not, it was not a settings I've touched, however the closest to the default one is 2% right now (is actually a 2.5% but it can't be choosen) (tried to open an older browser with still the .29 installed but it got immediately updated xD)

Edit: Yup got if first this time xD It was 10% (the background is still working fine) however you cannot set this value or it will immediately get too bright with the new version

Immagine 2023-09-16 002318

(if you need more details just tell me quickly cause I will not keep the browser open forever :P )

WesselKroos commented 1 year ago

(if you need more details just tell me quickly cause I will not keep the browser open forever :P )

Feel free to close the browser. I'm not logging anything when that warning appears. But this info should be enough for me to reproduce it. Let's see if I succeed today

Desoroxxx commented 1 year ago

@luchettodj94 @Desoroxxx @Snakzi @harsharora08 Since you all had this problem recently, do you still know at what percentage you had set the "Buttons & boxes background opacity" originally before it was changed to 100% by the update?

It wasn't changed to 100% right now it is sitting at 10% and it everything is white

WesselKroos commented 1 year ago

It wasn't changed to 100% right now it is sitting at 10% and it everything is white

Aha, that explains a lot to me. I'm always running at -10%, that's why I did not notice this bug. But, I see the bug now as well. So, for some reason 10% is completely white.

That makes things easier. Because a sudden change by an update is hard to reproduce. But this should be easily fixable.

Luke0094 commented 1 year ago

It wasn't changed to 100% right now it is sitting at 10% and it everything is white

Aha, that explains a lot to me. I'm always running at -10%, that's why I did not notice this bug. But, I see the bug now as well. So, for some reason 10% is completely white.

That makes things easier. Because a sudden change by an update is hard to reproduce. But this should be easily fixable.

The pattern changed from max 20% to 100 so in this case got reset at maximum, before the dafault was 10% as in the pic I've show previously (however now you are unable to change the color palette with precision since there are not half misures)

As I've said earlier also some other settings got resetted altrough I'm not sure of what other then the "remove the black bar" that nobody should really use since is bugged.

WesselKroos commented 1 year ago

The pattern changed from max 20% to 100

@luchettodj94 What do you mean by "the pattern"?

It wasn't changed to 100% right now it is sitting at 10% and it everything is white

That makes things easier. Because a sudden change by an update is hard to reproduce. But this should be easily fixable.

Hmm, sad news. The cause is apparently a bug in the latest Chrome/Edge/Opera browser updates to Chromium version 117. Because the opacity of the white background is still correctly set to 10% (a.k.a. 0.1) in the css, but the background is painted/rendered by the browser with a 100% opacity.

image

I'm going to search for a workaround to bypass this browser bug. But if I can't find one, we might have to wait for a new browser version in which they have fixed this.

WesselKroos commented 1 year ago

I've reported the bug to the Chromium browser developers: https://bugs.chromium.org/p/chromium/issues/detail?id=1483736

WesselKroos commented 1 year ago

I found a workaround, which I'll release in the next version

WesselKroos commented 1 year ago

I see that most browsers vendors have updated the extension to version 2.38.0 except for Edge.

@luchettodj94 @Desoroxxx @avi12 Could you let me know if this issue has been resolved for all of you in version 2.38.0?

avi12 commented 1 year ago

I'm using the Chrome extension and yesterday I encountered this issue when disabled the ambient effect

WesselKroos commented 1 year ago

I'm using the Chrome extension and yesterday I encountered this issue when disabled the ambient effect

Version 2.38.0 has just been released today.

Luke0094 commented 1 year ago

I see that most browsers vendors have updated the extension to version 2.38.0 except for Edge.

@luchettodj94 @Desoroxxx @avi12 Could you let me know if this issue has been resolved for all of you in version 2.38.0?

Yes it was updated correctly however the option for backup might be a bit difficult to notice if you don't know that you have to click on the extension icon (perhaps just leave a notice in the settings somewhere).

Desoroxxx commented 1 year ago

Just to confirm that this has been fixed on my side