Browse Source

fix: some svgs do not have the correct color (#3221)

* fix: svg colors

* chore: rename variable name bc it doesn't make sense

* fix: google sign in button blend mode
Alex Wallen 1 year ago
parent
commit
1cc78b87ab

+ 1 - 0
frontend/appflowy_flutter/lib/user/presentation/sign_in_screen.dart

@@ -371,6 +371,7 @@ class ThirdPartySignInButton extends StatelessWidget {
       onPressed: onPressed,
       icon: FlowySvg(
         icon,
+        blendMode: null,
       ),
     );
   }

+ 4 - 1
frontend/appflowy_flutter/lib/user/presentation/widgets/background.dart

@@ -44,7 +44,10 @@ class FlowyLogoTitle extends StatelessWidget {
         children: [
           SizedBox.fromSize(
             size: logoSize,
-            child: const FlowySvg(FlowySvgs.flowy_logo_xl),
+            child: const FlowySvg(
+              FlowySvgs.flowy_logo_xl,
+              blendMode: null,
+            ),
           ),
           const VSpace(40),
           FlowyText.regular(

+ 4 - 1
frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_new_page_button.dart

@@ -28,7 +28,10 @@ class SidebarNewPageButton extends StatelessWidget {
           shape: BoxShape.circle,
           color: Theme.of(context).colorScheme.surface,
         ),
-        child: const FlowySvg(FlowySvgs.new_app_s),
+        child: const FlowySvg(
+          FlowySvgs.new_app_s,
+          blendMode: null,
+        ),
       ),
       padding: const EdgeInsets.all(0),
     );

+ 4 - 2
frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/sidebar_top_menu.dart

@@ -46,12 +46,14 @@ class SidebarTopMenu extends StatelessWidget {
       return const SizedBox.shrink();
     }
 
-    final name = Theme.of(context).brightness == Brightness.dark
+    final svgData = Theme.of(context).brightness == Brightness.dark
         ? FlowySvgs.flowy_logo_dark_mode_xl
         : FlowySvgs.flowy_logo_text_xl;
+
     return FlowySvg(
-      name,
+      svgData,
       size: const Size(92, 17),
+      blendMode: null,
     );
   }