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

Unified Diff: ash/common/system/overview/overview_button_tray.cc

Issue 2147143002: [Chrome OS MD] Draw a 1px separator between 2 tray items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge conflicts + comments 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/overview/overview_button_tray.cc
diff --git a/ash/common/system/overview/overview_button_tray.cc b/ash/common/system/overview/overview_button_tray.cc
index e3508b474c4a26553b89336f0d3ed517b8783ff8..6528a322a200a2339a56c5b9fca4e21e4d676a7f 100644
--- a/ash/common/system/overview/overview_button_tray.cc
+++ b/ash/common/system/overview/overview_button_tray.cc
@@ -123,13 +123,11 @@ void OverviewButtonTray::SetIconBorderForShelfAlignment() {
gfx::Insets(vertical_padding, horizontal_padding)));
} else {
if (IsHorizontalAlignment(shelf_alignment())) {
- icon_->SetBorder(views::Border::CreateEmptyBorder(
- kHorizontalShelfVerticalPadding, kHorizontalShelfHorizontalPadding,
- kHorizontalShelfVerticalPadding, kHorizontalShelfHorizontalPadding));
+ icon_->SetBorder(views::Border::CreateEmptyBorder(gfx::Insets(
+ kHorizontalShelfVerticalPadding, kHorizontalShelfHorizontalPadding)));
} else {
- icon_->SetBorder(views::Border::CreateEmptyBorder(
- kVerticalShelfVerticalPadding, kVerticalShelfHorizontalPadding,
- kVerticalShelfVerticalPadding, kVerticalShelfHorizontalPadding));
+ icon_->SetBorder(views::Border::CreateEmptyBorder(gfx::Insets(
+ kVerticalShelfVerticalPadding, kVerticalShelfHorizontalPadding)));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698