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

Side by Side Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (Closed)
Patch Set: Fix nits. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/libgtk2ui/native_theme_gtk2.h" 5 #include "chrome/browser/ui/libgtk2ui/native_theme_gtk2.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_frame.h" 9 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_frame.h"
10 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h" 10 #include "chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 return GetTextColor(GetButton(), PRELIGHT); 318 return GetTextColor(GetButton(), PRELIGHT);
319 case kColorId_BlueButtonHoverColor: 319 case kColorId_BlueButtonHoverColor:
320 return GetTextColor(GetBlueButton(), PRELIGHT); 320 return GetTextColor(GetBlueButton(), PRELIGHT);
321 case kColorId_ButtonHoverBackgroundColor: 321 case kColorId_ButtonHoverBackgroundColor:
322 return GetBGColor(GetButton(), PRELIGHT); 322 return GetBGColor(GetButton(), PRELIGHT);
323 case kColorId_BlueButtonPressedColor: 323 case kColorId_BlueButtonPressedColor:
324 return GetTextColor(GetBlueButton(), ACTIVE); 324 return GetTextColor(GetBlueButton(), ACTIVE);
325 case kColorId_BlueButtonShadowColor: 325 case kColorId_BlueButtonShadowColor:
326 return SK_ColorTRANSPARENT; 326 return SK_ColorTRANSPARENT;
327 // return GetTextColor(GetButton(), NORMAL); 327 // return GetTextColor(GetButton(), NORMAL);
328 case kColorId_CallToActionColor: 328 case kColorId_ProminentButtonColor:
329 return GetSystemColor(kColorId_LinkEnabled); 329 return GetSystemColor(kColorId_LinkEnabled);
330 case kColorId_TextOnCallToActionColor: 330 case kColorId_TextOnProminentButtonColor:
331 return GetTextColor(GetLabel(), SELECTED); 331 return GetTextColor(GetLabel(), SELECTED);
332 case kColorId_ButtonPressedShade: 332 case kColorId_ButtonPressedShade:
333 return SK_ColorTRANSPARENT; 333 return SK_ColorTRANSPARENT;
334 334
335 // Textfield 335 // Textfield
336 case kColorId_TextfieldDefaultColor: 336 case kColorId_TextfieldDefaultColor:
337 return GetTextColor(GetEntry(), NORMAL); 337 return GetTextColor(GetEntry(), NORMAL);
338 case kColorId_TextfieldDefaultBackground: 338 case kColorId_TextfieldDefaultBackground:
339 return GetBaseColor(GetEntry(), NORMAL); 339 return GetBaseColor(GetEntry(), NORMAL);
340 340
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 584
585 if (!fake_menu_item) { 585 if (!fake_menu_item) {
586 fake_menu_item = gtk_custom_menu_item_new(); 586 fake_menu_item = gtk_custom_menu_item_new();
587 gtk_menu_shell_append(GTK_MENU_SHELL(GetMenu()), fake_menu_item); 587 gtk_menu_shell_append(GTK_MENU_SHELL(GetMenu()), fake_menu_item);
588 } 588 }
589 589
590 return fake_menu_item; 590 return fake_menu_item;
591 } 591 }
592 592
593 } // namespace libgtk2ui 593 } // namespace libgtk2ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.h ('k') | chrome/browser/ui/views/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698