style: Use robotomono to display device keys

This commit is contained in:
Christian Pauly 2023-02-17 08:45:49 +01:00
parent 799bec5ad9
commit e08f601bfd
4 changed files with 10 additions and 6 deletions

Binary file not shown.

View File

@ -7,6 +7,7 @@ import 'package:vrouter/vrouter.dart';
import 'package:fluffychat/config/app_config.dart'; import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/pages/chat_encryption_settings/chat_encryption_settings.dart'; import 'package:fluffychat/pages/chat_encryption_settings/chat_encryption_settings.dart';
import 'package:fluffychat/utils/beautify_string_extension.dart';
class ChatEncryptionSettingsView extends StatelessWidget { class ChatEncryptionSettingsView extends StatelessWidget {
final ChatEncryptionSettingsController controller; final ChatEncryptionSettingsController controller;
@ -164,13 +165,13 @@ class ChatEncryptionSettingsView extends StatelessWidget {
], ],
), ),
subtitle: Text( subtitle: Text(
deviceKeys[i].ed25519Key?.replaceAllMapped( deviceKeys[i].ed25519Key?.beautified ??
RegExp(r'.{4}'),
(s) => '${s.group(0)} ') ??
L10n.of(context)! L10n.of(context)!
.unknownEncryptionAlgorithm, .unknownEncryptionAlgorithm,
style: const TextStyle( style: TextStyle(
fontFamily: 'monospace', fontFamily: 'RobotoMono',
color:
Theme.of(context).colorScheme.secondary,
), ),
), ),
), ),

View File

@ -124,6 +124,9 @@ flutter:
style: italic style: italic
- asset: fonts/Roboto/Roboto-Bold.ttf - asset: fonts/Roboto/Roboto-Bold.ttf
weight: 700 weight: 700
- family: RobotoMono
fonts:
- asset: fonts/Roboto/RobotoMono-Regular.ttf
- family: NotoEmoji - family: NotoEmoji
fonts: fonts:
- asset: fonts/NotoEmoji/NotoColorEmoji.ttf - asset: fonts/NotoEmoji/NotoColorEmoji.ttf