| 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 import 'dart:sky'; | 5 import 'dart:sky'; |
| 6 | 6 |
| 7 enum FontWeight { w100, w200, w300, w400, w500, w600, w700, w800, w900 } | 7 enum FontWeight { w100, w200, w300, w400, w500, w600, w700, w800, w900 } |
| 8 const thin = FontWeight.w100; | |
| 9 const extraLight = FontWeight.w200; | |
| 10 const light = FontWeight.w300; | |
| 11 const normal = FontWeight.w400; | 8 const normal = FontWeight.w400; |
| 12 const medium = FontWeight.w500; | |
| 13 const semiBold = FontWeight.w600; | |
| 14 const bold = FontWeight.w700; | 9 const bold = FontWeight.w700; |
| 15 const extraBold = FontWeight.w800; | |
| 16 const black = FontWeight.w900; | |
| 17 | 10 |
| 18 enum TextAlign { left, right, center } | 11 enum TextAlign { left, right, center } |
| 19 | 12 |
| 20 enum TextDecoration { none, underline, overline, lineThrough } | 13 enum TextDecoration { none, underline, overline, lineThrough } |
| 21 const underline = const <TextDecoration>[TextDecoration.underline]; | 14 const underline = const <TextDecoration>[TextDecoration.underline]; |
| 22 const overline = const <TextDecoration>[TextDecoration.overline]; | 15 const overline = const <TextDecoration>[TextDecoration.overline]; |
| 23 const lineThrough = const <TextDecoration>[TextDecoration.lineThrough]; | 16 const lineThrough = const <TextDecoration>[TextDecoration.lineThrough]; |
| 24 | 17 |
| 25 enum TextDecorationStyle { solid, double, dotted, dashed, wavy } | 18 enum TextDecorationStyle { solid, double, dotted, dashed, wavy } |
| 26 | 19 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 result.add('${prefix}decoration: $decoration'); | 197 result.add('${prefix}decoration: $decoration'); |
| 205 if (decorationColor != null) | 198 if (decorationColor != null) |
| 206 result.add('${prefix}decorationColor: $decorationColor'); | 199 result.add('${prefix}decorationColor: $decorationColor'); |
| 207 if (decorationStyle != null) | 200 if (decorationStyle != null) |
| 208 result.add('${prefix}decorationStyle: $decorationStyle'); | 201 result.add('${prefix}decorationStyle: $decorationStyle'); |
| 209 if (result.isEmpty) | 202 if (result.isEmpty) |
| 210 return '${prefix}<no style specified>'; | 203 return '${prefix}<no style specified>'; |
| 211 return result.join('\n'); | 204 return result.join('\n'); |
| 212 } | 205 } |
| 213 } | 206 } |
| OLD | NEW |