Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix theme for dark mode

AmanRajSinghMourya875505970280
diff --git a/mobile/apps/locker/lib/ui/collections/collection_flex_grid_view.dart b/mobile/apps/locker/lib/ui/collections/collection_flex_grid_view.dart
index c01e12c299..6f1c6ec92b 100644
--- a/mobile/apps/locker/lib/ui/collections/collection_flex_grid_view.dart
+++ b/mobile/apps/locker/lib/ui/collections/collection_flex_grid_view.dart
@@ -32,6 +32,9 @@ class _CollectionFlexGridViewWidgetState
@override
Widget build(BuildContext context) {
+ final colorScheme = getEnteColorScheme(context);
+ final textTheme = getEnteTextTheme(context);
+
return MediaQuery.removePadding(
context: context,
removeBottom: true,
@@ -56,7 +59,7 @@ class _CollectionFlexGridViewWidgetState
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
- color: getEnteColorScheme(context).backdropBase,
+ color: colorScheme.backdropBase,
),
padding: const EdgeInsets.all(12),
child: Column(
@@ -67,24 +70,24 @@ class _CollectionFlexGridViewWidgetState
height: 40,
width: 40,
decoration: BoxDecoration(
- color: getEnteColorScheme(context).backgroundBase,
+ color: colorScheme.backgroundElevated,
borderRadius: BorderRadius.circular(12),
),
padding: const EdgeInsets.all(8.0),
child: collection.type == CollectionType.favorites
? HugeIcon(
icon: HugeIcons.strokeRoundedStar,
- color: getEnteColorScheme(context).primary700,
+ color: colorScheme.primary700,
)
: HugeIcon(
icon: HugeIcons.strokeRoundedWallet05,
- color: getEnteColorScheme(context).iconColor,
+ color: colorScheme.textBase,
),
),
const SizedBox(height: 12),
Text(
collectionName,
- style: getEnteTextTheme(context).bodyBold,
+ style: textTheme.bodyBold,
textAlign: TextAlign.left,
overflow: TextOverflow.ellipsis,
maxLines: 1,
@@ -96,9 +99,9 @@ class _CollectionFlexGridViewWidgetState
final fileCount = snapshot.data ?? 0;
return Text(
context.l10n.items(fileCount),
- style: getEnteTextTheme(context).small.copyWith(
- color: Colors.grey[600],
- ),
+ style: textTheme.small.copyWith(
+ color: colorScheme.textMuted,
+ ),
textAlign: TextAlign.left,
);
},
diff --git a/mobile/apps/locker/lib/ui/components/collection_list_widget.dart b/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
index d105726ceb..68e3503b83 100644
--- a/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
@@ -44,7 +44,7 @@ class CollectionListWidget extends StatelessWidget {
padding: const EdgeInsets.all(10.0),
child: Container(
decoration: BoxDecoration(
- color: colorScheme.backgroundBase,
+ color: colorScheme.backgroundElevated,
borderRadius: BorderRadius.circular(12),
),
child: Padding(
@@ -56,7 +56,7 @@ class CollectionListWidget extends StatelessWidget {
)
: HugeIcon(
icon: HugeIcons.strokeRoundedWallet05,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
@@ -148,7 +148,7 @@ class CollectionListWidget extends StatelessWidget {
padding: const EdgeInsets.all(12.0),
child: HugeIcon(
icon: HugeIcons.strokeRoundedMoreVertical,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
diff --git a/mobile/apps/locker/lib/ui/components/collection_popup_menu_widget.dart b/mobile/apps/locker/lib/ui/components/collection_popup_menu_widget.dart
index 227b139f39..866cdca07e 100644
--- a/mobile/apps/locker/lib/ui/components/collection_popup_menu_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/collection_popup_menu_widget.dart
@@ -39,7 +39,7 @@ class CollectionPopupMenuWidget extends StatelessWidget {
child: child ??
HugeIcon(
icon: HugeIcons.strokeRoundedMoreVertical,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
itemBuilder: (BuildContext context) {
return _buildPopupMenuItems(context);
@@ -61,7 +61,7 @@ class CollectionPopupMenuWidget extends StatelessWidget {
child: MenuItemWidget(
icon: Icon(
action.icon,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: action.label,
@@ -91,7 +91,7 @@ class CollectionPopupMenuWidget extends StatelessWidget {
child: MenuItemWidget(
icon: HugeIcon(
icon: HugeIcons.strokeRoundedEdit02,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: context.l10n.edit,
diff --git a/mobile/apps/locker/lib/ui/components/collection_row_widget.dart b/mobile/apps/locker/lib/ui/components/collection_row_widget.dart
index 56f13cac47..cf5892392a 100644
--- a/mobile/apps/locker/lib/ui/components/collection_row_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/collection_row_widget.dart
@@ -84,7 +84,7 @@ class CollectionRowWidget extends StatelessWidget {
)
: HugeIcon(
icon: HugeIcons.strokeRoundedWallet05,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
const Spacer(),
diff --git a/mobile/apps/locker/lib/ui/components/delete_confirmation_dialog.dart b/mobile/apps/locker/lib/ui/components/delete_confirmation_dialog.dart
index a1fc845847..20afb192ee 100644
--- a/mobile/apps/locker/lib/ui/components/delete_confirmation_dialog.dart
+++ b/mobile/apps/locker/lib/ui/components/delete_confirmation_dialog.dart
@@ -74,7 +74,7 @@ class _DeleteConfirmationBottomSheet extends StatelessWidget {
child: Icon(
Icons.close,
size: 24,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
diff --git a/mobile/apps/locker/lib/ui/components/file_list_widget.dart b/mobile/apps/locker/lib/ui/components/file_list_widget.dart
index 8e9407b29b..94f547df0a 100644
--- a/mobile/apps/locker/lib/ui/components/file_list_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/file_list_widget.dart
@@ -116,7 +116,7 @@ class FileListWidget extends StatelessWidget {
padding: const EdgeInsets.all(12.0),
child: HugeIcon(
icon: HugeIcons.strokeRoundedMoreVertical,
- color: getEnteColorScheme(context).iconColor,
+ color: getEnteColorScheme(context).textBase,
),
),
),
diff --git a/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart b/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart
index 1f800cbae7..7683b1a445 100644
--- a/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/file_popup_menu_widget.dart
@@ -44,7 +44,7 @@ class FilePopupMenuWidget extends StatelessWidget {
child: child ??
HugeIcon(
icon: HugeIcons.strokeRoundedMoreVertical,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
itemBuilder: (BuildContext context) {
return _buildPopupMenuItems(context);
@@ -66,7 +66,7 @@ class FilePopupMenuWidget extends StatelessWidget {
child: MenuItemWidget(
icon: Icon(
action.icon,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: action.label,
@@ -86,7 +86,7 @@ class FilePopupMenuWidget extends StatelessWidget {
child: MenuItemWidget(
icon: HugeIcon(
icon: HugeIcons.strokeRoundedPencilEdit02,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: context.l10n.edit,
@@ -100,7 +100,7 @@ class FilePopupMenuWidget extends StatelessWidget {
child: MenuItemWidget(
icon: HugeIcon(
icon: HugeIcons.strokeRoundedShare08,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: context.l10n.share,
diff --git a/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart b/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
index c9becc42fe..c853ff220e 100644
--- a/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
+++ b/mobile/apps/locker/lib/ui/components/input_dialog_sheet.dart
@@ -102,7 +102,7 @@ class _InputDialogSheetState extends State<InputDialogSheet> {
padding: const EdgeInsets.all(4),
child: Icon(
Icons.close,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 24,
),
),
diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
index 049e86101b..50f153a001 100644
--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart
@@ -118,7 +118,7 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {
icon: _viewType == ItemViewType.listView
? HugeIcons.strokeRoundedGridView
: HugeIcons.strokeRoundedMenu01,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
diff --git a/mobile/apps/locker/lib/ui/pages/base_info_page.dart b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
index 8320b9e110..8890cdf3b2 100644
--- a/mobile/apps/locker/lib/ui/pages/base_info_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/base_info_page.dart
@@ -442,7 +442,7 @@ abstract class BaseInfoPageState<T extends InfoData, W extends BaseInfoPage<T>>
child: GradientButton(
hugeIcon: HugeIcon(
icon: HugeIcons.strokeRoundedAddCircleHalfDot,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
onTap: _isLoading ? null : _saveRecord,
text: _isLoading
diff --git a/mobile/apps/locker/lib/ui/pages/collection_page.dart b/mobile/apps/locker/lib/ui/pages/collection_page.dart
index 892fced891..c2067179fb 100644
--- a/mobile/apps/locker/lib/ui/pages/collection_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/collection_page.dart
@@ -263,7 +263,7 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
padding: const EdgeInsets.all(12),
child: HugeIcon(
icon: HugeIcons.strokeRoundedMoreVertical,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
onSelected: (value) {
@@ -302,7 +302,7 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
child: MenuItemWidget(
icon: HugeIcon(
icon: HugeIcons.strokeRoundedPencilEdit02,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: context.l10n.edit,
@@ -340,7 +340,7 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
child: MenuItemWidget(
icon: HugeIcon(
icon: HugeIcons.strokeRoundedDelete02,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
label: context.l10n.leaveCollection,
@@ -394,7 +394,7 @@ class _CollectionPageState extends UploaderPageState<CollectionPage>
padding: const EdgeInsets.all(12),
child: HugeIcon(
icon: HugeIcons.strokeRoundedShare08,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
diff --git a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart
index 25e6d54b42..173c35a54e 100644
--- a/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart
+++ b/mobile/apps/locker/lib/ui/pages/file_upload_screen.dart
@@ -69,6 +69,7 @@ class _FileUploadScreenState extends State<FileUploadScreen> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
+ const SizedBox(height: 16),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
@@ -92,13 +93,13 @@ class _FileUploadScreenState extends State<FileUploadScreen> {
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(50),
- color: colorScheme.backdropBase,
+ color: colorScheme.fillFaint,
),
padding: const EdgeInsets.all(8),
child: Icon(
Icons.close,
size: 24,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
@@ -265,7 +266,7 @@ class _FileUploadScreenState extends State<FileUploadScreen> {
padding: const EdgeInsets.all(8),
child: HugeIcon(
icon: HugeIcons.strokeRoundedCancel01,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
),
@@ -283,8 +284,6 @@ class _FileUploadScreenState extends State<FileUploadScreen> {
void _onUncategorizedSelected() {
setState(() {
- // Clear all collections - empty set represents "uncategorized"
- // This will be interpreted as uploading to uncategorized collection
_selectedCollections.clear();
});
}
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dart
index fa4e453497..6f7b3ea746 100644
--- a/mobile/apps/locker/lib/ui/pages/home_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart
@@ -79,9 +79,9 @@ class CustomLockerAppBar extends StatelessWidget
onTap: () {
scaffoldKey.currentState!.openDrawer();
},
- child: HugeIcon(
+ child: const HugeIcon(
icon: HugeIcons.strokeRoundedMenu01,
- color: colorScheme.backdropBase,
+ color: Colors.white,
),
),
GestureDetector(
@@ -96,7 +96,7 @@ class CustomLockerAppBar extends StatelessWidget
child: Text(
context.l10n.locker,
style: textTheme.h3Bold.copyWith(
- color: colorScheme.backdropBase,
+ color: Colors.white,
),
),
),
@@ -109,7 +109,7 @@ class CustomLockerAppBar extends StatelessWidget
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 20),
child: Container(
decoration: BoxDecoration(
- color: colorScheme.backgroundBase,
+ color: Colors.white,
borderRadius: BorderRadius.circular(100),
),
child: TextField(
@@ -155,7 +155,7 @@ class CustomLockerAppBar extends StatelessWidget
const EdgeInsets.only(right: 16, left: 8),
child: HugeIcon(
icon: HugeIcons.strokeRoundedCancel01,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
size: 20,
),
),
diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dart
index db9913fc82..5102027126 100644
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@ -275,7 +275,7 @@ class _TrashPageState extends State<TrashPage> {
padding: const EdgeInsets.all(12),
child: Icon(
Icons.delete_outline,
- color: colorScheme.iconColor,
+ color: colorScheme.textBase,
),
),
),
diff --git a/mobile/packages/ui/lib/theme/colors.dart b/mobile/packages/ui/lib/theme/colors.dart
index 98f78023fc..e906183cb1 100644
--- a/mobile/packages/ui/lib/theme/colors.dart
+++ b/mobile/packages/ui/lib/theme/colors.dart
@@ -621,11 +621,11 @@ const EnteColorScheme darkScheme = EnteColorScheme(
// Background Colors
const Color backgroundBaseLight = Color.fromRGBO(250, 250, 250, 1);
-const Color backgroundElevatedLight = Color.fromRGBO(255, 255, 255, 1);
+const Color backgroundElevatedLight = Color.fromRGBO(0, 0, 0, 0.04);
const Color backgroundElevated2Light = Color.fromRGBO(251, 251, 251, 1);
const Color backgroundBaseDark = Color.fromRGBO(0, 0, 0, 1);
-const Color backgroundElevatedDark = Color.fromRGBO(27, 27, 27, 1);
+const Color backgroundElevatedDark = Color.fromRGBO(255, 255, 255, 0.04);
const Color backgroundElevated2Dark = Color.fromRGBO(37, 37, 37, 1);
// Backdrop Colors
@@ -633,7 +633,7 @@ const Color backdropBaseLight = Color.fromRGBO(255, 255, 255, 0.92);
const Color backdropMutedLight = Color.fromRGBO(255, 255, 255, 0.75);
const Color backdropFaintLight = Color.fromRGBO(255, 255, 255, 0.30);
-const Color backdropBaseDark = Color.fromRGBO(0, 0, 0, 0.90);
+const Color backdropBaseDark = Color.fromRGBO(33, 33, 33, 0.9);
const Color backdropMutedDark = Color.fromRGBO(0, 0, 0, 0.65);
const Color backdropFaintDark = Color.fromRGBO(0, 0, 0, 0.20);