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