| ▲ | sbarre 6 hours 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/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 6 hours ago | parent | next [-] | |
They’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... | ||
| ▲ | gaigalas 5 hours ago | parent | prev [-] | |
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/ Screenshot of Mint: https://imgur.com/a/WyjpwsR | ||