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

Unified Diff: ui/views/layout/layout_constants.h

Issue 2696263002: Refactor ViewsDelegate and MD-ify the icon-to-text spacing for checkbox and radiobutton (Closed)
Patch Set: Reduced ViewsDelegate layout/metric functions to only two functions 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/layout/layout_constants.h
diff --git a/ui/views/layout/layout_constants.h b/ui/views/layout/layout_constants.h
index a0ab3f1abe59ded939903d8ddc6d98cc744a28fb..80bbce6cd37855da89949f2e483dc4db5d4baaee 100644
--- a/ui/views/layout/layout_constants.h
+++ b/ui/views/layout/layout_constants.h
@@ -83,6 +83,10 @@ constexpr int kCheckboxIndent = 10;
// and the start of its corresponding text.
constexpr int kItemLabelSpacing = 10;
+// Horizontal spacing between the image of a label button and its text. This
+// affects checkboxes and radiobuttons.
+constexpr int kIconTextSpacing = 5;
sky 2017/02/17 20:50:46 Isn't the goal to effectively get rid of this file
kylix_rd 2017/02/17 21:40:51 That would then be a circular reference, which wou
sky 2017/02/17 22:39:03 I was hoping you could call directly to the base i
Peter Kasting 2017/02/18 00:52:58 Yes. And I'm not a huge fan of how LayoutDelegate
+
} // namespace views
#endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698