summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 23:14:09 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 23:14:09 +0000
commitf66470619346e31e0d88340a3f8653015f3b63b3 (patch)
tree78b48d2e0fd5b757583580930841cb0868699db2 /ash
parentb519c01cb9c9115441ac02dbadbae9ceb32360da (diff)
downloadchromium_src-f66470619346e31e0d88340a3f8653015f3b63b3.zip
chromium_src-f66470619346e31e0d88340a3f8653015f3b63b3.tar.gz
chromium_src-f66470619346e31e0d88340a3f8653015f3b63b3.tar.bz2
ash: Use transparent black shield for modal dialogs
The shield changed to white when the "new dialog style" was enabled by default, but it looks hazy. Revert to the old style pending UX input on a new design. BUG=249779 TEST=manual, open JavaScript console, type alert('foo'), note transparent black covering all UI except the alert Review URL: https://chromiumcodereview.appspot.com/17020005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/wm/system_modal_container_layout_manager.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index 59de4b4..9d1ed1b 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -162,8 +162,10 @@ void SystemModalContainerLayoutManager::CreateModalBackground() {
modal_background_->GetNativeView()->SetName(
"SystemModalContainerLayoutManager.ModalBackground");
views::View* contents_view = new views::View();
- contents_view->set_background(views::Background::CreateSolidBackground(
- switches::IsNewDialogStyleEnabled() ? SK_ColorWHITE : SK_ColorBLACK));
+ // TODO(jamescook): This could also be SK_ColorWHITE if using the new
+ // dialog style via switches::IsNewDialogStyleEnabled().
+ contents_view->set_background(
+ views::Background::CreateSolidBackground(SK_ColorBLACK));
modal_background_->SetContentsView(contents_view);
modal_background_->GetNativeView()->layer()->SetOpacity(0.0f);
}