mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
button color background
This commit is contained in:
parent
ebc9c15c3d
commit
fac914e4ee
2 changed files with 9 additions and 2 deletions
|
@ -25,10 +25,10 @@ class SettingsMenuItem<T> extends StatelessWidget {
|
||||||
style: value == group
|
style: value == group
|
||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonColorSelected(context)
|
.getDesktopSettingsButtonColor(context)
|
||||||
: Theme.of(context)
|
: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonColor(context),
|
.getDesktopSettingsButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
onChanged(value);
|
onChanged(value);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1501,4 +1501,11 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
textFieldDefaultBG,
|
textFieldDefaultBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ButtonStyle? getDesktopSettingsButtonColor(BuildContext context) =>
|
||||||
|
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||||
|
backgroundColor: MaterialStateProperty.all<Color>(
|
||||||
|
background,
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue