Don't force non-incognito default colors for X11/increased contrast themes.
For X11 this likely doesn't matter, as in practice NativeThemeGtk::GetColor() will probably override everything. For the increased contrast theme supplier, someday we probably want to replace this with better platform-native high contrast support on the platforms that use it, but for now, it doesn't make sense to disable incognito default colors in most cases; the code in question was only intended to apply to custom themes. This _does_ still apply "force non-incognito" to autogenerated themes, since these should basically work "like custom themes" as much as possible. If we wanted, we could likely change this by ensuring the autogenerator overrides everything necessary. I don't have a strong opinion. This is primarily a set-up change for fixing bug 621004, by exposing a method that we'll also use to control "disable dark mode". Bug: 621004 Change-Id: I6375cea9ae88d56a02c212258caf3b647af30585 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938569 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Gayane Petrosyan <gayane@chromium.org> Cr-Commit-Position: refs/heads/master@{#719713}
Showing
Please register or sign in to comment