views: Restore hover state on menu buttons
This commit is contained in:
parent
5edb3bf62d
commit
cc24f60779
|
@ -49,6 +49,14 @@ void ClientAppBrowser::OnBeforeCommandLineProcessing(
|
||||||
command_line->AppendSwitch("enable-begin-frame-scheduling");
|
command_line->AppendSwitch("enable-begin-frame-scheduling");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (command_line->HasSwitch(switches::kUseViews) &&
|
||||||
|
!command_line->HasSwitch("top-chrome-md")) {
|
||||||
|
// Use non-material mode on all platforms by default. Among other things
|
||||||
|
// this causes menu buttons to show hover state. See usage of
|
||||||
|
// MaterialDesignController::IsModeMaterial() in Chromium code.
|
||||||
|
command_line->AppendSwitchWithValue("top-chrome-md", "non-material");
|
||||||
|
}
|
||||||
|
|
||||||
DelegateSet::iterator it = delegates_.begin();
|
DelegateSet::iterator it = delegates_.begin();
|
||||||
for (; it != delegates_.end(); ++it)
|
for (; it != delegates_.end(); ++it)
|
||||||
(*it)->OnBeforeCommandLineProcessing(this, command_line);
|
(*it)->OnBeforeCommandLineProcessing(this, command_line);
|
||||||
|
|
Loading…
Reference in New Issue