CapnKitten / Material-Discord

Material design theme for Discord
343 stars 153 forks source link

Flashbang with Vencord mobile #191

Open Seb-135 opened 1 year ago

Seb-135 commented 1 year ago

This theme is the best I've found for mobile, it works almost flawlessly and looks great.

The only issue I have with it, is that it seems to set the off-screen app colour to white, which unthemed and other themes don't do. This isn't usually an issue, but when closing the soft keyboard, the app takes a moment to resize the view, and thus covers half of the screen in white:

https://github.com/CapnKitten/Material-Discord/assets/76539951/f60738da-52ea-42e4-9ea5-d677109140d5

CapnKitten commented 1 year ago

The theme doesn't officially support Vencord Mobile.

Seb-135 commented 1 year ago

After a significant amount of time messing around with this, I have figured out the cause - it is the background-color: transparent; for body on line 217. Seems that the default webview background is white, so overlaying transparency.. just produces white. For some reason, importing the source.css url and overriding this property in Vencord's QuickCSS does not actually fix it. I had to copypaste the entire css and change that one line to something opaque. Is there any reason for the background to be transparent? If not, changing it to --main-color or --main-alt would be best.