Re: [csswg-drafts] [css-color] Consider exposing native accent color as a system color keyword. (#7347)

@josepharhar Windows is the only platform where it's hard-coded to blue on content, though it's controlled by a [runtime flag](https://searchfox.org/mozilla-central/rev/2d820afafbe62b0148e2766a4d371556edefe36f/modules/libpref/init/StaticPrefList.yaml#14710-14725).

See the comment there and https://bugzilla.mozilla.org/show_bug.cgi?id=1776556 for details, we might want to special-case grey accent colors and just use blue then instead or something.

On Linux, the accent color is derived from your GTK theme, so it'll be orange on Ubuntu for example, but blue on Fedora. In any distro you can change the GTK theme and we will honor it. https://github.com/flatpak/xdg-desktop-portal/pull/815 is some related work that would expose the accent color more directly, but meanwhile we read it from the theme [here](https://searchfox.org/mozilla-central/rev/2d820afafbe62b0148e2766a4d371556edefe36f/widget/gtk/nsLookAndFeel.cpp#1917-1946).

On Android and macOS it should work as well.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7347#issuecomment-1415167247 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 3 February 2023 06:58:49 UTC