From fac914e4ee5ac278b0abab35eb15be4d531f5e5e Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Thu, 6 Oct 2022 18:24:57 -0600 Subject: [PATCH] button color background --- lib/pages_desktop_specific/home/settings_menu_item.dart | 4 ++-- lib/utilities/theme/stack_colors.dart | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/pages_desktop_specific/home/settings_menu_item.dart b/lib/pages_desktop_specific/home/settings_menu_item.dart index b35ab1c23..d317c509a 100644 --- a/lib/pages_desktop_specific/home/settings_menu_item.dart +++ b/lib/pages_desktop_specific/home/settings_menu_item.dart @@ -25,10 +25,10 @@ class SettingsMenuItem extends StatelessWidget { style: value == group ? Theme.of(context) .extension()! - .getDesktopMenuButtonColorSelected(context) + .getDesktopSettingsButtonColor(context) : Theme.of(context) .extension()! - .getDesktopMenuButtonColor(context), + .getDesktopSettingsButtonColor(context), onPressed: () { onChanged(value); }, diff --git a/lib/utilities/theme/stack_colors.dart b/lib/utilities/theme/stack_colors.dart index c6ee28892..7790a9f82 100644 --- a/lib/utilities/theme/stack_colors.dart +++ b/lib/utilities/theme/stack_colors.dart @@ -1501,4 +1501,11 @@ class StackColors extends ThemeExtension { textFieldDefaultBG, ), ); + + ButtonStyle? getDesktopSettingsButtonColor(BuildContext context) => + Theme.of(context).textButtonTheme.style?.copyWith( + backgroundColor: MaterialStateProperty.all( + background, + ), + ); }