mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Use default theme background color for all controls (see #3671)
Add new CefViewDelegate::OnThemeChanged callback for optionally overriding default theme colors when the current theme changes.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace client {
|
||||
// Implements window overlay controls that receive absolute positioning on top
|
||||
// of the browser view. All methods must be called on the browser process UI
|
||||
// thread.
|
||||
class ViewsOverlayControls : public CefButtonDelegate {
|
||||
class ViewsOverlayControls : public CefButtonDelegate, public CefPanelDelegate {
|
||||
public:
|
||||
enum class Command {
|
||||
kMinimize = 1,
|
||||
@@ -43,6 +43,9 @@ class ViewsOverlayControls : public CefButtonDelegate {
|
||||
// CefButtonDelegate methods:
|
||||
void OnButtonPressed(CefRefPtr<CefButton> button) override;
|
||||
|
||||
// CefViewDelegate methods:
|
||||
void OnThemeChanged(CefRefPtr<CefView> view) override;
|
||||
|
||||
CefRefPtr<CefLabelButton> CreateButton(Command command);
|
||||
|
||||
void MaybeUpdateMaximizeButton();
|
||||
|
Reference in New Issue
Block a user