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
This commit is contained in:
Alex Wallen 2023-08-18 00:39:02 -07:00 committed by GitHub
parent c1bba7e48b
commit 1cc78b87ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View File

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

View File

@ -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(

View File

@ -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),
);

View File

@ -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,
);
}