mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
chore: Follow up style adjustments
This commit is contained in:
parent
da6ac90cf2
commit
a0baa747ca
3 changed files with 26 additions and 25 deletions
|
@ -128,7 +128,10 @@ class ChatListItem extends StatelessWidget {
|
||||||
MatrixLocals(L10n.of(context)!),
|
MatrixLocals(L10n.of(context)!),
|
||||||
);
|
);
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8,
|
||||||
|
vertical: 1,
|
||||||
|
),
|
||||||
child: Material(
|
child: Material(
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
|
@ -138,6 +141,7 @@ class ChatListItem extends StatelessWidget {
|
||||||
? Theme.of(context).colorScheme.secondaryContainer
|
? Theme.of(context).colorScheme.secondaryContainer
|
||||||
: Colors.transparent,
|
: Colors.transparent,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
|
visualDensity: const VisualDensity(vertical: -0.5),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
onLongPress: onLongPress,
|
onLongPress: onLongPress,
|
||||||
leading: selected
|
leading: selected
|
||||||
|
|
|
@ -87,15 +87,15 @@ class SettingsView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ListTile(
|
child: Column(
|
||||||
contentPadding: EdgeInsets.zero,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
title: Align(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
alignment: Alignment.centerLeft,
|
children: [
|
||||||
child: TextButton.icon(
|
TextButton.icon(
|
||||||
onPressed: controller.setDisplaynameAction,
|
onPressed: controller.setDisplaynameAction,
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.edit_outlined,
|
Icons.edit_outlined,
|
||||||
size: 18,
|
size: 16,
|
||||||
),
|
),
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
foregroundColor:
|
foregroundColor:
|
||||||
|
@ -105,13 +105,10 @@ class SettingsView extends StatelessWidget {
|
||||||
displayname,
|
displayname,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: const TextStyle(fontSize: 18),
|
// style: const TextStyle(fontSize: 18),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
TextButton.icon(
|
||||||
subtitle: Align(
|
|
||||||
alignment: Alignment.centerLeft,
|
|
||||||
child: TextButton.icon(
|
|
||||||
onPressed: () => FluffyShare.share(mxid, context),
|
onPressed: () => FluffyShare.share(mxid, context),
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
Icons.copy_outlined,
|
Icons.copy_outlined,
|
||||||
|
@ -125,10 +122,10 @@ class SettingsView extends StatelessWidget {
|
||||||
mxid,
|
mxid,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: const TextStyle(fontSize: 12),
|
// style: const TextStyle(fontSize: 12),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -27,6 +27,16 @@ class SettingsChatView extends StatelessWidget {
|
||||||
withScrolling: true,
|
withScrolling: true,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
ListTile(
|
||||||
|
title: Text(L10n.of(context)!.emoteSettings),
|
||||||
|
onTap: () => VRouter.of(context).to('emotes'),
|
||||||
|
trailing: const Icon(Icons.chevron_right_outlined),
|
||||||
|
leading: const Padding(
|
||||||
|
padding: EdgeInsets.all(16.0),
|
||||||
|
child: Icon(Icons.insert_emoticon_outlined),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const Divider(height: 1),
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.renderRichContent,
|
title: L10n.of(context)!.renderRichContent,
|
||||||
onChanged: (b) => AppConfig.renderHtml = b,
|
onChanged: (b) => AppConfig.renderHtml = b,
|
||||||
|
@ -58,6 +68,7 @@ class SettingsChatView extends StatelessWidget {
|
||||||
storeKey: SettingKeys.autoplayImages,
|
storeKey: SettingKeys.autoplayImages,
|
||||||
defaultValue: AppConfig.autoplayImages,
|
defaultValue: AppConfig.autoplayImages,
|
||||||
),
|
),
|
||||||
|
const Divider(height: 1),
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.sendOnEnter,
|
title: L10n.of(context)!.sendOnEnter,
|
||||||
onChanged: (b) => AppConfig.sendOnEnter = b,
|
onChanged: (b) => AppConfig.sendOnEnter = b,
|
||||||
|
@ -75,7 +86,6 @@ class SettingsChatView extends StatelessWidget {
|
||||||
storeKey: SettingKeys.experimentalVoip,
|
storeKey: SettingKeys.experimentalVoip,
|
||||||
defaultValue: AppConfig.experimentalVoip,
|
defaultValue: AppConfig.experimentalVoip,
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
|
||||||
if (Matrix.of(context).webrtcIsSupported && !kIsWeb)
|
if (Matrix.of(context).webrtcIsSupported && !kIsWeb)
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10n.of(context)!.callingPermissions),
|
title: Text(L10n.of(context)!.callingPermissions),
|
||||||
|
@ -86,16 +96,6 @@ class SettingsChatView extends StatelessWidget {
|
||||||
child: Icon(Icons.call),
|
child: Icon(Icons.call),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
|
||||||
ListTile(
|
|
||||||
title: Text(L10n.of(context)!.emoteSettings),
|
|
||||||
onTap: () => VRouter.of(context).to('emotes'),
|
|
||||||
trailing: const Padding(
|
|
||||||
padding: EdgeInsets.all(16.0),
|
|
||||||
child: Icon(Icons.insert_emoticon_outlined),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const Divider(height: 1),
|
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.separateChatTypes,
|
title: L10n.of(context)!.separateChatTypes,
|
||||||
onChanged: (b) => AppConfig.separateChatTypes = b,
|
onChanged: (b) => AppConfig.separateChatTypes = b,
|
||||||
|
|
Loading…
Reference in a new issue