Vencord icon indicating copy to clipboard operation
Vencord copied to clipboard

Add StyleListener to ClientTheme to fix lightModeFixes

Open CodeF53 opened this issue 1 year ago • 1 comments

Light mode fixes of client theme replaces all --white-500 backgrounds with --primary-100, but since discord started lazy loading css chunks, the old approach of generating all these fixes at DOMContentLoaded is no longer functional.

This PR adds a mutationObserver to the head of the DOM to generate new fixes for lightMode as the app is used.

CodeF53 avatar Jul 03 '24 19:07 CodeF53

lint explosion

Vendicated avatar Jul 15 '24 02:07 Vendicated