Commit 35f292f0 authored by Sundoo Kim's avatar Sundoo Kim Committed by Commit Bot

Fix location bar icon size/color

Fix swapping argument to FromVectorIcon() in location bar.

Bug: 1123344
Change-Id: Ib2ddcd50b5095d349f9d996f750e9b61f6c52860
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385478Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803113}
parent 2e9d8072
...@@ -437,8 +437,8 @@ ui::ImageModel CustomTabBarView::GetLocationIcon( ...@@ -437,8 +437,8 @@ ui::ImageModel CustomTabBarView::GetLocationIcon(
LocationIconView::Delegate::IconFetchedCallback on_icon_fetched) const { LocationIconView::Delegate::IconFetchedCallback on_icon_fetched) const {
return ui::ImageModel::FromVectorIcon( return ui::ImageModel::FromVectorIcon(
delegate_->GetLocationBarModel()->GetVectorIcon(), delegate_->GetLocationBarModel()->GetVectorIcon(),
GetLayoutConstant(LOCATION_BAR_ICON_SIZE), GetSecurityChipColor(GetLocationBarModel()->GetSecurityLevel()),
GetSecurityChipColor(GetLocationBarModel()->GetSecurityLevel())); GetLayoutConstant(LOCATION_BAR_ICON_SIZE));
} }
void CustomTabBarView::ButtonPressed(views::Button* sender, void CustomTabBarView::ButtonPressed(views::Button* sender,
......
...@@ -239,8 +239,8 @@ void PermissionChip::UpdatePermissionIconAndTextColor() { ...@@ -239,8 +239,8 @@ void PermissionChip::UpdatePermissionIconAndTextColor() {
chip_button_->SetEnabledTextColors(enabled_text_color); chip_button_->SetEnabledTextColors(enabled_text_color);
chip_button_->SetImageModel( chip_button_->SetImageModel(
views::Button::STATE_NORMAL, views::Button::STATE_NORMAL,
ui::ImageModel::FromVectorIcon(GetPermissionIconId(), GetIconSize(), ui::ImageModel::FromVectorIcon(GetPermissionIconId(), enabled_text_color,
enabled_text_color)); GetIconSize()));
} }
const gfx::VectorIcon& PermissionChip::GetPermissionIconId() { const gfx::VectorIcon& PermissionChip::GetPermissionIconId() {
......
...@@ -55,8 +55,8 @@ void SelectedKeywordView::SetCustomImage(const gfx::Image& image) { ...@@ -55,8 +55,8 @@ void SelectedKeywordView::SetCustomImage(const gfx::Image& image) {
IconLabelBubbleView::SetImageModel(ui::ImageModel::FromImage(image)); IconLabelBubbleView::SetImageModel(ui::ImageModel::FromImage(image));
} else { } else {
IconLabelBubbleView::SetImageModel(ui::ImageModel::FromVectorIcon( IconLabelBubbleView::SetImageModel(ui::ImageModel::FromVectorIcon(
vector_icons::kSearchIcon, GetLayoutConstant(LOCATION_BAR_ICON_SIZE), vector_icons::kSearchIcon, GetForegroundColor(),
GetForegroundColor())); GetLayoutConstant(LOCATION_BAR_ICON_SIZE)));
} }
} }
......
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