mirror of
https://github.com/foss42/apidash.git
synced 2025-06-06 11:28:07 +08:00
Fix code style for dark mode
This commit is contained in:
@ -108,22 +108,20 @@ const kLightCodeTheme = {
|
|||||||
const kDarkCodeTheme = {
|
const kDarkCodeTheme = {
|
||||||
'root':
|
'root':
|
||||||
TextStyle(backgroundColor: Color(0xff011627), color: Color(0xffd6deeb)),
|
TextStyle(backgroundColor: Color(0xff011627), color: Color(0xffd6deeb)),
|
||||||
'addition':
|
'addition': TextStyle(color: Color(0xffaddb67ff)),
|
||||||
TextStyle(color: Color(0xffaddb67ff), fontStyle: FontStyle.italic),
|
|
||||||
'attr': TextStyle(color: Color(0xff7fdbca)),
|
'attr': TextStyle(color: Color(0xff7fdbca)),
|
||||||
'attribute': TextStyle(color: Color(0xff80cbc4)),
|
'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)),
|
'builtin-name': TextStyle(color: Color(0xff7fdbca)),
|
||||||
'bullet': TextStyle(color: Color(0xffd9f5dd)),
|
'bullet': TextStyle(color: Color(0xffd9f5dd)),
|
||||||
'class': TextStyle(color: Color(0xffffcb8b)),
|
'class': TextStyle(color: Color(0xffffcb8b)),
|
||||||
'code': TextStyle(color: Color(0xff80CBC4)),
|
'code': TextStyle(color: Color(0xff80CBC4)),
|
||||||
'comment': TextStyle(color: Color(0xff637777), fontStyle: FontStyle.italic),
|
'comment': TextStyle(color: Color(0xff637777), fontStyle: FontStyle.italic),
|
||||||
'deletion':
|
'deletion': TextStyle(color: Color(0xffef535090)),
|
||||||
TextStyle(color: Color(0xffef535090), fontStyle: FontStyle.italic),
|
|
||||||
'doctag': TextStyle(color: Color(0xff7fdbca)),
|
'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)),
|
'function': TextStyle(color: Color(0xff82AAFF)),
|
||||||
'formula': TextStyle(color: Color(0xffc792ea)),
|
|
||||||
'keyword': TextStyle(color: Color(0xffc792ea)),
|
'keyword': TextStyle(color: Color(0xffc792ea)),
|
||||||
'link': TextStyle(color: Color(0xffff869a)),
|
'link': TextStyle(color: Color(0xffff869a)),
|
||||||
'literal': TextStyle(color: Color(0xffff5874)),
|
'literal': TextStyle(color: Color(0xffff5874)),
|
||||||
@ -133,17 +131,14 @@ const kDarkCodeTheme = {
|
|||||||
'name': TextStyle(color: Color(0xff7fdbca)),
|
'name': TextStyle(color: Color(0xff7fdbca)),
|
||||||
'number': TextStyle(color: Color(0xffF78C6C)),
|
'number': TextStyle(color: Color(0xffF78C6C)),
|
||||||
'params': TextStyle(color: Color(0xff7fdbca)),
|
'params': TextStyle(color: Color(0xff7fdbca)),
|
||||||
'quote': TextStyle(color: Color(0xff697098), fontStyle: FontStyle.italic),
|
'quote': TextStyle(color: Color(0xff697098)),
|
||||||
'regexp': TextStyle(color: Color(0xff5ca7e4)),
|
'regexp': TextStyle(color: Color(0xff5ca7e4)),
|
||||||
'section': TextStyle(color: Color(0xff82b1ff)),
|
'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-id': TextStyle(color: Color(0xfffad430)),
|
||||||
'selector-class':
|
'selector-pseudo': TextStyle(color: Color(0xffc792ea)),
|
||||||
TextStyle(color: Color(0xffaddb67), fontStyle: FontStyle.italic),
|
'selector-tag': TextStyle(color: Color(0xffff6363)),
|
||||||
'selector-attr':
|
|
||||||
TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
|
|
||||||
'selector-pseudo':
|
|
||||||
TextStyle(color: Color(0xffc792ea), fontStyle: FontStyle.italic),
|
|
||||||
'string': TextStyle(color: Color(0xffecc48d)),
|
'string': TextStyle(color: Color(0xffecc48d)),
|
||||||
'strong': TextStyle(color: Color(0xffaddb67), fontWeight: FontWeight.bold),
|
'strong': TextStyle(color: Color(0xffaddb67), fontWeight: FontWeight.bold),
|
||||||
'subst': TextStyle(color: Color(0xffd3423e)),
|
'subst': TextStyle(color: Color(0xffd3423e)),
|
||||||
@ -151,7 +146,7 @@ const kDarkCodeTheme = {
|
|||||||
'tag': TextStyle(color: Color(0xff7fdbca)),
|
'tag': TextStyle(color: Color(0xff7fdbca)),
|
||||||
'template-tag': TextStyle(color: Color(0xffc792ea)),
|
'template-tag': TextStyle(color: Color(0xffc792ea)),
|
||||||
'template-variable': TextStyle(color: Color(0xffaddb67)),
|
'template-variable': TextStyle(color: Color(0xffaddb67)),
|
||||||
'title': TextStyle(color: Color(0xffDCDCAA), fontStyle: FontStyle.italic),
|
'title': TextStyle(color: Color(0xffDCDCAA)),
|
||||||
'type': TextStyle(color: Color(0xff82aaff)),
|
'type': TextStyle(color: Color(0xff82aaff)),
|
||||||
'variable': TextStyle(color: Color(0xffaddb67)),
|
'variable': TextStyle(color: Color(0xffaddb67)),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user