chore: Design adjustments

pull/1455/head
krille-chan 10 months ago
parent 4453048285
commit 133e7ab955
No known key found for this signature in database

@ -77,9 +77,7 @@ abstract class FluffyThemes {
? Typography.material2018().black.merge(fallbackTextTheme) ? Typography.material2018().black.merge(fallbackTextTheme)
: Typography.material2018().white.merge(fallbackTextTheme) : Typography.material2018().white.merge(fallbackTextTheme)
: null, : null,
dividerColor: brightness == Brightness.light dividerColor: colorScheme.surfaceContainer,
? Colors.blueGrey.shade50
: Colors.blueGrey.shade900,
popupMenuTheme: PopupMenuThemeData( popupMenuTheme: PopupMenuThemeData(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(AppConfig.borderRadius), borderRadius: BorderRadius.circular(AppConfig.borderRadius),

@ -51,7 +51,7 @@ class ChatEventList extends StatelessWidget {
child: ListView.custom( child: ListView.custom(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 16, top: 16,
bottom: 8, bottom: 0,
left: horizontalPadding, left: horizontalPadding,
right: horizontalPadding, right: horizontalPadding,
), ),

@ -290,14 +290,15 @@ class ChatView extends StatelessWidget {
child: ChatEventList(controller: controller), child: ChatEventList(controller: controller),
), ),
), ),
if (controller.showScrollDownButton)
Divider(
height: 1,
color: theme.dividerColor,
),
if (controller.room.canSendDefaultMessages && if (controller.room.canSendDefaultMessages &&
controller.room.membership == Membership.join) controller.room.membership == Membership.join)
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.all(bottomSheetPadding),
bottom: bottomSheetPadding,
left: bottomSheetPadding,
right: bottomSheetPadding,
),
constraints: const BoxConstraints( constraints: const BoxConstraints(
maxWidth: FluffyThemes.columnWidth * 2.5, maxWidth: FluffyThemes.columnWidth * 2.5,
), ),

@ -282,15 +282,19 @@ class SettingsStyleView extends StatelessWidget {
], ],
), ),
), ),
Divider(
color: theme.dividerColor,
),
ListTile( ListTile(
title: TextButton( title: TextButton.icon(
style: TextButton.styleFrom( style: TextButton.styleFrom(
backgroundColor: theme.colorScheme.secondaryContainer, backgroundColor: theme.colorScheme.secondaryContainer,
foregroundColor: foregroundColor:
theme.colorScheme.onSecondaryContainer, theme.colorScheme.onSecondaryContainer,
), ),
onPressed: controller.setWallpaper, onPressed: controller.setWallpaper,
child: Text(L10n.of(context).setWallpaper), icon: const Icon(Icons.edit_outlined),
label: Text(L10n.of(context).setWallpaper),
), ),
trailing: accountConfig.wallpaperUrl == null trailing: accountConfig.wallpaperUrl == null
? null ? null

Loading…
Cancel
Save