mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #515 from Poly-Pixel/various-fixes
Fix various small issues
This commit is contained in:
commit
43ae87c797
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user