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

Unified Diff: ash/common/system/chromeos/network/vpn_list_view.cc

Issue 2661023006: Remove unused references to NativeTheme in TrayPopupItemStyle. (Closed)
Patch Set: slight improvement Created 3 years, 11 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
« no previous file with comments | « ash/common/system/chromeos/network/tray_vpn.cc ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/network/vpn_list_view.cc
diff --git a/ash/common/system/chromeos/network/vpn_list_view.cc b/ash/common/system/chromeos/network/vpn_list_view.cc
index d817f9972deb46abc00eab06a7620565411065b0..f4a21d2e5d82a5625115507959c898a1947018b0 100644
--- a/ash/common/system/chromeos/network/vpn_list_view.cc
+++ b/ash/common/system/chromeos/network/vpn_list_view.cc
@@ -124,12 +124,14 @@ class VPNListProviderEntryMd : public views::ButtonListener,
label->SetText(base::ASCIIToUTF16(name));
tri_view->AddView(TriView::Container::CENTER, label);
- gfx::ImageSkia icon = gfx::CreateVectorIcon(kSystemMenuAddConnectionIcon,
- style.GetIconColor());
+ const SkColor image_color = GetNativeTheme()->GetSystemColor(
+ ui::NativeTheme::kColorId_ProminentButtonColor);
+ gfx::ImageSkia icon =
+ gfx::CreateVectorIcon(kSystemMenuAddConnectionIcon, image_color);
SystemMenuButton* add_vpn_button =
new SystemMenuButton(this, TrayPopupInkDropStyle::HOST_CENTERED, icon,
icon, button_accessible_name_id);
- add_vpn_button->SetInkDropColor(style.GetIconColor());
+ add_vpn_button->SetInkDropColor(image_color);
add_vpn_button->SetEnabled(true);
tri_view->AddView(TriView::Container::END, add_vpn_button);
}
« no previous file with comments | « ash/common/system/chromeos/network/tray_vpn.cc ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698