mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
refactor: accentTextTheme.displayLarge.color -> disabledColor
This commit is contained in:
parent
18bfde66c0
commit
bacd8658a4
4 changed files with 3 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
),
|
||||
));
|
||||
|
|
|
@ -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)
|
||||
),
|
||||
|
|
|
@ -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)
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue