瀏覽代碼

Update color of selection bar

vishnukvmd 3 年之前
父節點
當前提交
98d517874f
共有 2 個文件被更改,包括 13 次插入9 次删除
  1. 3 6
      lib/ente_theme_data.dart
  2. 10 3
      lib/ui/gallery_overlay_widget.dart

+ 3 - 6
lib/ente_theme_data.dart

@@ -42,12 +42,9 @@ extension CustomColorScheme on ColorScheme {
       ? Color.fromRGBO(238, 238, 238, 0.5)
       : Color.fromRGBO(48, 48, 48, 0.5);
 
-  Color get iconColor =>
-      brightness == Brightness.light ? Colors.black : Colors.white;
-
-  Color get cancelSelectedButtonColor => brightness == Brightness.light
-      ? Color.fromRGBO(238, 238, 238, 1)
-      : Color.fromRGBO(48, 48, 48, 0.5);
+  Color get iconColor => brightness == Brightness.light
+      ? Colors.black.withOpacity(0.75)
+      : Colors.white;
 
   Color get bgColorForQuestions => brightness == Brightness.light
       ? Colors.white

+ 10 - 3
lib/ui/gallery_overlay_widget.dart

@@ -167,7 +167,11 @@ class _OverlayWidgetState extends State<OverlayWidget> {
                             style: Theme.of(context)
                                 .textTheme
                                 .subtitle2
-                                .copyWith(fontWeight: FontWeight.w600),
+                                .copyWith(
+                                  fontWeight: FontWeight.w600,
+                                  color:
+                                      Theme.of(context).colorScheme.iconColor,
+                                ),
                           ),
                         ),
                         Row(
@@ -195,11 +199,14 @@ class _OverlayWidgetState extends State<OverlayWidget> {
                       width: 86,
                       color: Theme.of(context)
                           .colorScheme
-                          .cancelSelectedButtonColor,
+                          .frostyBlurBackdropFilterColor,
                       child: Center(
                         child: Text(
                           'Cancel',
-                          style: Theme.of(context).textTheme.subtitle2,
+                          style: Theme.of(context).textTheme.subtitle2.copyWith(
+                                fontWeight: FontWeight.w600,
+                                color: Theme.of(context).colorScheme.iconColor,
+                              ),
                         ),
                       ),
                     ),