mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
unify text styles
can return to theme-case style if needed
This commit is contained in:
parent
83da7a2680
commit
dc30b5d42a
1 changed files with 11 additions and 62 deletions
|
@ -1356,8 +1356,6 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle currencyTicker(BuildContext context) {
|
static TextStyle currencyTicker(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
|
||||||
case ThemeType.light:
|
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -1369,54 +1367,5 @@ class STextStyles {
|
||||||
..strokeCap = StrokeCap.round
|
..strokeCap = StrokeCap.round
|
||||||
..style = PaintingStyle.stroke,
|
..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,
|
|
||||||
// );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue