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

Unified Diff: ui/views/views_delegate.cc

Issue 2702403010: Fix the absence of padding on some UI buttons. (Closed)
Patch Set: change switch 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
Index: ui/views/views_delegate.cc
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc
index 8856e7e8c12f90cb65c58c161f95953a1573ea3b..8a78a96dedebbfa88229cb5d34284fd31393e216 100644
--- a/ui/views/views_delegate.cc
+++ b/ui/views/views_delegate.cc
@@ -152,12 +152,16 @@ gfx::Insets ViewsDelegate::GetBubbleDialogMargins() const {
return gfx::Insets(kPanelVertMargin, kPanelHorizMargin);
}
+int ViewsDelegate::GetButtonMinimumWidth() const {
+ return kMinimumButtonWidth;
+}
+
int ViewsDelegate::GetDialogButtonMinimumWidth() const {
return kDialogMinimumButtonWidth;
}
int ViewsDelegate::GetButtonHorizontalPadding() const {
- return 0;
+ return kButtonHorizontalPadding;
}
ViewsDelegate::ViewsDelegate()

Powered by Google App Engine
This is Rietveld 408576698