Explorar o código

button text not visible on dark mode fix

ashilkn %!s(int64=2) %!d(string=hai) anos
pai
achega
27ce0a7c76
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      lib/ui/tools/deduplicate_page.dart

+ 6 - 3
lib/ui/tools/deduplicate_page.dart

@@ -328,10 +328,10 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
                 const Padding(padding: EdgeInsets.all(2)),
                 const Padding(padding: EdgeInsets.all(2)),
                 Text(
                 Text(
                   text,
                   text,
-                  style: const TextStyle(
+                  style: TextStyle(
                     fontWeight: FontWeight.bold,
                     fontWeight: FontWeight.bold,
                     fontSize: 14,
                     fontSize: 14,
-                    color: Colors.white,
+                    color: Theme.of(context).colorScheme.inverseTextColor,
                   ),
                   ),
                   textAlign: TextAlign.center,
                   textAlign: TextAlign.center,
                 ),
                 ),
@@ -339,7 +339,10 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
                 Text(
                 Text(
                   formatBytes(size),
                   formatBytes(size),
                   style: TextStyle(
                   style: TextStyle(
-                    color: Colors.white.withOpacity(0.7),
+                    color: Theme.of(context)
+                        .colorScheme
+                        .inverseTextColor
+                        .withOpacity(0.7),
                     fontSize: 12,
                     fontSize: 12,
                   ),
                   ),
                 ),
                 ),