From 9e1d32fd885b8ee721a7aa5ccbc3d2f233df34cf Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Thu, 24 Oct 2024 19:28:25 +0530 Subject: [PATCH] [mob][photos] Fix colors --- mobile/lib/ui/settings/debug/ml_debug_section_widget.dart | 4 ---- mobile/lib/ui/settings/ml/machine_learning_settings_page.dart | 3 --- 2 files changed, 7 deletions(-) diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart index ebf9b15b64..ceccd75edb 100644 --- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart +++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart @@ -75,7 +75,6 @@ class _MLDebugSectionWidgetState extends State { return const SizedBox.shrink(); }, ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => userRemoteFlagService .getCachedBoolValue(UserRemoteFlagService.mlEnabled), @@ -116,7 +115,6 @@ class _MLDebugSectionWidgetState extends State { captionedTextWidget: const CaptionedTextWidget( title: "Remote fetch", ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => localSettings.remoteFetchEnabled, onChanged: () async { @@ -149,7 +147,6 @@ class _MLDebugSectionWidgetState extends State { captionedTextWidget: const CaptionedTextWidget( title: "Local indexing", ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => localSettings.isMLIndexingEnabled, onChanged: () async { @@ -176,7 +173,6 @@ class _MLDebugSectionWidgetState extends State { captionedTextWidget: const CaptionedTextWidget( title: "Auto indexing", ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => !MLService.instance.debugIndexingDisabled, onChanged: () async { diff --git a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart b/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart index 4251aad684..eb04895083 100644 --- a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart +++ b/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart @@ -249,7 +249,6 @@ class _MachineLearningSettingsPageState } Widget _getMlSettings(BuildContext context) { - final colorScheme = getEnteColorScheme(context); final hasEnabled = userRemoteFlagService .getCachedBoolValue(UserRemoteFlagService.mlEnabled); if (!hasEnabled) { @@ -266,7 +265,6 @@ class _MachineLearningSettingsPageState captionedTextWidget: CaptionedTextWidget( title: S.of(context).enabled, ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => hasEnabled, onChanged: () async { @@ -281,7 +279,6 @@ class _MachineLearningSettingsPageState captionedTextWidget: CaptionedTextWidget( title: S.of(context).localIndexing, ), - menuItemColor: colorScheme.fillFaint, trailingWidget: ToggleSwitchWidget( value: () => localSettings.isMLIndexingEnabled, onChanged: () async {