fix: Fix various small issues

This commit is contained in:
Poly-Pixel 2022-05-29 15:15:57 -04:00
parent 7ff841c3d8
commit bfa3eb9577
No known key found for this signature in database
GPG Key ID: C1B34B48A296CFCC
5 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ class AddButton extends StatelessWidget {
onSelected: onSelected,
).show(context);
},
icon: svgWidget("home/add").padding(horizontal: 3, vertical: 3),
icon: svgWidget("home/add", color: theme.iconColor).padding(horizontal: 3, vertical: 3),
);
}
}

View File

@ -29,9 +29,9 @@ class ToolbarIconButton extends StatelessWidget {
iconPadding: const EdgeInsets.symmetric(horizontal: 4, vertical: 4),
onPressed: onPressed,
width: width,
icon: isToggled == true ? svgWidget(iconName, color: Colors.white) : svgWidget(iconName),
icon: isToggled == true ? svgWidget(iconName, color: Colors.white) : svgWidget(iconName, color: theme.iconColor),
fillColor: isToggled == true ? theme.main1 : theme.shader6,
hoverColor: isToggled == true ? theme.main1 : theme.shader5,
hoverColor: isToggled == true ? theme.main1 : theme.hover,
tooltipText: tooltipText,
);
}

View File

@ -71,7 +71,7 @@ class TextStyles {
static TextStyle get CalloutFocus => Callout.bold;
// ignore: non_constant_identifier_names
static TextStyle get Btn => quicksand.bold.size(FontSizes.s14).letterSpace(1.75);
static TextStyle get Btn => quicksand.bold.size(FontSizes.s16).letterSpace(1.75);
// ignore: non_constant_identifier_names
static TextStyle get BtnSelected => quicksand.size(FontSizes.s14).letterSpace(1.75);

View File

@ -15,7 +15,7 @@ class PrimaryTextButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
TextStyle txtStyle = TextStyles.Footnote.textColor(Colors.white);
TextStyle txtStyle = TextStyles.Btn.textColor(Colors.white);
return PrimaryButton(bigMode: bigMode, onPressed: onPressed, child: Text(label, style: txtStyle));
}
}

View File

@ -17,7 +17,7 @@ class SecondaryTextButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = context.watch<AppTheme>();
TextStyle txtStyle = TextStyles.Footnote.textColor(theme.main1);
TextStyle txtStyle = TextStyles.Btn.textColor(theme.main1);
return SecondaryButton(bigMode: bigMode, onPressed: onPressed, child: Text(label, style: txtStyle));
}
}