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

Side by Side Diff: sky/sdk/lib/theme/typography.dart

Issue 1232313002: Use package:sky imports consistently (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix BUILD.gn Created 5 years, 5 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 | « sky/sdk/lib/theme/theme_data.dart ('k') | sky/sdk/lib/widgets/animated_component.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // See http://www.google.com/design/spec/style/typography.html 5 // See http://www.google.com/design/spec/style/typography.html
6 6
7 import 'dart:sky'; 7 import 'dart:sky';
8 8
9 import '../painting/text_style.dart'; 9 import 'package:sky/painting/text_style.dart';
10 10
11 // TODO(eseidel): Font weights are supposed to be language relative! 11 // TODO(eseidel): Font weights are supposed to be language relative!
12 // These values are for English-like text. 12 // These values are for English-like text.
13 class TextTheme { 13 class TextTheme {
14 TextTheme._(Color color54, Color color87) 14 TextTheme._(Color color54, Color color87)
15 : display4 = new TextStyle(fontSize: 112.0, fontWeight: FontWeight.w100, col or: color54), 15 : display4 = new TextStyle(fontSize: 112.0, fontWeight: FontWeight.w100, col or: color54),
16 display3 = new TextStyle(fontSize: 56.0, fontWeight: FontWeight.w400, col or: color54), 16 display3 = new TextStyle(fontSize: 56.0, fontWeight: FontWeight.w400, col or: color54),
17 display2 = new TextStyle(fontSize: 45.0, fontWeight: FontWeight.w400, col or: color54, height: 48.0 / 45.0), 17 display2 = new TextStyle(fontSize: 45.0, fontWeight: FontWeight.w400, col or: color54, height: 48.0 / 45.0),
18 display1 = new TextStyle(fontSize: 34.0, fontWeight: FontWeight.w400, col or: color54, height: 40.0 / 34.0), 18 display1 = new TextStyle(fontSize: 34.0, fontWeight: FontWeight.w400, col or: color54, height: 40.0 / 34.0),
19 headline = new TextStyle(fontSize: 24.0, fontWeight: FontWeight.w400, col or: color87, height: 32.0 / 24.0), 19 headline = new TextStyle(fontSize: 24.0, fontWeight: FontWeight.w400, col or: color87, height: 32.0 / 24.0),
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const TextStyle error = const TextStyle( 55 const TextStyle error = const TextStyle(
56 color: const Color(0xD0FF0000), 56 color: const Color(0xD0FF0000),
57 fontFamily: 'monospace', 57 fontFamily: 'monospace',
58 fontSize: 48.0, 58 fontSize: 48.0,
59 fontWeight: FontWeight.w900, 59 fontWeight: FontWeight.w900,
60 textAlign: TextAlign.right, 60 textAlign: TextAlign.right,
61 decoration: underline, 61 decoration: underline,
62 decorationColor: const Color(0xFFFF00), 62 decorationColor: const Color(0xFFFF00),
63 decorationStyle: TextDecorationStyle.double 63 decorationStyle: TextDecorationStyle.double
64 ); 64 );
65
OLDNEW
« no previous file with comments | « sky/sdk/lib/theme/theme_data.dart ('k') | sky/sdk/lib/widgets/animated_component.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698