Commit 353ce8f9 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Change tray transparency and secondary text color

Bug: 1040960
Change-Id: Id84fbea0565c9ff48e89249dfb32dd134125c3ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2029198Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736956}
parent 8f88c4db
...@@ -236,7 +236,7 @@ SkColor AshColorProvider::GetContentLayerColorImpl( ...@@ -236,7 +236,7 @@ SkColor AshColorProvider::GetContentLayerColorImpl(
break; break;
case ContentLayerType::kTextSecondary: case ContentLayerType::kTextSecondary:
light_color = gfx::kGoogleGrey700; light_color = gfx::kGoogleGrey700;
dark_color = gfx::kGoogleGrey500; dark_color = gfx::kGoogleGrey400;
break; break;
case ContentLayerType::kIconPrimary: case ContentLayerType::kIconPrimary:
light_color = gfx::kGoogleGrey700; light_color = gfx::kGoogleGrey700;
......
...@@ -257,20 +257,14 @@ SkColor UnifiedSystemTrayView::GetBackgroundColor() { ...@@ -257,20 +257,14 @@ SkColor UnifiedSystemTrayView::GetBackgroundColor() {
AshColorProvider::BaseLayerType::kTransparent90, AshColorProvider::BaseLayerType::kTransparent90,
kUnifiedMenuBackgroundColor); kUnifiedMenuBackgroundColor);
} }
AshColorProvider::BaseLayerType layer_type =
(Shell::Get()->tablet_mode_controller() &&
Shell::Get()->tablet_mode_controller()->InTabletMode())
? AshColorProvider::BaseLayerType::kTransparent60
: AshColorProvider::BaseLayerType::kTransparent74;
auto background_type = Shelf::ForWindow(Shell::GetPrimaryRootWindow()) auto background_type = Shelf::ForWindow(Shell::GetPrimaryRootWindow())
->shelf_widget() ->shelf_widget()
->GetBackgroundType(); ->GetBackgroundType();
if (background_type == ShelfBackgroundType::kMaximized || AshColorProvider::BaseLayerType layer_type =
background_type == ShelfBackgroundType::kInApp) { (background_type == ShelfBackgroundType::kMaximized ||
layer_type = AshColorProvider::BaseLayerType::kTransparent90; background_type == ShelfBackgroundType::kInApp)
} ? AshColorProvider::BaseLayerType::kTransparent90
: AshColorProvider::BaseLayerType::kTransparent74;
SkColor background_color = AshColorProvider::Get()->GetBaseLayerColor( SkColor background_color = AshColorProvider::Get()->GetBaseLayerColor(
layer_type, AshColorProvider::AshColorMode::kDark); layer_type, AshColorProvider::AshColorMode::kDark);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment