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

Side by Side Diff: ui/base/default_style.h

Issue 1689623004: Start removing enum ui::ResourceBundle::FontStyle, fix MacViews font sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review: build upon the old style like LoadFontsIfNecessary did Created 4 years, 9 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
(Empty)
1 // Copyright 2016 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_BASE_DEFAULT_STYLE_H_
6 #define UI_BASE_DEFAULT_STYLE_H_
7
8 #include "build/build_config.h"
9
10 // This file contains the constants that provide the default style for UI
tfarina 2016/02/24 20:08:55 Thanks! Can I move the things in https://chromium
tapted 2016/02/25 00:21:11 An earlier patchset did this, but the methods need
11 // controls and dialogs.
12
13 namespace ui {
14
15 // Default font size delta for messages in dialogs. Note that on Windows, the
16 // "base" font size is determined by consulting the system for the font used in
17 // native MessageBox dialogs. On Mac, it is [NSFont systemFontSize]. Linux
18 // consults the default font description for a GTK Widget context. On ChromeOS,
19 // ui::ResourceBundle provides a description via IDS_UI_FONT_FAMILY_CROS.
20 const int kMessageFontSizeDelta = 0;
21
22 // Default font size delta for dialog buttons, textfields, and labels.
23 #if defined(OS_MACOSX)
24 // Cocoa dialogs prefer [NSFont smallSystemFontSize] for labels (typically 11pt
25 // vs 13pt).
26 const int kLabelFontSizeDelta = -2;
27 #else
28 const int kLabelFontSizeDelta = 0;
29 #endif
30
31 // Font size delta for dialog titles.
32 #if defined(OS_MACOSX)
33 const int kTitleFontSizeDelta = 0;
34 #else
35 const int kTitleFontSizeDelta = 3;
36 #endif
37
38 } // namespace ui
39
40 #endif // UI_BASE_DEFAULT_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698