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: chrome/browser/ui/libgtkui/gtk_ui.cc

Issue 2683953005: Gtk3: More fixes and refactorings (Closed)
Patch Set: Remove lambda Created 3 years, 10 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 | « no previous file | chrome/browser/ui/libgtkui/gtk_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_ui.cc
diff --git a/chrome/browser/ui/libgtkui/gtk_ui.cc b/chrome/browser/ui/libgtkui/gtk_ui.cc
index be90637a11a7a40a34fafc894dc135243dd2b24e..2e3e41a911376e53a7961041b0dad6f80bc346b9 100644
--- a/chrome/browser/ui/libgtkui/gtk_ui.cc
+++ b/chrome/browser/ui/libgtkui/gtk_ui.cc
@@ -841,14 +841,15 @@ void GtkUi::LoadGtkValues() {
colors_[ThemeProperties::COLOR_BACKGROUND_TAB_TEXT] =
color_utils::BlendTowardOppositeLuma(toolbar_text_color, 50);
- // Color drawn around the location bar.
- colors_[ThemeProperties::COLOR_LOCATION_BAR_BORDER] =
+ SkColor location_bar_border =
GetBorderColor("GtkToolbar#toolbar GtkEntry#entry");
+ if (SkColorGetA(location_bar_border)) {
+ colors_[ThemeProperties::COLOR_LOCATION_BAR_BORDER] = location_bar_border;
+ }
- inactive_selection_bg_color_ =
- GetBgColor("GtkEntry#entry:backdrop #selection:selected");
+ inactive_selection_bg_color_ = GetSelectedBgColor("GtkEntry#entry:backdrop");
inactive_selection_fg_color_ =
- GetFgColor("GtkEntry#entry:backdrop #selection:selected");
+ GetSelectedTextColor("GtkEntry#entry:backdrop");
SkColor toolbar_separator_horizontal =
GetSeparatorColor("GtkToolbar#toolbar GtkSeparator#separator.horizontal");
@@ -884,10 +885,8 @@ void GtkUi::LoadGtkValues() {
header_button_inactive_border;
}
- SkColor ntp_bg = GetBgColor("");
- colors_[ThemeProperties::COLOR_NTP_BACKGROUND] = ntp_bg;
- colors_[ThemeProperties::COLOR_NTP_TEXT] =
- color_utils::GetReadableColor(GetFgColor("GtkLabel#label"), ntp_bg);
+ colors_[ThemeProperties::COLOR_NTP_BACKGROUND] = GetBgColor("GtkEntry#entry");
+ colors_[ThemeProperties::COLOR_NTP_TEXT] = GetFgColor("GtkEntry#entry");
colors_[ThemeProperties::COLOR_NTP_HEADER] =
GetBorderColor("GtkButton#button");
#endif
@@ -895,13 +894,13 @@ void GtkUi::LoadGtkValues() {
colors_[ThemeProperties::COLOR_TOOLBAR] = toolbar_color;
colors_[ThemeProperties::COLOR_CONTROL_BACKGROUND] = toolbar_color;
- colors_[ThemeProperties::COLOR_NTP_LINK] =
- native_theme_->GetSystemColor(ui::NativeTheme::kColorId_LinkEnabled);
+ colors_[ThemeProperties::COLOR_NTP_LINK] = native_theme_->GetSystemColor(
+ ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused);
// Generate the colors that we pass to WebKit.
SetScrollbarColors();
- focus_ring_color_ = native_theme_->GetSystemColor(
- ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused);
+ focus_ring_color_ =
+ native_theme_->GetSystemColor(ui::NativeTheme::kColorId_LinkEnabled);
// Some GTK themes only define the text selection colors on the GtkEntry
// class, so we need to use that for getting selection colors.
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/gtk_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698