mirror of
https://github.com/foss42/apidash.git
synced 2025-06-06 11:28:07 +08:00
used themes.dart file based colors
This commit is contained in:
@ -83,10 +83,15 @@ class _JsonTextFieldEditorState extends State<JsonTextFieldEditor> {
|
||||
},
|
||||
child: JsonTextField(
|
||||
stringHighlightStyle: kCodeStyle.copyWith(
|
||||
color: kColorJSONString,
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? kDarkCodeTheme['string']?.color
|
||||
: kLightCodeTheme['string']?.color,
|
||||
),
|
||||
|
||||
keyHighlightStyle: kCodeStyle.copyWith(
|
||||
color: kColorJSONKey,
|
||||
color: Theme.of(context).brightness == Brightness.dark
|
||||
? kDarkCodeTheme['attr']?.color
|
||||
: kLightCodeTheme['attr']?.color,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
errorContainerDecoration: BoxDecoration(
|
||||
|
@ -9,9 +9,6 @@ const kColorRed = Colors.red;
|
||||
final kColorLightDanger = Colors.red.withOpacity(0.9);
|
||||
const kColorDarkDanger = Color(0xffcf6679);
|
||||
|
||||
const kColorJSONKey = Color(0xFF1757BA);
|
||||
const kColorJSONString = Color(0xFFA82323);
|
||||
|
||||
const kColorSchemeSeed = Colors.blue;
|
||||
|
||||
final kColorStatusCodeDefault = Colors.grey.shade700;
|
||||
|
Reference in New Issue
Block a user