浏览代码

button text not visible on dark mode fix

ashilkn 2 年之前
父节点
当前提交
27ce0a7c76
共有 1 个文件被更改,包括 6 次插入3 次删除
  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)),
                 Text(
                   text,
-                  style: const TextStyle(
+                  style: TextStyle(
                     fontWeight: FontWeight.bold,
                     fontSize: 14,
-                    color: Colors.white,
+                    color: Theme.of(context).colorScheme.inverseTextColor,
                   ),
                   textAlign: TextAlign.center,
                 ),
@@ -339,7 +339,10 @@ class _DeduplicatePageState extends State<DeduplicatePage> {
                 Text(
                   formatBytes(size),
                   style: TextStyle(
-                    color: Colors.white.withOpacity(0.7),
+                    color: Theme.of(context)
+                        .colorScheme
+                        .inverseTextColor
+                        .withOpacity(0.7),
                     fontSize: 12,
                   ),
                 ),