Set background color as black for wearable web apps 06/194606/2
authorGuneet K <g.khosla@samsung.com>
Mon, 5 Feb 2018 06:08:58 +0000 (11:38 +0530)
committerguneet khosla <g.khosla@samsung.com>
Thu, 6 Dec 2018 09:28:21 +0000 (14:58 +0530)
Background color is set as black only for watchfaces.
Hence default bg color for web apps is white.
Call ewk_view_bg_color_set to set background color as black for web apps.

Change-Id: I50f8c24f9f735ebb0ef24f49d9e8a1ebdbb11999
Signed-off-by: Guneet K <g.khosla@samsung.com>
runtime/browser/web_application.cc

index 4a8434d9f79df59a074e07afe2a383178dcd8f6d..7a51b7be86f73ea68151c76d43d300d257064a62 100755 (executable)
@@ -565,10 +565,7 @@ void WebApplication::Launch(std::unique_ptr<common::AppControl> appcontrol) {
   vc_webview_->vc_webview_set_view(view->evas_object());
 
   // ewk_view_bg_color_set is not working at webview initialization.
-  if (common::getProfile() == common::kPROFILE_WEARABLE &&
-      app_data_->app_type() == common::ApplicationData::WATCH) {
-    view->SetBGColor(0, 0, 0, 255);
-  }
+  view->SetBGColor(0, 0, 0, 255);
 
   if (appcontrol->data(AUL_K_DEBUG) == "1") {
     debug_mode_ = true;