mirror of
https://github.com/immich-app/immich.git
synced 2026-02-28 01:29:04 +03:00
chore: styling tweak profile panel (#26248)
This commit is contained in:
@@ -52,7 +52,10 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
||||
child: Stack(
|
||||
alignment: Alignment.centerLeft,
|
||||
children: [
|
||||
IconButton(onPressed: () => context.pop(), icon: const Icon(Icons.close, size: 20)),
|
||||
IconButton(
|
||||
onPressed: () => context.pop(),
|
||||
icon: Icon(Icons.close, size: 20, color: context.colorScheme.onSurfaceVariant),
|
||||
),
|
||||
Align(
|
||||
alignment: Alignment.center,
|
||||
child: Padding(
|
||||
@@ -154,15 +157,12 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
||||
}
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 12,
|
||||
children: [
|
||||
Text(
|
||||
"backup_controller_page_server_storage",
|
||||
style: context.textTheme.labelLarge?.copyWith(fontWeight: FontWeight.w500),
|
||||
).tr(),
|
||||
Text("backup_controller_page_server_storage".tr(), style: context.textTheme.labelLarge),
|
||||
LinearProgressIndicator(
|
||||
minHeight: 10.0,
|
||||
value: percentage,
|
||||
@@ -264,13 +264,13 @@ class ImmichAppBarDialog extends HookConsumerWidget {
|
||||
color: context.colorScheme.surface,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(10)),
|
||||
),
|
||||
margin: const EdgeInsets.only(left: 8, right: 8, bottom: 8),
|
||||
margin: const EdgeInsets.only(left: 12, right: 12, bottom: 8),
|
||||
child: Column(
|
||||
children: [
|
||||
const AppBarProfileInfoBox(),
|
||||
const Divider(height: 3),
|
||||
Divider(thickness: 4, color: context.colorScheme.surfaceContainer),
|
||||
buildStorageInformation(),
|
||||
const Divider(height: 3),
|
||||
Divider(thickness: 4, color: context.colorScheme.surfaceContainer),
|
||||
const AppBarServerInfo(),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -34,7 +34,7 @@ class AppBarProfileInfoBox extends HookConsumerWidget {
|
||||
);
|
||||
}
|
||||
|
||||
final userImage = UserCircleAvatar(size: 44, user: user);
|
||||
final userImage = UserCircleAvatar(size: 44, user: user, hasBorder: true);
|
||||
|
||||
if (uploadProfileImageStatus == UploadProfileStatus.loading) {
|
||||
return const SizedBox(height: 40, width: 40, child: ImmichLoadingIndicator(borderRadius: 20));
|
||||
|
||||
@@ -38,7 +38,7 @@ class AppBarServerInfo extends HookConsumerWidget {
|
||||
const divider = Divider(thickness: 1);
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
@@ -109,7 +109,7 @@ class _ServerInfoItem extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontSize: contentFontSize,
|
||||
color: context.colorScheme.onSurfaceSecondary,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontWeight: FontWeight.w500,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
textAlign: TextAlign.end,
|
||||
|
||||
@@ -162,7 +162,7 @@ class _ProfileIndicator extends ConsumerWidget {
|
||||
child: AbsorbPointer(
|
||||
child: Builder(
|
||||
builder: (context) => UserCircleAvatar(
|
||||
size: 32,
|
||||
size: 34,
|
||||
user: user,
|
||||
opacity: IconTheme.of(context).opacity ?? 1,
|
||||
hasBorder: true,
|
||||
|
||||
@@ -38,7 +38,7 @@ class UserCircleAvatar extends ConsumerWidget {
|
||||
decoration: BoxDecoration(
|
||||
color: userAvatarColor,
|
||||
shape: BoxShape.circle,
|
||||
border: hasBorder ? Border.all(color: Colors.grey[500]!.withValues(alpha: opacity), width: 1) : null,
|
||||
border: hasBorder ? Border.all(color: userAvatarColor.withValues(alpha: opacity), width: 1.5) : null,
|
||||
),
|
||||
child: user.hasProfileImage
|
||||
? ClipRRect(
|
||||
|
||||
Reference in New Issue
Block a user