mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +00:00
update text styles
This commit is contained in:
parent
7da7302e63
commit
fae467440c
1 changed files with 66 additions and 67 deletions
|
@ -1,6 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class STextStyles {
|
class STextStyles {
|
||||||
|
@ -8,8 +7,8 @@ class STextStyles {
|
||||||
Theme.of(context).extension<StackColors>()!;
|
Theme.of(context).extension<StackColors>()!;
|
||||||
|
|
||||||
static TextStyle sectionLabelMedium12(BuildContext context) {
|
static TextStyle sectionLabelMedium12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
case ThemeType.forest:
|
case "forest":
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark3,
|
color: _theme(context).textDark3,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -25,7 +24,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle pageTitleH1(BuildContext context) {
|
static TextStyle pageTitleH1(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -36,7 +35,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle pageTitleH2(BuildContext context) {
|
static TextStyle pageTitleH2(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -47,7 +46,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle navBarTitle(BuildContext context) {
|
static TextStyle navBarTitle(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -58,7 +57,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle titleBold12(BuildContext context) {
|
static TextStyle titleBold12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -69,7 +68,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle subtitle(BuildContext context) {
|
static TextStyle subtitle(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -80,7 +79,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle subtitle500(BuildContext context) {
|
static TextStyle subtitle500(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -91,7 +90,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle subtitle600(BuildContext context) {
|
static TextStyle subtitle600(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -102,7 +101,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle button(BuildContext context) {
|
static TextStyle button(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimary,
|
color: _theme(context).buttonTextPrimary,
|
||||||
|
@ -113,7 +112,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle largeMedium14(BuildContext context) {
|
static TextStyle largeMedium14(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -124,7 +123,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle smallMed14(BuildContext context) {
|
static TextStyle smallMed14(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark3,
|
color: _theme(context).textDark3,
|
||||||
|
@ -135,7 +134,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle smallMed12(BuildContext context) {
|
static TextStyle smallMed12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark3,
|
color: _theme(context).textDark3,
|
||||||
|
@ -146,7 +145,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle label(BuildContext context) {
|
static TextStyle label(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle1,
|
color: _theme(context).textSubtitle1,
|
||||||
|
@ -157,7 +156,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle labelExtraExtraSmall(BuildContext context) {
|
static TextStyle labelExtraExtraSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textFieldActiveSearchIconRight,
|
color: _theme(context).textFieldActiveSearchIconRight,
|
||||||
|
@ -169,7 +168,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle label700(BuildContext context) {
|
static TextStyle label700(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle1,
|
color: _theme(context).textSubtitle1,
|
||||||
|
@ -180,7 +179,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle itemSubtitle(BuildContext context) {
|
static TextStyle itemSubtitle(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).infoItemLabel,
|
color: _theme(context).infoItemLabel,
|
||||||
|
@ -191,7 +190,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle itemSubtitle12(BuildContext context) {
|
static TextStyle itemSubtitle12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -202,7 +201,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle fieldLabel(BuildContext context) {
|
static TextStyle fieldLabel(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle2,
|
color: _theme(context).textSubtitle2,
|
||||||
|
@ -214,7 +213,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle field(BuildContext context) {
|
static TextStyle field(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -226,7 +225,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle baseXS(BuildContext context) {
|
static TextStyle baseXS(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -237,7 +236,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle link(BuildContext context) {
|
static TextStyle link(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).accentColorRed,
|
color: _theme(context).accentColorRed,
|
||||||
|
@ -248,8 +247,8 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle link2(BuildContext context) {
|
static TextStyle link2(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
case ThemeType.oledBlack:
|
case "oled_black":
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).checkboxBGChecked,
|
color: _theme(context).checkboxBGChecked,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -265,7 +264,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle richLink(BuildContext context) {
|
static TextStyle richLink(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).accentColorBlue,
|
color: _theme(context).accentColorBlue,
|
||||||
|
@ -276,7 +275,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w600_12(BuildContext context) {
|
static TextStyle w600_12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -287,7 +286,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w600_14(BuildContext context) {
|
static TextStyle w600_14(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -298,7 +297,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w500_14(BuildContext context) {
|
static TextStyle w500_14(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -309,7 +308,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w500_12(BuildContext context) {
|
static TextStyle w500_12(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -320,7 +319,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w500_10(BuildContext context) {
|
static TextStyle w500_10(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -331,7 +330,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w600_20(BuildContext context) {
|
static TextStyle w600_20(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -343,7 +342,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle syncPercent(BuildContext context) {
|
static TextStyle syncPercent(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -354,8 +353,8 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle buttonSmall(BuildContext context) {
|
static TextStyle buttonSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
case ThemeType.fruitSorbet:
|
case "fruit_sorbet":
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).bottomNavIconIcon,
|
color: _theme(context).bottomNavIconIcon,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -371,7 +370,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle errorSmall(BuildContext context) {
|
static TextStyle errorSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textError,
|
color: _theme(context).textError,
|
||||||
|
@ -382,7 +381,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle infoSmall(BuildContext context) {
|
static TextStyle infoSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle1,
|
color: _theme(context).textSubtitle1,
|
||||||
|
@ -395,7 +394,7 @@ class STextStyles {
|
||||||
// Desktop
|
// Desktop
|
||||||
|
|
||||||
static TextStyle desktopH1(BuildContext context) {
|
static TextStyle desktopH1(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -407,7 +406,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopH2(BuildContext context) {
|
static TextStyle desktopH2(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -419,7 +418,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopH3(BuildContext context) {
|
static TextStyle desktopH3(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -431,7 +430,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle w500_24(BuildContext context) {
|
static TextStyle w500_24(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -443,7 +442,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextMedium(BuildContext context) {
|
static TextStyle desktopTextMedium(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -455,7 +454,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextMediumRegular(BuildContext context) {
|
static TextStyle desktopTextMediumRegular(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -467,7 +466,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopSubtitleH2(BuildContext context) {
|
static TextStyle desktopSubtitleH2(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -479,7 +478,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopSubtitleH1(BuildContext context) {
|
static TextStyle desktopSubtitleH1(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -491,7 +490,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopButtonEnabled(BuildContext context) {
|
static TextStyle desktopButtonEnabled(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimary,
|
color: _theme(context).buttonTextPrimary,
|
||||||
|
@ -503,7 +502,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopButtonDisabled(BuildContext context) {
|
static TextStyle desktopButtonDisabled(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimaryDisabled,
|
color: _theme(context).buttonTextPrimaryDisabled,
|
||||||
|
@ -515,7 +514,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopButtonSecondaryEnabled(BuildContext context) {
|
static TextStyle desktopButtonSecondaryEnabled(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextSecondary,
|
color: _theme(context).buttonTextSecondary,
|
||||||
|
@ -527,7 +526,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopButtonSecondaryDisabled(BuildContext context) {
|
static TextStyle desktopButtonSecondaryDisabled(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextSecondaryDisabled,
|
color: _theme(context).buttonTextSecondaryDisabled,
|
||||||
|
@ -539,8 +538,8 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextSmall(BuildContext context) {
|
static TextStyle desktopTextSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
case ThemeType.dark:
|
case "dark":
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimaryDisabled,
|
color: _theme(context).buttonTextPrimaryDisabled,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
|
@ -559,9 +558,9 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextSmallBold(BuildContext context) {
|
static TextStyle desktopTextSmallBold(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
case ThemeType.dark:
|
case "dark":
|
||||||
case ThemeType.oledBlack:
|
case "oled_black":
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimaryDisabled,
|
color: _theme(context).buttonTextPrimaryDisabled,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
|
@ -580,7 +579,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextExtraSmall(BuildContext context) {
|
static TextStyle desktopTextExtraSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextPrimaryDisabled,
|
color: _theme(context).buttonTextPrimaryDisabled,
|
||||||
|
@ -592,7 +591,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextExtraExtraSmall(BuildContext context) {
|
static TextStyle desktopTextExtraExtraSmall(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle1,
|
color: _theme(context).textSubtitle1,
|
||||||
|
@ -604,7 +603,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextExtraExtraSmall600(BuildContext context) {
|
static TextStyle desktopTextExtraExtraSmall600(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -616,7 +615,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopButtonSmallSecondaryEnabled(BuildContext context) {
|
static TextStyle desktopButtonSmallSecondaryEnabled(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).buttonTextSecondary,
|
color: _theme(context).buttonTextSecondary,
|
||||||
|
@ -628,7 +627,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopTextFieldLabel(BuildContext context) {
|
static TextStyle desktopTextFieldLabel(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textSubtitle2,
|
color: _theme(context).textSubtitle2,
|
||||||
|
@ -640,7 +639,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopMenuItem(BuildContext context) {
|
static TextStyle desktopMenuItem(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark.withOpacity(0.8),
|
color: _theme(context).textDark.withOpacity(0.8),
|
||||||
|
@ -652,7 +651,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle desktopMenuItemSelected(BuildContext context) {
|
static TextStyle desktopMenuItemSelected(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -664,7 +663,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle settingsMenuItem(BuildContext context) {
|
static TextStyle settingsMenuItem(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark.withOpacity(0.5),
|
color: _theme(context).textDark.withOpacity(0.5),
|
||||||
|
@ -676,7 +675,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle settingsMenuItemSelected(BuildContext context) {
|
static TextStyle settingsMenuItemSelected(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -688,7 +687,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle stepIndicator(BuildContext context) {
|
static TextStyle stepIndicator(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.roboto(
|
return GoogleFonts.roboto(
|
||||||
color: _theme(context).textDark,
|
color: _theme(context).textDark,
|
||||||
|
@ -699,7 +698,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle numberDefault(BuildContext context) {
|
static TextStyle numberDefault(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.roboto(
|
return GoogleFonts.roboto(
|
||||||
color: _theme(context).numberTextDefault,
|
color: _theme(context).numberTextDefault,
|
||||||
|
@ -710,7 +709,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle datePicker400(BuildContext context) {
|
static TextStyle datePicker400(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
letterSpacing: 0.5,
|
letterSpacing: 0.5,
|
||||||
|
@ -722,7 +721,7 @@ class STextStyles {
|
||||||
}
|
}
|
||||||
|
|
||||||
static TextStyle datePicker600(BuildContext context) {
|
static TextStyle datePicker600(BuildContext context) {
|
||||||
switch (_theme(context).themeType) {
|
switch (_theme(context).themeId) {
|
||||||
default:
|
default:
|
||||||
return GoogleFonts.inter(
|
return GoogleFonts.inter(
|
||||||
letterSpacing: 0.5,
|
letterSpacing: 0.5,
|
||||||
|
|
Loading…
Reference in a new issue