refactor: accentTextTheme.displayLarge.color -> disabledColor

This commit is contained in:
Rafael Saes 2023-07-03 14:01:54 -03:00
parent 18bfde66c0
commit bacd8658a4
4 changed files with 3 additions and 8 deletions

View file

@ -25,10 +25,7 @@ class StandardSwitchState extends State<StandardSwitch> {
decoration: BoxDecoration(
color: widget.value
? Theme.of(context).primaryColor
: Theme.of(context)
.accentTextTheme!
.displayLarge!
.color!,
: Theme.of(context).disabledColor,
borderRadius: BorderRadius.all(Radius.circular(14.0))),
child: Container(
width: 24.0,

View file

@ -231,7 +231,6 @@ class BrightTheme extends LightTheme {
),
// display4 -> displayLarge
displayLarge: TextStyle(
color: Palette.darkGray, // switch background (settings page)
decorationColor: Colors.white.withOpacity(0.4) // hint text (exchange page)
),
));

View file

@ -58,6 +58,7 @@ class DarkTheme extends ThemeBase {
hoverColor: PaletteDark.cyanBlue, // amount hint text (receive page)
dividerColor: PaletteDark.dividerColor,
hintColor: PaletteDark.pigeonBlue, // menu
disabledColor: PaletteDark.deepVioletBlue,
dialogTheme: super
.themeData
.dialogTheme
@ -258,8 +259,6 @@ class DarkTheme extends ThemeBase {
),
// display4 -> displayLarge
displayLarge: TextStyle(
color:
PaletteDark.deepVioletBlue, // switch background (settings page)
decorationColor:
PaletteDark.lightBlueGrey // hint text (exchange page)
),

View file

@ -60,6 +60,7 @@ class LightTheme extends ThemeBase {
hoverColor: Palette.darkBlueCraiola, // amount hint text (receive page)
dividerColor: Palette.paleBlue,
hintColor: Palette.gray,
disabledColor: Palette.darkGray,
dialogTheme: super
.themeData
.dialogTheme
@ -255,7 +256,6 @@ class LightTheme extends ThemeBase {
),
// display4 -> displayLarge
displayLarge: TextStyle(
color: Palette.darkGray, // switch background (settings page)
decorationColor:
Colors.white.withOpacity(0.4) // hint text (exchange page)
),