mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
option text color changes on selection
This commit is contained in:
parent
09641167fb
commit
ebc9c15c3d
2 changed files with 40 additions and 2 deletions
|
@ -47,8 +47,8 @@ class SettingsMenuItem<T> extends StatelessWidget {
|
|||
Text(
|
||||
label,
|
||||
style: value == group //checks if option is selected
|
||||
? STextStyles.desktopMenuItemSelected(context)
|
||||
: STextStyles.desktopMenuItem(context),
|
||||
? STextStyles.settingsMenuItemSelected(context)
|
||||
: STextStyles.settingsMenuItem(context),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
@ -793,6 +793,44 @@ class STextStyles {
|
|||
}
|
||||
}
|
||||
|
||||
static TextStyle settingsMenuItem(BuildContext context) {
|
||||
switch (_theme(context).themeType) {
|
||||
case ThemeType.light:
|
||||
return GoogleFonts.inter(
|
||||
color: _theme(context).textDark.withOpacity(0.5),
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 16,
|
||||
height: 20.8 / 16,
|
||||
);
|
||||
case ThemeType.dark:
|
||||
return GoogleFonts.inter(
|
||||
color: _theme(context).textDark.withOpacity(0.5),
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 16,
|
||||
height: 20.8 / 16,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
static TextStyle settingsMenuItemSelected(BuildContext context) {
|
||||
switch (_theme(context).themeType) {
|
||||
case ThemeType.light:
|
||||
return GoogleFonts.inter(
|
||||
color: _theme(context).textDark,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 16,
|
||||
height: 20.8 / 16,
|
||||
);
|
||||
case ThemeType.dark:
|
||||
return GoogleFonts.inter(
|
||||
color: _theme(context).textDark,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontSize: 16,
|
||||
height: 20.8 / 16,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
static TextStyle stepIndicator(BuildContext context) {
|
||||
switch (_theme(context).themeType) {
|
||||
case ThemeType.light:
|
||||
|
|
Loading…
Reference in a new issue