File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,17 @@ void create_browser()
3939 json_value* app_settings = Settings ();
4040 CefBrowserSettings browser_settings;
4141 CefWindowInfo window_info;
42- window_info.runtime_style = CEF_RUNTIME_STYLE_ALLOY;
42+ std::string runtime_style ((*app_settings)[" chrome" ][" runtime_style" ]);
43+ if (runtime_style == " alloy" ) {
44+ window_info.runtime_style = CEF_RUNTIME_STYLE_ALLOY;
45+ LOG (INFO) << " Runtime style: Alloy" ;
46+ } else if (runtime_style == " chrome" ) {
47+ window_info.runtime_style = CEF_RUNTIME_STYLE_CHROME;
48+ LOG (INFO) << " Runtime style: Chrome" ;
49+ } else {
50+ LOG (WARNING) << " Invalid runtime style in settings.json: " << runtime_style;
51+ window_info.runtime_style = CEF_RUNTIME_STYLE_ALLOY;
52+ }
4353 int default_width = static_cast <int >(
4454 (*app_settings)[" main_window" ][" default_size" ][0 ]);
4555 int default_height = static_cast <int >(
Original file line number Diff line number Diff line change 2222 "log_severity" : " default" ,
2323 "cache_path" : " webcache" ,
2424 "remote_debugging_port" : 0 ,
25+ "runtime_style" : " alloy" ,
2526 "command_line_switches" : {
2627 "enable-media-stream" : " " ,
2728 "enable-system-flash" : " " ,
You can’t perform that action at this time.
0 commit comments