From acb1e2434b28efca852297e0a0a8ffce155e67e4 Mon Sep 17 00:00:00 2001 From: validcube Date: Sun, 21 Jan 2024 20:36:23 +0700 Subject: [PATCH] fix(Patch Option): Set text colour on dropdown menu Signed-off-by: validcube --- lib/ui/views/patch_options/patch_options_viewmodel.dart | 3 ++- lib/ui/widgets/patchesSelectorView/patch_options_fields.dart | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ui/views/patch_options/patch_options_viewmodel.dart b/lib/ui/views/patch_options/patch_options_viewmodel.dart index 2dbaef7b..b835a993 100644 --- a/lib/ui/views/patch_options/patch_options_viewmodel.dart +++ b/lib/ui/views/patch_options/patch_options_viewmodel.dart @@ -184,8 +184,9 @@ class PatchOptionsViewModel extends BaseViewModel { children: [ Text( e.title, - style: const TextStyle( + style: TextStyle( fontSize: 16, + color: Theme.of(context).colorScheme.onSurface, ), ), const SizedBox(height: 4), diff --git a/lib/ui/widgets/patchesSelectorView/patch_options_fields.dart b/lib/ui/widgets/patchesSelectorView/patch_options_fields.dart index 2d5d2dfd..61247132 100644 --- a/lib/ui/widgets/patchesSelectorView/patch_options_fields.dart +++ b/lib/ui/widgets/patchesSelectorView/patch_options_fields.dart @@ -426,8 +426,11 @@ class _TextFieldForPatchOptionState extends State { child: RichText( text: TextSpan( text: e.key, - style: const TextStyle( + style: TextStyle( fontSize: 16, + color: Theme.of(context) + .colorScheme + .onSecondaryContainer, ), children: [ TextSpan(