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

Unified Diff: ui/views/controls/button/blue_button.cc

Issue 309203002: Fix the appearance of Views BlueButtons with GTK theming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/blue_button.cc
diff --git a/ui/views/controls/button/blue_button.cc b/ui/views/controls/button/blue_button.cc
index ddf7e37b99e3371f4530c72edfdf3fbe245d1ea5..7189177841012a337835a61bba74f8de75cb96d4 100644
--- a/ui/views/controls/button/blue_button.cc
+++ b/ui/views/controls/button/blue_button.cc
@@ -26,7 +26,8 @@ BlueButton::BlueButton(ButtonListener* listener, const base::string16& text)
: LabelButton(listener, text) {
// Inherit STYLE_BUTTON insets, minimum size, alignment, etc.
SetStyle(STYLE_BUTTON);
- UpdateThemedBorder();
+ // Set the border explicitly, to avoid LinuxUI border theming.
+ SetBorder(CreateDefaultBorder().PassAs<Border>());
}
BlueButton::~BlueButton() {}
« no previous file with comments | « no previous file | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698