Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(500)

Side by Side Diff: ash/common/wm/overview/window_selector_item.cc

Issue 2109663004: [ash-md] Increases the corner radii of rounded rects in overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm/overview/window_selector.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/wm/overview/window_selector_item.h" 5 #include "ash/common/wm/overview/window_selector_item.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/common/material_design/material_design_controller.h" 10 #include "ash/common/material_design/material_design_controller.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static const SkColor kLabelColor = SK_ColorWHITE; 61 static const SkColor kLabelColor = SK_ColorWHITE;
62 62
63 // TODO(tdanderson): Move this to a central location. 63 // TODO(tdanderson): Move this to a central location.
64 static const SkColor kCloseButtonColor = SK_ColorWHITE; 64 static const SkColor kCloseButtonColor = SK_ColorWHITE;
65 65
66 // Label background color used with Material Design. 66 // Label background color used with Material Design.
67 // TODO(varkha): Make background color conform to window header. 67 // TODO(varkha): Make background color conform to window header.
68 static const SkColor kLabelBackgroundColor = SkColorSetARGB(25, 255, 255, 255); 68 static const SkColor kLabelBackgroundColor = SkColorSetARGB(25, 255, 255, 255);
69 69
70 // Corner radius for the selection tiles used with Material Design. 70 // Corner radius for the selection tiles used with Material Design.
71 static int kLabelBackgroundRadius = 2; 71 static int kLabelBackgroundRadius = 5;
72 72
73 // Label shadow color. 73 // Label shadow color.
74 static const SkColor kLabelShadow = SkColorSetARGB(176, 0, 0, 0); 74 static const SkColor kLabelShadow = SkColorSetARGB(176, 0, 0, 0);
75 75
76 // Vertical padding for the label, on top of it. 76 // Vertical padding for the label, on top of it.
77 static const int kVerticalLabelPadding = 20; 77 static const int kVerticalLabelPadding = 20;
78 78
79 // Horizontal padding for the label, on both sides. Used with Material Design. 79 // Horizontal padding for the label, on both sides. Used with Material Design.
80 static const int kHorizontalLabelPaddingMD = 8; 80 static const int kHorizontalLabelPaddingMD = 8;
81 81
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 } 586 }
587 } 587 }
588 588
589 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { 589 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() {
590 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( 590 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16(
591 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, 591 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME,
592 GetWindow()->GetTitle())); 592 GetWindow()->GetTitle()));
593 } 593 }
594 594
595 } // namespace ash 595 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698