| import '../ui/fake_flutter/fake_flutter.dart'; |
| import '../ui/theme.dart'; |
| |
| final TextStyle unimportant = TextStyle( |
| color: ThemedColor(Colors.grey.shade500, Colors.grey.shade600), |
| ); |
| const TextStyle regular = TextStyle(color: defaultForeground); |
| final TextStyle warning = TextStyle( |
| color: ThemedColor(Colors.orange.shade500, Colors.orange.shade400), |
| ); |
| final TextStyle error = TextStyle( |
| color: ThemedColor(Colors.red.shade500, Colors.red.shade400), |
| ); |
| final TextStyle link = TextStyle( |
| color: ThemedColor(Colors.blue.shade700, Colors.blue.shade300), |
| decoration: TextDecoration.underline, |
| ); |
| |
| const TextStyle regularBold = |
| TextStyle(color: defaultForeground, fontWeight: FontWeight.w700); |
| const TextStyle regularItalic = |
| TextStyle(color: defaultForeground, fontStyle: FontStyle.italic); |
| |
| /// Pretty sames for common text styles to make it easier to debug output |
| /// containing these names. |
| final Map<TextStyle, String> debugStyleNames = { |
| unimportant: 'grayed', |
| regular: '', |
| warning: 'warning', |
| error: 'error', |
| link: 'link', |
| regularBold: 'bold', |
| regularItalic: 'italic', |
| }; |