chore: Adjust design of space avatars and more

This commit is contained in:
Christian Kußowski 2026-02-18 09:02:19 +01:00
commit 6d5ceba885
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 70 additions and 57 deletions

View file

@ -59,9 +59,7 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
? L10n.of(context).searchChatsRooms
: status.calcLocalizedString(context),
hintStyle: TextStyle(
color: status.error != null
? Colors.orange
: theme.colorScheme.onPrimaryContainer,
color: theme.colorScheme.onPrimaryContainer,
fontWeight: FontWeight.normal,
),
prefixIcon: hide
@ -87,11 +85,6 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
child: CircularProgressIndicator.adaptive(
strokeWidth: 2,
value: status.progress,
valueColor: status.error != null
? const AlwaysStoppedAnimation<Color>(
Colors.orange,
)
: null,
),
),
),

View file

@ -92,14 +92,19 @@ class ChatListItem extends StatelessWidget {
top: 0,
left: 0,
child: Avatar(
border: BorderSide(
width: 2,
color:
backgroundColor ??
theme.colorScheme.surface,
shapeBorder: RoundedSuperellipseBorder(
side: BorderSide(
width: 2,
color:
backgroundColor ??
theme.colorScheme.surface,
),
borderRadius: BorderRadius.circular(
AppConfig.spaceBorderRadius * 0.75,
),
),
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 4,
AppConfig.spaceBorderRadius * 0.75,
),
mxContent: space.avatar,
size: Avatar.defaultSize * 0.75,
@ -111,22 +116,32 @@ class ChatListItem extends StatelessWidget {
bottom: 0,
right: 0,
child: Avatar(
border: space == null
shapeBorder: space == null
? room.isSpace
? BorderSide(
width: 1,
color: theme.dividerColor,
? RoundedSuperellipseBorder(
side: BorderSide(
width: 1,
color: theme.dividerColor,
),
borderRadius: BorderRadius.circular(
AppConfig.spaceBorderRadius,
),
)
: null
: BorderSide(
width: 2,
color:
backgroundColor ??
theme.colorScheme.surface,
: RoundedRectangleBorder(
side: BorderSide(
width: 2,
color:
backgroundColor ??
theme.colorScheme.surface,
),
borderRadius: BorderRadius.circular(
Avatar.defaultSize,
),
),
borderRadius: room.isSpace
? BorderRadius.circular(
AppConfig.borderRadius / 4,
AppConfig.spaceBorderRadius,
)
: null,
mxContent: room.avatar,

View file

@ -403,8 +403,11 @@ class _SpaceViewState extends State<SpaceView> {
size: avatarSize,
mxContent: room?.avatar,
name: displayname,
border: BorderSide(width: 1, color: theme.dividerColor),
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
shapeBorder: RoundedSuperellipseBorder(
side: BorderSide(width: 1, color: theme.dividerColor),
borderRadius: BorderRadius.circular(AppConfig.spaceBorderRadius),
),
borderRadius: BorderRadius.circular(AppConfig.spaceBorderRadius),
),
title: Text(
displayname,
@ -637,11 +640,18 @@ class _SpaceViewState extends State<SpaceView> {
textColor:
item.name?.darkColor ??
theme.colorScheme.onSurface,
border: item.roomType == 'm.space'
? BorderSide(
color: theme
.colorScheme
.surfaceContainerHighest,
shapeBorder: item.roomType == 'm.space'
? RoundedSuperellipseBorder(
side: BorderSide(
color: theme
.colorScheme
.surfaceContainerHighest,
),
borderRadius:
BorderRadius.circular(
AppConfig.borderRadius /
4,
),
)
: null,
borderRadius: item.roomType == 'm.space'