From: Guneet K Date: Mon, 5 Feb 2018 06:08:58 +0000 (+0530) Subject: Set background color as black for wearable web apps X-Git-Tag: submit/tizen_4.0/20180213.085105~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cb8937fe537ba3cd7f3e37b80faef677857b289;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Set background color as black for wearable web apps [Model] COMMON [BinType] AP [Customer] [Issue#] P170609-03650 [Request] N/A [Occurrence Version] DayR765AUC_20170607.002 [Problem] White background displayed for KA Stock App instead of black background [Cause & Measure] Cause: Background color is set as black only for watchfaces. Hence default bg color for web apps is white Measure: Call ewk_view_bg_color_set to set background color as black for web apps [Checking Method] 1. Build and install crosswalk-tizen rpm 2. Install KA Stock web app 3. Background color of web app should be black Change-Id: I50f8c24f9f735ebb0ef24f49d9e8a1ebdbb11999 Signed-off-by: Guneet K --- diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 014e88214..27ff04cb4 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -584,10 +584,10 @@ void WebApplication::Launch(std::unique_ptr appcontrol) { } // 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); - } + // if (common::getProfile() == common::kPROFILE_WEARABLE && + // app_data_->app_type() == common::ApplicationData::WATCH) { + view->SetBGColor(0, 0, 0, 255); + //} if (appcontrol->data(AUL_K_DEBUG) == "1") { debug_mode_ = true;