cef/libcef/browser/alloy
Marshall Greenblatt 759cdc7584 views: Add support for OS and Chrome themes (fixes #3610, fixes #3671)
Controls now respect OS and Chrome themes by default for both Alloy
and Chrome runtimes. Chrome themes (mode and colors) can be configured
using the new CefRequestContext::SetChromeColorScheme method. Individual
theme colors can be overridden using the new CefWindowDelegate::
OnThemeColorsChanged and CefWindow::SetThemeColor methods.

The `--force-light-mode` and `--force-dark-mode` command-line flags are
now respected on all platforms as an override for the OS theme.

The current Chrome theme, if any, will take precedence over the OS theme
when determining light/dark status. On Windows and MacOS the titlebar
color will also be updated to match the light/dark theme.

Testable as follows:
- Run: `cefclient --enable-chrome-runtime` OR
       `cefclient --use-views --persist-user-preferences --cache-path=...`
  - App launches with default OS light/dark theme colors.
  - Change OS dark/light theme under system settings. Notice that theme
    colors change as expected.
  - Right click, select items from the new Theme sub-menu. Notice that
    theme colors behave as expected.
  - Exit and relaunch the app. Notice that the last-used theme colors are
    applied on app restart.
- Add `--background-color=green` to above command-line.
  - Perform the same actions as above. Notice that all controls start
    and remain green throughout (except some icons with Chrome runtime).
- Add `--force-light-mode` or `--force-dark-mode` to above command-line.
  - Perform the same actions as above. Notice that OS dark/light theme
    changes are ignored, but Chrome theme changes work as expected.
2024-04-09 16:23:35 -04:00
..
dialogs Update to Chromium version 118.0.5993.0 (#1192594) 2023-09-20 12:07:47 -04:00
alloy_browser_context.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
alloy_browser_context.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
alloy_browser_host_impl.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
alloy_browser_host_impl.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
alloy_browser_main.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:23:35 -04:00
alloy_browser_main.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:23:35 -04:00
alloy_browser_main_win.cc Rename the current CEF runtime to Alloy (see issue #2969) 2020-06-29 16:17:41 -04:00
alloy_content_browser_client.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
alloy_content_browser_client.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
alloy_download_util.cc Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
alloy_download_util.h Update to Chromium version 93.0.4577.0 (#902210) 2021-07-27 19:03:09 -04:00
alloy_web_contents_view_delegate.cc alloy: Add touch handle and quick menu support for OSR (fixes issue #3268) 2022-05-30 10:51:39 +03:00
alloy_web_contents_view_delegate.h alloy: Add touch handle and quick menu support for OSR (fixes issue #3268) 2022-05-30 10:51:39 +03:00
browser_platform_delegate_alloy.cc chrome: Add SetAccessibilityState support (fixes #3649) 2024-02-20 16:27:48 +00:00
browser_platform_delegate_alloy.h chrome: Add SetAccessibilityState support (fixes #3649) 2024-02-20 16:27:48 +00:00
chrome_browser_process_alloy.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
chrome_browser_process_alloy.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
chrome_profile_alloy.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
chrome_profile_alloy.h Use Chrome file dialogs on all platforms and runtimes (fixes issue #3314) 2022-04-19 18:52:26 -04:00
chrome_profile_manager_alloy.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
chrome_profile_manager_alloy.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00