6 ms·
Surprised there was no mention of the old system theme colours (that I think still work in some browsers but are long-deprecated): https://developer.mozilla.or
by sbarre 6d ago
Surprised there was no mention of the old system theme colours (that I think still work in some browsers but are long-deprecated):
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/system-color#deprecated_system_color_keywords https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/V...
I used these CSS styles in the late 90s to make internal browser-based apps for our call centre agents that looked & felt more like native Windows desktop apps.
- robin_reala 5d agoThey’re still there for use in forced colors mode. I blogged about this a bit at https://medium.com/flat-pack-tech/ikea-windows-high-contrast-mode-38e4666acbe4 https://medium.com/flat-pack-tech/ikea-windows-high-contrast...
- gaigalas 5d agoThey 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 5d 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 5d 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.