3 ms·
They exist but don't actually grab system colors (to prevent pages spoofing the system look). --- Shameless plug: In neutrino (my webview wrapper), we grab t
by gaigalas 15d ago
They exist but don't actually grab system colors (to prevent pages spoofing the system look).
---
Shameless plug:
In neutrino (my webview wrapper), we grab those and inject them as prefixed CSS variables (--neutrino-NameOfSystemColor).
Works on windows/macos/gtk/qt, and except for qt it works live (if the user changes the accent tone, the CSS variable updates automatically).
https://alganet.dev/neutrino/ https://alganet.dev/neutrino/
Screenshot of Mint: https://imgur.com/a/WyjpwsR https://imgur.com/a/WyjpwsR
- sbarre 15d agoThat's an interesting point about preventing the spoofing of system prompts and windows.. These were very handy in simpler times but I definitely see why we don't want them around these days.
- gaigalas 15d agoYeah, "Your anti-virus is outdated, click here to update" popups mimicking the OS were a real issue. That's also why many browsers also don't allow popups without an URL bar now. For some time, Internet Explorer even had chromeless popups (no OS decorations, title bar or anything). Absolutely nasty, you could draw anything.