unify text styles

can return to theme-case style if needed
This commit is contained in:
sneurlax 2023-01-24 10:06:49 -06:00
parent 83da7a2680
commit dc30b5d42a

View file

@ -1356,8 +1356,6 @@ class STextStyles {
}
static TextStyle currencyTicker(BuildContext context) {
switch (_theme(context).themeType) {
case ThemeType.light:
return GoogleFonts.inter(
color: _theme(context).textDark,
fontWeight: FontWeight.w500,
@ -1369,54 +1367,5 @@ class STextStyles {
..strokeCap = StrokeCap.round
..style = PaintingStyle.stroke,
);
case ThemeType.oceanBreeze:
return GoogleFonts.inter(
color: _theme(context).textDark,
fontWeight: FontWeight.w500,
fontSize: 16,
background: Paint()
..color = Theme.of(context).extension<StackColors>()!.highlight
..strokeWidth = 8
..strokeJoin = StrokeJoin.round
..strokeCap = StrokeCap.round
..style = PaintingStyle.stroke,
);
case ThemeType.dark:
return GoogleFonts.inter(
color: _theme(context).textDark,
fontWeight: FontWeight.w500,
fontSize: 16,
background: Paint()
..color = Theme.of(context).extension<StackColors>()!.highlight
..strokeWidth = 8
..strokeJoin = StrokeJoin.round
..strokeCap = StrokeCap.round
..style = PaintingStyle.stroke,
);
// case ThemeType.OLEDblack:
// return GoogleFonts.inter(
// color: _theme(context).textDark,
// fontWeight: FontWeight.w500,
// fontSize: 16,
// background: Paint()
// ..color = Theme.of(context).extension<StackColors>()!.highlight
// ..strokeWidth = 8
// ..strokeJoin = StrokeJoin.round
// ..strokeCap = StrokeCap.round
// ..style = PaintingStyle.stroke,
// );
// case ThemeType.fruitSorbet:
// return GoogleFonts.inter(
// color: _theme(context).textDark,
// fontWeight: FontWeight.w500,
// fontSize: 16,
// background: Paint()
// ..color = Theme.of(context).extension<StackColors>()!.highlight
// ..strokeWidth = 8
// ..strokeJoin = StrokeJoin.round
// ..strokeCap = StrokeCap.round
// ..style = PaintingStyle.stroke,
// );
}
}
}