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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.cc

Issue 2382443007: Clean up NativeTheme (particularly CommonTheme). (Closed)
Patch Set: tdandersonreview Created 4 years, 3 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: chrome/browser/ui/libgtk2ui/gtk2_ui.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
index ef6b7c012ecc44d88db50ffb0d849a1d56e2284d..6ab5f1f524ab38cb626bf0824e1ef45dda10bf16 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc
@@ -813,7 +813,7 @@ void Gtk2UI::LoadGtkValues() {
NativeThemeGtk2* theme = NativeThemeGtk2::instance();
SkColor toolbar_color =
- theme->GetSystemColor(ui::NativeTheme::kColorId_LabelBackgroundColor);
+ theme->GetSystemColor(ui::NativeTheme::kColorId_DialogBackground);
SkColor label_color =
theme->GetSystemColor(ui::NativeTheme::kColorId_LabelEnabledColor);
@@ -1033,14 +1033,12 @@ void Gtk2UI::GetNormalButtonTintHSL(color_utils::HSL* tint) const {
NativeThemeGtk2* theme = NativeThemeGtk2::instance();
SkColor accent_color =
- theme->GetSystemColor(
- ui::NativeTheme::kColorId_ButtonHighlightColor);
+ theme->GetSystemColor(ui::NativeTheme::kColorId_ProminentButtonColor);
SkColor text_color =
theme->GetSystemColor(
ui::NativeTheme::kColorId_LabelEnabledColor);
SkColor base_color =
- theme->GetSystemColor(
- ui::NativeTheme::kColorId_LabelBackgroundColor);
+ theme->GetSystemColor(ui::NativeTheme::kColorId_DialogBackground);
PickButtonTintFromColors(accent_color, text_color, base_color, tint);
}
@@ -1049,8 +1047,7 @@ void Gtk2UI::GetNormalEntryForegroundHSL(color_utils::HSL* tint) const {
NativeThemeGtk2* theme = NativeThemeGtk2::instance();
SkColor accent_color =
- theme->GetSystemColor(
- ui::NativeTheme::kColorId_ButtonHighlightColor);
+ theme->GetSystemColor(ui::NativeTheme::kColorId_ProminentButtonColor);
SkColor text_color =
theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldDefaultColor);

Powered by Google App Engine
This is Rietveld 408576698