Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Improve settings tap targets and destructive styling

Neeraj Gupta63a72d7ac490
diff --git a/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart b/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
index 40438dc76f..71f083e028 100644
--- a/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/account/account_settings_page.dart
@@ -119,6 +119,7 @@ class AccountSettingsPage extends StatelessWidget {
const SizedBox(height: 8),
MenuItemWidgetNew(
title: AppLocalizations.of(context).deleteAccount,
+ titleColor: colorScheme.warning700,
leadingIconWidget: _buildIconWidget(
context,
HugeIcons.strokeRoundedDelete02,
diff --git a/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart b/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
index 8fe22f008e..5f0d5436d4 100644
--- a/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/search/settings_search_page.dart
@@ -193,27 +193,25 @@ class _SettingsSearchPageState extends State<SettingsSearchPage> {
),
),
if (_searchQuery.isNotEmpty)
- GestureDetector(
- onTap: _clearSearch,
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 12),
- child: Icon(
- Icons.cancel_rounded,
- size: 16,
- color: colorScheme.textMuted,
- ),
+ IconButton(
+ constraints: const BoxConstraints(minWidth: 44, minHeight: 44),
+ padding: EdgeInsets.zero,
+ iconSize: 16,
+ onPressed: _clearSearch,
+ icon: Icon(
+ Icons.cancel_rounded,
+ color: colorScheme.textMuted,
),
)
else
- GestureDetector(
- onTap: () => Navigator.of(context).pop(),
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 12),
- child: Icon(
- Icons.close_rounded,
- size: 16,
- color: colorScheme.textMuted,
- ),
+ IconButton(
+ constraints: const BoxConstraints(minWidth: 44, minHeight: 44),
+ padding: EdgeInsets.zero,
+ iconSize: 16,
+ onPressed: () => Navigator.of(context).pop(),
+ icon: Icon(
+ Icons.close_rounded,
+ color: colorScheme.textMuted,
),
),
],
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart
index ab188a9f7a..741cac5fd0 100644
--- a/mobile/apps/photos/lib/ui/settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings_page.dart
@@ -146,7 +146,7 @@ class _SettingsBody extends StatelessWidget {
child: Container(
padding: const EdgeInsets.all(8),
child: Icon(
- Icons.chevron_left,
+ Icons.keyboard_double_arrow_left,
size: 24,
color: colorScheme.textBase,
),
@@ -155,39 +155,37 @@ class _SettingsBody extends StatelessWidget {
Row(
mainAxisSize: MainAxisSize.min,
children: [
- GestureDetector(
- onTap: () {
+ IconButton(
+ constraints: const BoxConstraints(minWidth: 44, minHeight: 44),
+ padding: const EdgeInsets.all(8),
+ iconSize: 20,
+ onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const SettingsSearchPage(),
),
);
},
- child: Container(
- padding: const EdgeInsets.all(8),
- child: Icon(
- Icons.search_rounded,
- size: 20,
- color: colorScheme.textMuted,
- ),
+ icon: Icon(
+ Icons.search_rounded,
+ color: colorScheme.textMuted,
),
),
if (localSettings.enableDatabaseLogging)
- GestureDetector(
- onTap: () {
+ IconButton(
+ constraints: const BoxConstraints(minWidth: 44, minHeight: 44),
+ padding: const EdgeInsets.all(8),
+ iconSize: 20,
+ onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const LogViewerPage(),
),
);
},
- child: Container(
- padding: const EdgeInsets.all(8),
- child: Icon(
- Icons.bug_report,
- size: 20,
- color: colorScheme.textMuted,
- ),
+ icon: Icon(
+ Icons.bug_report,
+ color: colorScheme.textMuted,
),
),
],