used themes.dart file based colors

This commit is contained in:
Mrudul-2
2025-02-22 22:43:01 +05:30
parent d11209f4d6
commit c078a11c56
2 changed files with 7 additions and 5 deletions

View File

@ -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(

View File

@ -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;