| OLD | NEW |
| 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 Loading... |
| 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 | |
| OLD | NEW |