mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-08 23:02:04 -05:00
fix: add monospace filter for code fonts
This commit is contained in:
@@ -10,7 +10,20 @@ class CodeModel with ChangeNotifier {
|
||||
static const fontSizes = [12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
static final fontFamilies = [
|
||||
'System',
|
||||
...GoogleFonts.asMap().keys,
|
||||
|
||||
// https://fonts.google.com/?category=Monospace
|
||||
...GoogleFonts.asMap().keys.where((element) =>
|
||||
element.endsWith('Mono') ||
|
||||
[
|
||||
'Inconsolata',
|
||||
'Source Code Pro',
|
||||
'Nanum Gothic Coding',
|
||||
'Cousine',
|
||||
'Anonymous Pro',
|
||||
'Courier Prime',
|
||||
'VT323',
|
||||
'Fira Code'
|
||||
].contains(element)),
|
||||
];
|
||||
|
||||
String _theme = 'vs';
|
||||
|
||||
Reference in New Issue
Block a user