mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 15:52:44 +00:00
design: Follow up chat settings design
This commit is contained in:
parent
e43a4ad65f
commit
1366113823
5 changed files with 24 additions and 17 deletions
|
@ -131,6 +131,7 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
|
"appLockDescription": "Lock the app when not using with a pin code",
|
||||||
"archive": "Archive",
|
"archive": "Archive",
|
||||||
"@archive": {
|
"@archive": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
@ -759,6 +760,8 @@
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
|
"customEmojisAndStickers": "Custom emojis and stickers",
|
||||||
|
"customEmojisAndStickersBody": "Add or share custom emojis or stickers which can be used in any chat.",
|
||||||
"emoteShortcode": "Emote shortcode",
|
"emoteShortcode": "Emote shortcode",
|
||||||
"@emoteShortcode": {
|
"@emoteShortcode": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
|
|
@ -293,7 +293,8 @@ class ChatDetailsView extends StatelessWidget {
|
||||||
Icons.insert_emoticon_outlined,
|
Icons.insert_emoticon_outlined,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context)!.emoteSettings),
|
title:
|
||||||
|
Text(L10n.of(context)!.customEmojisAndStickers),
|
||||||
subtitle: Text(L10n.of(context)!.setCustomEmotes),
|
subtitle: Text(L10n.of(context)!.setCustomEmotes),
|
||||||
onTap: controller.goToEmoteSettings,
|
onTap: controller.goToEmoteSettings,
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
trailing: const Icon(Icons.chevron_right_outlined),
|
||||||
|
|
|
@ -25,16 +25,6 @@ class SettingsChatView extends StatelessWidget {
|
||||||
child: MaxWidthBody(
|
child: MaxWidthBody(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
|
||||||
title: Text(L10n.of(context)!.emoteSettings),
|
|
||||||
onTap: () => context.go('/rooms/settings/chat/emotes'),
|
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
|
||||||
leading: const Icon(Icons.emoji_emotions_outlined),
|
|
||||||
),
|
|
||||||
Divider(
|
|
||||||
height: 1,
|
|
||||||
color: Theme.of(context).dividerColor,
|
|
||||||
),
|
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.formattedMessages,
|
title: L10n.of(context)!.formattedMessages,
|
||||||
subtitle: L10n.of(context)!.formattedMessagesDescription,
|
subtitle: L10n.of(context)!.formattedMessagesDescription,
|
||||||
|
@ -69,16 +59,29 @@ class SettingsChatView extends StatelessWidget {
|
||||||
storeKey: SettingKeys.autoplayImages,
|
storeKey: SettingKeys.autoplayImages,
|
||||||
defaultValue: AppConfig.autoplayImages,
|
defaultValue: AppConfig.autoplayImages,
|
||||||
),
|
),
|
||||||
Divider(
|
|
||||||
height: 1,
|
|
||||||
color: Theme.of(context).dividerColor,
|
|
||||||
),
|
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.sendOnEnter,
|
title: L10n.of(context)!.sendOnEnter,
|
||||||
onChanged: (b) => AppConfig.sendOnEnter = b,
|
onChanged: (b) => AppConfig.sendOnEnter = b,
|
||||||
storeKey: SettingKeys.sendOnEnter,
|
storeKey: SettingKeys.sendOnEnter,
|
||||||
defaultValue: AppConfig.sendOnEnter ?? !PlatformInfos.isMobile,
|
defaultValue: AppConfig.sendOnEnter ?? !PlatformInfos.isMobile,
|
||||||
),
|
),
|
||||||
|
Divider(
|
||||||
|
height: 1,
|
||||||
|
color: Theme.of(context).dividerColor,
|
||||||
|
),
|
||||||
|
ListTile(
|
||||||
|
title: Text(L10n.of(context)!.customEmojisAndStickers),
|
||||||
|
subtitle: Text(L10n.of(context)!.customEmojisAndStickersBody),
|
||||||
|
onTap: () => context.go('/rooms/settings/chat/emotes'),
|
||||||
|
trailing: const Padding(
|
||||||
|
padding: EdgeInsets.all(16.0),
|
||||||
|
child: Icon(Icons.emoji_emotions_outlined),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Divider(
|
||||||
|
height: 1,
|
||||||
|
color: Theme.of(context).dividerColor,
|
||||||
|
),
|
||||||
SettingsSwitchListTile.adaptive(
|
SettingsSwitchListTile.adaptive(
|
||||||
title: L10n.of(context)!.experimentalVideoCalls,
|
title: L10n.of(context)!.experimentalVideoCalls,
|
||||||
onChanged: (b) {
|
onChanged: (b) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ class EmotesSettingsView extends StatelessWidget {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: const Center(child: BackButton()),
|
leading: const Center(child: BackButton()),
|
||||||
title: Text(L10n.of(context)!.emoteSettings),
|
title: Text(L10n.of(context)!.customEmojisAndStickers),
|
||||||
actions: [
|
actions: [
|
||||||
PopupMenuButton<PopupMenuEmojiActions>(
|
PopupMenuButton<PopupMenuEmojiActions>(
|
||||||
onSelected: (value) {
|
onSelected: (value) {
|
||||||
|
|
|
@ -80,9 +80,9 @@ class SettingsSecurityView extends StatelessWidget {
|
||||||
if (Matrix.of(context).client.encryption != null) ...{
|
if (Matrix.of(context).client.encryption != null) ...{
|
||||||
if (PlatformInfos.isMobile)
|
if (PlatformInfos.isMobile)
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.lock_outlined),
|
|
||||||
trailing: const Icon(Icons.chevron_right_outlined),
|
trailing: const Icon(Icons.chevron_right_outlined),
|
||||||
title: Text(L10n.of(context)!.appLock),
|
title: Text(L10n.of(context)!.appLock),
|
||||||
|
subtitle: Text(L10n.of(context)!.appLockDescription),
|
||||||
onTap: controller.setAppLockAction,
|
onTap: controller.setAppLockAction,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue