diff --git a/mobile/lib/modules/home/ui/home_page_app_bar.dart b/mobile/lib/modules/home/ui/home_page_app_bar.dart index cb5d15577d..12b87cde21 100644 --- a/mobile/lib/modules/home/ui/home_page_app_bar.dart +++ b/mobile/lib/modules/home/ui/home_page_app_bar.dart @@ -51,10 +51,15 @@ class HomePageAppBar extends ConsumerWidget with PreferredSizeWidget { Scaffold.of(context).openDrawer(); }, child: CircleAvatar( - backgroundImage: CachedNetworkImageProvider( - '$endpoint/user/profile-image/${authState.userId}', - ), + backgroundColor: Theme.of(context).primaryColor, radius: 18, + child: CircleAvatar( + backgroundColor: Theme.of(context).primaryColor.withOpacity(0.1), + backgroundImage: CachedNetworkImageProvider( + '$endpoint/user/profile-image/${authState.userId}', + ), + radius: 17, + ), ), ); } diff --git a/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart b/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart index 7df8c0a00b..a7dcf593a2 100644 --- a/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart +++ b/mobile/lib/modules/home/ui/profile_drawer/profile_drawer_header.dart @@ -37,15 +37,19 @@ class ProfileDrawerHeader extends HookConsumerWidget { if (uploadProfileImageStatus == UploadProfileStatus.idle) { if (authState.profileImagePath.isNotEmpty) { return CircleAvatar( + backgroundColor: Theme.of(context).primaryColor, radius: 35, - backgroundImage: NetworkImage( - '$endpoint/user/profile-image/${authState.userId}?d=${dummy++}', + child: CircleAvatar( + radius: 34, + backgroundImage: NetworkImage( + '$endpoint/user/profile-image/${authState.userId}?d=${dummy++}', + ), + backgroundColor: Colors.transparent, ), - backgroundColor: Colors.transparent, ); } else { return const CircleAvatar( - radius: 35, + radius: 33, backgroundImage: AssetImage('assets/immich-logo-no-outline.png'), backgroundColor: Colors.transparent, ); @@ -98,7 +102,7 @@ class ProfileDrawerHeader extends HookConsumerWidget { useEffect( () { - buildUserProfileImage(); + // buildUserProfileImage(); return null; }, [], @@ -136,7 +140,7 @@ class ProfileDrawerHeader extends HookConsumerWidget { child: GestureDetector( onTap: pickUserProfileImage, child: Material( - color: Colors.grey[100], + color: isDarkMode ? Colors.grey[900] : Colors.grey[100], elevation: 3, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(50.0),