cef/libcef/browser/views
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
..
basic_label_button_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
basic_label_button_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_label_button_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_label_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_panel_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_panel_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_panel_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_panel_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
box_layout_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
box_layout_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
browser_platform_delegate_views.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
browser_platform_delegate_views.h alloy: Use Chrome JS dialogs on Windows/Linux (fixes issue #3316) 2022-06-03 22:45:23 +03:00
browser_view_impl.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
browser_view_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
browser_view_view.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
browser_view_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
button_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
button_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
color_provider_tracker.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
color_provider_tracker.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
display_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
display_impl.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
fill_layout_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
fill_layout_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
label_button_impl.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
label_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
layout_adapter.cc Implement Views framework on Windows and Linux (issue #1749). 2016-04-26 11:58:13 -04:00
layout_adapter.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
layout_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
layout_util.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
layout_util.h Update to Chromium revision 6e53600d (#386251) 2016-04-28 12:57:08 -04:00
menu_button_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
menu_button_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_button_view.cc Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_runner_views.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
menu_runner_views.h Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
native_widget_mac.h chrome: Standardize fullscreen transition behavor/callbacks (fixes #3571) 2023-09-28 17:44:35 -04:00
native_widget_mac.mm mac: Update CSS on fullscreen window exit (fixes #3597) 2023-11-07 16:40:29 -05:00
ns_window.h views: mac: Fix frameless window behavior (fixes issue #3189) 2023-02-28 18:34:12 +00:00
ns_window.mm Update to Chromium version 118.0.5993.0 (#1192594) 2023-09-20 12:07:47 -04:00
overlay_view_host.cc views: Use default theme background color for all controls (see #3671) 2024-03-28 11:35:37 -04:00
overlay_view_host.h views: Add can_activate parameter to AddOverlayView 2024-01-05 13:46:49 -05:00
panel_impl.h Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
panel_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
scroll_view_impl.cc Remove deprecated base::[Dictionary|List]Value API usage 2023-01-30 21:32:19 -05:00
scroll_view_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
scroll_view_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
scroll_view_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
textfield_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
textfield_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
textfield_view.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
textfield_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
view_adapter.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
view_adapter.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
view_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util_aura.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util_mac.mm views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
widget.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
widget.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
widget_destruction_observer.h views: Add support for modal browser dialogs 2023-06-21 11:18:24 +03:00
widget_impl.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
widget_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
window_impl.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
window_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
window_view.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
window_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00