yangjia 1 månad sedan
förälder
incheckning
512597304a
1 ändrade filer med 20 tillägg och 10 borttagningar
  1. 20 10
      lib/presentation/screens/home/home_screen.dart

+ 20 - 10
lib/presentation/screens/home/home_screen.dart

@@ -1000,11 +1000,21 @@ class _QuickActions extends ConsumerWidget {
   }
 
   static void _showDevelopingDialog(BuildContext context) {
+    final l10n = AppLocalizations.of(context)!;
+    final isDark = Theme.of(context).brightness == Brightness.dark;
+    final dialogBg = isDark ? AppColors.darkBgSecondary : Colors.white;
+    final titleColor = isDark ? AppColors.darkTextPrimary : Colors.black;
+    final messageColor = isDark
+        ? AppColors.darkTextSecondary
+        : const Color(0xFF666666);
+    final buttonBg = isDark ? AppColors.brand : Colors.black;
+    final buttonFg = isDark ? Colors.black : Colors.white;
+
     showDialog<void>(
       context: context,
       barrierDismissible: true,
       builder: (dialogContext) => Dialog(
-        backgroundColor: Colors.white,
+        backgroundColor: dialogBg,
         shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(14)),
         insetPadding: const EdgeInsets.symmetric(horizontal: 48, vertical: 48),
         child: Padding(
@@ -1012,19 +1022,19 @@ class _QuickActions extends ConsumerWidget {
           child: Column(
             mainAxisSize: MainAxisSize.min,
             children: [
-              const Text(
-                '敬请期待',
+              Text(
+                l10n.appHomeComingSoon,
                 style: TextStyle(
-                  color: Colors.black,
+                  color: titleColor,
                   fontSize: 16,
                   fontWeight: FontWeight.w600,
                 ),
               ),
               const SizedBox(height: 8),
-              const Text(
-                '该功能正在开发中',
+              Text(
+                l10n.appHomeDevelopingMessage,
                 style: TextStyle(
-                  color: Color(0xFF666666),
+                  color: messageColor,
                   fontSize: 13,
                 ),
               ),
@@ -1034,14 +1044,14 @@ class _QuickActions extends ConsumerWidget {
                 child: TextButton(
                   onPressed: () => Navigator.of(dialogContext).pop(),
                   style: TextButton.styleFrom(
-                    backgroundColor: Colors.black,
-                    foregroundColor: Colors.white,
+                    backgroundColor: buttonBg,
+                    foregroundColor: buttonFg,
                     shape: RoundedRectangleBorder(
                       borderRadius: BorderRadius.circular(8),
                     ),
                     padding: const EdgeInsets.symmetric(vertical: 12),
                   ),
-                  child: const Text('确定'),
+                  child: Text(l10n.confirmLabel),
                 ),
               ),
             ],