Emilio Cobos Álvarez 9f40cb86e5 Bug 1857260 - More explicitly use custom colors for the toolbox. r=dao,desktop-theme-reviewers,win-reviewers,mhowell
Right now we were relying on the OS colors
(-moz-dialog/-moz-dialogtext/ActiveCaption/CaptionText).

The titlebar ones did the right thing but -moz-dialog and co didn't.

This caused two issues:

 * With the titlebar checkbox on, we'd use the system colors even
   without prefers-contrast. This is specially noticeable on macOS.

 * With prefers-contrast. We used -moz-dialog for the background and the
   toolbar on macOS. This caused little contrast.

Support the -moz-headerbar colors in all desktop platforms, and use
those on Linux + HCM, and use browser-custom-colors on Windows / macOS
to override the toolbox background explicitly to fix it.

This setup is a little bit more consistent with all other colors.

Differential Revision: https://phabricator.services.mozilla.com/D190200
2023-10-06 14:40:15 +00:00
..