Fix code style for dark mode

This commit is contained in:
Ankit Mahato
2023-04-09 02:36:29 +05:30
parent e9f32f8b99
commit b0fd5554dc

View File

@ -108,22 +108,20 @@ const kLightCodeTheme = {
const kDarkCodeTheme = {
'root':
TextStyle(backgroundColor: Color(0xff011627), color: Color(0xffd6deeb)),
'addition':
TextStyle(color: Color(0xffaddb67ff), fontStyle: FontStyle.italic),
'addition': TextStyle(color: Color(0xffaddb67ff)),
'attr': TextStyle(color: Color(0xff7fdbca)),
'attribute': TextStyle(color: Color(0xff80cbc4)),
'built_in': TextStyle(color: Color(0xffaddb67), fontStyle: FontStyle.italic),
'built_in': TextStyle(color: Color(0xffaddb67)),
'builtin-name': TextStyle(color: Color(0xff7fdbca)),
'bullet': TextStyle(color: Color(0xffd9f5dd)),
'class': TextStyle(color: Color(0xffffcb8b)),
'code': TextStyle(color: Color(0xff80CBC4)),
'comment': TextStyle(color: Color(0xff637777), fontStyle: FontStyle.italic),
'deletion':
TextStyle(color: Color(0xffef535090), fontStyle: FontStyle.italic),
'deletion': TextStyle(color: Color(0xffef535090)),
'doctag': TextStyle(color: Color(0xff7fdbca)),
'emphasis': TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
'emphasis': TextStyle(color: Color(0xffc792ea)),
'formula': TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
'function': TextStyle(color: Color(0xff82AAFF)),
'formula': TextStyle(color: Color(0xffc792ea)),
'keyword': TextStyle(color: Color(0xffc792ea)),
'link': TextStyle(color: Color(0xffff869a)),
'literal': TextStyle(color: Color(0xffff5874)),
@ -133,17 +131,14 @@ const kDarkCodeTheme = {
'name': TextStyle(color: Color(0xff7fdbca)),
'number': TextStyle(color: Color(0xffF78C6C)),
'params': TextStyle(color: Color(0xff7fdbca)),
'quote': TextStyle(color: Color(0xff697098), fontStyle: FontStyle.italic),
'quote': TextStyle(color: Color(0xff697098)),
'regexp': TextStyle(color: Color(0xff5ca7e4)),
'section': TextStyle(color: Color(0xff82b1ff)),
'selector-tag': TextStyle(color: Color(0xffff6363)),
'selector-attr': TextStyle(color: Color(0xffc792ea)),
'selector-class': TextStyle(color: Color(0xffaddb67)),
'selector-id': TextStyle(color: Color(0xfffad430)),
'selector-class':
TextStyle(color: Color(0xffaddb67), fontStyle: FontStyle.italic),
'selector-attr':
TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
'selector-pseudo':
TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
'selector-pseudo': TextStyle(color: Color(0xffc792ea)),
'selector-tag': TextStyle(color: Color(0xffff6363)),
'string': TextStyle(color: Color(0xffecc48d)),
'strong': TextStyle(color: Color(0xffaddb67), fontWeight: FontWeight.bold),
'subst': TextStyle(color: Color(0xffd3423e)),
@ -151,7 +146,7 @@ const kDarkCodeTheme = {
'tag': TextStyle(color: Color(0xff7fdbca)),
'template-tag': TextStyle(color: Color(0xffc792ea)),
'template-variable': TextStyle(color: Color(0xffaddb67)),
'title': TextStyle(color: Color(0xffDCDCAA), fontStyle: FontStyle.italic),
'title': TextStyle(color: Color(0xffDCDCAA)),
'type': TextStyle(color: Color(0xff82aaff)),
'variable': TextStyle(color: Color(0xffaddb67)),
};