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

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

Issue 795933009: [AiS] for desktop, two lines and font sytles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed some results table vars; cl format Created 5 years, 9 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/native_theme_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
index 3dec05e03c2df7ed5ca6e361999b24e5561e8570..6030ab8bdf654a80958d927915571c91851b828b 100644
--- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
@@ -373,6 +373,40 @@ GdkColor NativeThemeGtk2::GetSystemGdkColor(ColorId color_id) const {
return GdkAlphaBlend(win_style->text[GTK_STATE_SELECTED],
win_style->bg[GTK_STATE_SELECTED], 0x34);
}
+ case kColorId_ResultsTablePositiveText: {
+ GdkColor color = {0};
+ color.green = ~0;
+ return color;
Peter Kasting 2015/03/14 01:54:13 You should use GetReadableColor() anytime you hard
dschuyler 2015/03/16 21:49:09 Done.
+ }
+ case kColorId_ResultsTablePositiveHoveredText: {
+ GdkColor color = {0};
+ color.green = ~0;
+ GtkStyle* entry_style = GetEntryStyle();
+ return GdkAlphaBlend(color, entry_style->base[GTK_STATE_PRELIGHT], 0x80);
+ }
+ case kColorId_ResultsTablePositiveSelectedText: {
+ GdkColor color = {0};
+ color.green = ~0;
+ GtkStyle* entry_style = GetEntryStyle();
+ return GdkAlphaBlend(color, entry_style->base[GTK_STATE_SELECTED], 0x80);
Peter Kasting 2015/03/14 01:54:14 I don't think this is what you want. You're makin
dschuyler 2015/03/16 21:49:09 Done.
+ }
+ case kColorId_ResultsTableNegativeText: {
+ GdkColor color = {0};
+ color.red = ~0;
+ return color;
+ }
+ case kColorId_ResultsTableNegativeHoveredText: {
+ GdkColor color = {0};
+ color.red = ~0;
+ GtkStyle* entry_style = GetEntryStyle();
+ return GdkAlphaBlend(color, entry_style->base[GTK_STATE_PRELIGHT], 0x80);
+ }
+ case kColorId_ResultsTableNegativeSelectedText: {
+ GdkColor color = {0};
+ color.red = ~0;
+ GtkStyle* entry_style = GetEntryStyle();
+ return GdkAlphaBlend(color, entry_style->base[GTK_STATE_SELECTED], 0x80);
+ }
case kColorId_NumColors:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698