cef/libcef/browser/chrome
Marshall Greenblatt f60476b848 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:19:35 -04:00
..
extensions Update to Chromium version 105.0.5176.0 (#1023155) 2022-07-22 13:31:29 -04:00
views views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
browser_delegate.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
browser_platform_delegate_chrome.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
browser_platform_delegate_chrome.h Use new PrintViewManagerBase::PrintToPdf method (fixes issue #3377) 2022-10-14 14:10:30 -04:00
chrome_browser_context.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
chrome_browser_context.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
chrome_browser_delegate.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
chrome_browser_delegate.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
chrome_browser_host_impl.cc chrome: Add SetAccessibilityState support (fixes #3649) 2024-02-20 16:27:48 +00:00
chrome_browser_host_impl.h chrome: Add SetAccessibilityState support (fixes #3649) 2024-02-20 16:27:48 +00:00
chrome_browser_main_extra_parts_cef.cc chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00
chrome_browser_main_extra_parts_cef.h chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00
chrome_content_browser_client_cef.cc Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
chrome_content_browser_client_cef.h Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
chrome_context_menu_handler.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
chrome_context_menu_handler.h chrome: Support customization of context menus (see issue #2969) 2021-04-08 19:38:29 -04:00
chrome_startup_browser_creator.cc chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00
chrome_startup_browser_creator.h chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00