Skip to content

armgit / ente

Public Imported from GitHub
0

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

Minor UI fixes

AmanRajSinghMouryae5fe18889dc3
diff --git a/mobile/apps/locker/lib/ui/components/selection_action_button_widget.dart b/mobile/apps/locker/lib/ui/components/selection_action_button_widget.dart
index d264c569b9..6e96551b09 100644
--- a/mobile/apps/locker/lib/ui/components/selection_action_button_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/selection_action_button_widget.dart
@@ -33,21 +33,16 @@ class SelectionActionButton extends StatelessWidget {
color: colorScheme.backgroundElevated2,
borderRadius: BorderRadius.circular(24.0),
),
- padding: const EdgeInsets.symmetric(vertical: 18.0),
+ padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
- hugeIcon ??
- Icon(
- icon!,
- color: color,
- size: 24,
- ),
+ hugeIcon ?? Icon(icon!, color: color, size: 24),
const SizedBox(height: 8),
Text(
label,
- style: textTheme.body.copyWith(
+ style: textTheme.small.copyWith(
color: color,
),
textAlign: TextAlign.center,
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
index f3dfc261b6..4e541c4af8 100644
--- a/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
+++ b/mobile/apps/locker/lib/ui/viewer/actions/collection_selection_overlay_bar.dart
@@ -96,8 +96,7 @@ class _CollectionSelectionOverlayBarState
),
),
child: Padding(
- padding:
- EdgeInsets.fromLTRB(16, 16, 16, 16 + bottomPadding),
+ padding: EdgeInsets.fromLTRB(16, 16, 16, bottomPadding),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -132,15 +131,15 @@ class _CollectionSelectionOverlayBarState
borderRadius: BorderRadius.circular(50),
),
padding: const EdgeInsets.symmetric(
- horizontal: 16.0,
- vertical: 14.0,
+ horizontal: 12.0,
+ vertical: 10.0,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
buttonText,
- style: textTheme.body,
+ style: textTheme.small,
),
const SizedBox(width: 6),
Icon(
@@ -174,15 +173,15 @@ class _CollectionSelectionOverlayBarState
borderRadius: BorderRadius.circular(50),
),
padding: const EdgeInsets.symmetric(
- horizontal: 16.0,
- vertical: 14.0,
+ horizontal: 12.0,
+ vertical: 10.0,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
countText,
- style: textTheme.body,
+ style: textTheme.small,
),
const SizedBox(width: 6),
Icon(
@@ -198,7 +197,7 @@ class _CollectionSelectionOverlayBarState
),
],
),
- const SizedBox(height: 20),
+ const SizedBox(height: 12),
_buildPrimaryActionButtons(),
],
),
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
index 2528b30313..60e232999d 100644
--- a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
+++ b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart
@@ -173,8 +173,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
),
margin: EdgeInsets.zero,
child: Padding(
- padding:
- EdgeInsets.fromLTRB(16, 16, 16, 16 + bottomPadding),
+ padding: EdgeInsets.fromLTRB(16, 16, 16, bottomPadding),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@@ -183,8 +182,6 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
ListenableBuilder(
listenable: widget.selectedFiles,
builder: (context, child) {
- // Check if all displayed files are selected,
- // not just if counts match
final selectedSet =
widget.selectedFiles.files;
final isAllSelected =
@@ -217,15 +214,15 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
BorderRadius.circular(50),
),
padding: const EdgeInsets.symmetric(
- horizontal: 16.0,
- vertical: 14.0,
+ horizontal: 12.0,
+ vertical: 10.0,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
buttonText,
- style: textTheme.body,
+ style: textTheme.small,
),
const SizedBox(width: 6),
Icon(
@@ -260,15 +257,15 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
BorderRadius.circular(50),
),
padding: const EdgeInsets.symmetric(
- horizontal: 16.0,
- vertical: 14.0,
+ horizontal: 12.0,
+ vertical: 10.0,
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
countText,
- style: textTheme.body,
+ style: textTheme.small,
),
const SizedBox(width: 6),
Icon(
@@ -284,7 +281,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
),
],
),
- const SizedBox(height: 20),
+ const SizedBox(height: 12),
_buildActionButtons(),
],
),