Use BrowserWindow's backgroundColor as renderer view's background color
This commit is contained in:
parent
70ca49e36a
commit
cb470cb94b
12 changed files with 88 additions and 36 deletions
|
@ -116,6 +116,11 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
|||
LOG(ERROR) << "preload url must be file:// protocol.";
|
||||
}
|
||||
|
||||
// --background-color.
|
||||
std::string color;
|
||||
if (web_preferences.GetString(options::kBackgroundColor, &color))
|
||||
command_line->AppendSwitchASCII(switches::kBackgroundColor, color);
|
||||
|
||||
// The zoom factor.
|
||||
double zoom_factor = 1.0;
|
||||
if (web_preferences.GetDouble(options::kZoomFactor, &zoom_factor) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue