From 7261b46559477460c46e3f4939fa5da99478fe39 Mon Sep 17 00:00:00 2001 From: wanghongenpin Date: Sat, 10 Jan 2026 08:09:15 +0800 Subject: [PATCH] Update dark theme colors for improved visibility and aesthetics (#656) --- lib/ui/component/json/json_viewer.dart | 2 +- lib/ui/component/json/theme.dart | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ui/component/json/json_viewer.dart b/lib/ui/component/json/json_viewer.dart index c0b7a40..f99665c 100644 --- a/lib/ui/component/json/json_viewer.dart +++ b/lib/ui/component/json/json_viewer.dart @@ -339,7 +339,7 @@ Widget _getValueWidget(dynamic value, ColorTheme colorTheme, style = TextStyle(color: colorTheme.keyword); } else if (value is num) { valueStr = value.toString(); - style = TextStyle(color: colorTheme.keyword); + style = TextStyle(color: colorTheme.number); } else if (value is String) { valueStr = '"$value"'; style = TextStyle(color: colorTheme.string); diff --git a/lib/ui/component/json/theme.dart b/lib/ui/component/json/theme.dart index 8165af3..7445539 100644 --- a/lib/ui/component/json/theme.dart +++ b/lib/ui/component/json/theme.dart @@ -13,12 +13,12 @@ class ColorTheme { ); static ColorTheme dark(ColorScheme colorScheme) => ColorTheme( - background: const Color(0xff2b2b2b), - propertyKey: const Color(0xff9876aa), - colon: const Color(0xffcc7832), - string: const Color(0xff6a8759), - number: const Color(0xff6897bb), - keyword: const Color(0xffcc7832), + background: const Color(0XFF1E1F22), + propertyKey: const Color(0XFFC77DBB), + colon: const Color(0XFFBCBEC4), + string: const Color(0XFF6AAB73), + number: const Color(0XFF2AACB8), + keyword: const Color(0XFFCF8E6D), searchMatchColor: colorScheme.inversePrimary, searchMatchCurrentColor: colorScheme.primary, );