tkashkin / Adwaita-for-Steam

A skin to make Steam look more like a native GNOME app
MIT License
1.12k stars 25 forks source link

Revamp gen_webkit_theme to use import #180

Closed Foldex closed 1 year ago

Foldex commented 1 year ago

Originally we had to generate the css by concating everything into a single file, because the old resource/webkit.css was hard injected into pages and did not support @import statements.

The new method of patching means the css is loaded like any other stylesheet, and thus we can just copy an entire dir to steamui and selectively use @import in libraryroot.custom.css to enable certain features.

For example: @import url("https://steamloopback.host/Adwaita/test.css");