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

Side by Side Diff: ui/views/layout/layout_constants.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
« no previous file with comments | « ui/views/layout/grid_layout_unittest.cc ('k') | ui/views/layout/layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
6 #define UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
7
8 // This file contains some constants we use to implement our standard panel
9 // layout.
10 // see: spec 21/4
11
12 namespace views {
13
14 // Left or right margin.
15 const int kPanelHorizMargin = 13;
16
17 // Top or bottom margin.
18 const int kPanelVertMargin = 13;
19
20 // If some UI has some sub UI. Indent horizontally by the following value.
21 const int kPanelHorizIndentation = 24;
22
23 // When several controls are aligned vertically, the baseline should be spaced
24 // by the following number of pixels.
25 const int kPanelVerticalSpacing = 32;
26
27 // Vertical spacing between sub UI.
28 const int kPanelSubVerticalSpacing = 24;
29
30 // Vertical spacing between a label and some control.
31 const int kLabelToControlVerticalSpacing = 8;
32
33 // Small horizontal spacing between controls that are logically related.
34 const int kRelatedControlSmallHorizontalSpacing = 8;
35
36 // Horizontal spacing between controls that are logically related.
37 const int kRelatedControlHorizontalSpacing = 8;
38
39 // Vertical spacing between controls that are logically related.
40 const int kRelatedControlVerticalSpacing = 8;
41
42 // Small vertical spacing between controls that are logically related.
43 const int kRelatedControlSmallVerticalSpacing = 4;
44
45 // Horizontal spacing between controls that are logically unrelated.
46 const int kUnrelatedControlHorizontalSpacing = 12;
47
48 // Larger horizontal spacing between unrelated controls.
49 const int kUnrelatedControlLargeHorizontalSpacing = 20;
50
51 // Vertical spacing between controls that are logically unrelated.
52 const int kUnrelatedControlVerticalSpacing = 20;
53
54 // Larger vertical spacing between unrelated controls.
55 const int kUnrelatedControlLargeVerticalSpacing = 30;
56
57 // Vertical spacing between the edge of the window and the
58 // top or bottom of a button.
59 const int kButtonVEdgeMargin = 9;
60
61 // Vertical spacing between the edge of the window and the
62 // left or right of a button.
63 const int kButtonHEdgeMargin = 13;
64
65 // Vertical spacing between the edge of the window and the
66 // top or bottom of a button (when using new style dialogs).
67 const int kButtonVEdgeMarginNew = 20;
68
69 // Vertical spacing between the edge of the window and the
70 // left or right of a button (when using new style dialogs).
71 const int kButtonHEdgeMarginNew = 20;
72
73 // Horizontal spacing between buttons that are logically related.
74 const int kRelatedButtonHSpacing = 6;
75
76 // Indent of checkboxes relative to related text.
77 const int kCheckboxIndent = 10;
78
79 // Horizontal spacing between the end of an item (i.e. an icon or a checkbox)
80 // and the start of its corresponding text.
81 const int kItemLabelSpacing = 10;
82
83 } // namespace views
84
85 #endif // UI_VIEWS_LAYOUT_LAYOUT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ui/views/layout/grid_layout_unittest.cc ('k') | ui/views/layout/layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698