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

Side by Side Diff: sky/sdk/lib/painting/text_style.dart

Issue 1217573003: Fix all the components to pick the right colours from the theme. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/example/widgets/tabs.dart ('k') | sky/sdk/lib/theme/typography.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 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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/tabs.dart ('k') | sky/sdk/lib/theme/typography.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698