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

Unified Diff: ash/common/system/chromeos/palette/palette_tray.cc

Issue 2269383002: Magnifier border is now more visible on light backgrounds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/chromeos/palette/palette_tray.cc
diff --git a/ash/common/system/chromeos/palette/palette_tray.cc b/ash/common/system/chromeos/palette/palette_tray.cc
index 95db0eb52129b14519923333ddcda48946a8de90..9d01c2b0733a7092c95ad8f23305aa4f53e50c6a 100644
--- a/ash/common/system/chromeos/palette/palette_tray.cc
+++ b/ash/common/system/chromeos/palette/palette_tray.cc
@@ -43,6 +43,9 @@ const int kVerticalShelfVerticalPadding = 5;
// Width of the palette itself (dp).
const int kPaletteWidth = 360;
+// Size of icon in the shelf (dp).
+const int kShelfIconSize = 18;
+
// Creates a separator.
views::Separator* CreateSeparator(views::Separator::Orientation orientation) {
const int kSeparatorInset = 10;
@@ -305,7 +308,7 @@ void PaletteTray::SetIconBorderForShelfAlignment() {
void PaletteTray::UpdateTrayIcon() {
gfx::VectorIconId icon = palette_tool_manager_->GetActiveTrayIcon(
palette_tool_manager_->GetActiveTool(ash::PaletteGroup::MODE));
- icon_->SetImage(CreateVectorIcon(icon, kShelfIconColor));
+ icon_->SetImage(CreateVectorIcon(icon, kShelfIconSize, kShelfIconColor));
}
void PaletteTray::UpdateIconVisibility() {

Powered by Google App Engine
This is Rietveld 408576698