Commit 5b17a406 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Fix stacked notification icon size and padding

Change-Id: Id28394f3d11e190c58b05e37dbdfbef34d95a7d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1862857
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706225}
parent 338b642e
......@@ -128,9 +128,7 @@ StackedNotificationBar::StackedNotificationBar(
SetVisible(false);
auto* layout = SetLayoutManager(std::make_unique<views::BoxLayout>(
views::BoxLayout::Orientation::kHorizontal,
gfx::Insets(0, kStackingNotificationClearAllButtonPadding.left(), 0, 0),
0));
views::BoxLayout::Orientation::kHorizontal));
layout->set_cross_axis_alignment(
views::BoxLayout::CrossAxisAlignment::kStretch);
......@@ -139,7 +137,8 @@ StackedNotificationBar::StackedNotificationBar(
notification_icons_container_->SetLayoutManager(
std::make_unique<views::BoxLayout>(
views::BoxLayout::Orientation::kHorizontal,
kStackedNotificationIconsContainerPadding));
kStackedNotificationIconsContainerPadding,
kStackedNotificationBarIconSpacing));
AddChildView(notification_icons_container_);
}
......
......@@ -130,9 +130,10 @@ constexpr gfx::Insets kUnifiedSystemInfoDateViewPadding(3);
// Constants used in StackedNotificationBar located on top of the message
// center.
constexpr gfx::Insets kStackedNotificationIconsContainerPadding(2, 0, 0, 6);
constexpr int kStackedNotificationBarMaxIcons = 5;
constexpr int kStackedNotificationIconSize = 15;
constexpr gfx::Insets kStackedNotificationIconsContainerPadding(1, 16, 0, 8);
constexpr int kStackedNotificationBarMaxIcons = 3;
constexpr int kStackedNotificationBarIconSpacing = 6;
constexpr int kStackedNotificationIconSize = 18;
// Constants used in FeaturePodsView of UnifiedSystemTray.
constexpr gfx::Size kUnifiedFeaturePodIconSize(48, 48);
......
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