chore: Follow up design changes

This commit is contained in:
krille-chan 2023-08-12 12:17:28 +02:00
parent 9e13bd8dfd
commit a9448f293c
No known key found for this signature in database
2 changed files with 23 additions and 18 deletions

View file

@ -116,7 +116,12 @@ abstract class FluffyThemes {
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
side: BorderSide(
width: 1,
color: colorScheme.primary,
),
shape: RoundedRectangleBorder(
side: BorderSide(color: colorScheme.primary),
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
),
),

View file

@ -188,26 +188,26 @@ class ChatDetailsView extends StatelessWidget {
height: 1,
color: Theme.of(context).dividerColor,
),
ListTile(
onTap: room.canSendEvent(EventTypes.RoomTopic)
? controller.setTopicAction
: null,
trailing: room.canSendEvent(EventTypes.RoomTopic)
? Icon(
Icons.edit_outlined,
color: Theme.of(context)
.colorScheme
.onBackground,
)
: null,
title: Text(
L10n.of(context)!.groupDescription,
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
fontWeight: FontWeight.bold,
if (!room.canChangeStateEvent(EventTypes.RoomTopic))
ListTile(
title: Text(
L10n.of(context)!.groupDescription,
style: TextStyle(
color: Theme.of(context).colorScheme.secondary,
fontWeight: FontWeight.bold,
),
),
)
else
Padding(
padding: const EdgeInsets.all(16.0),
child: OutlinedButton.icon(
onPressed: controller.setTopicAction,
label:
Text(L10n.of(context)!.setGroupDescription),
icon: const Icon(Icons.edit_outlined),
),
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16.0,