style: Use robotomono to display device keys
This commit is contained in:
parent
734c5d2a39
commit
339276b94a
4 changed files with 10 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ import 'package:vrouter/vrouter.dart';
|
|||
|
||||
import 'package:fluffychat/config/app_config.dart';
|
||||
import 'package:fluffychat/pages/chat_encryption_settings/chat_encryption_settings.dart';
|
||||
import 'package:fluffychat/utils/beautify_string_extension.dart';
|
||||
|
||||
class ChatEncryptionSettingsView extends StatelessWidget {
|
||||
final ChatEncryptionSettingsController controller;
|
||||
|
|
@ -164,13 +165,13 @@ class ChatEncryptionSettingsView extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
subtitle: Text(
|
||||
deviceKeys[i].ed25519Key?.replaceAllMapped(
|
||||
RegExp(r'.{4}'),
|
||||
(s) => '${s.group(0)} ') ??
|
||||
deviceKeys[i].ed25519Key?.beautified ??
|
||||
L10n.of(context)!
|
||||
.unknownEncryptionAlgorithm,
|
||||
style: const TextStyle(
|
||||
fontFamily: 'monospace',
|
||||
style: TextStyle(
|
||||
fontFamily: 'RobotoMono',
|
||||
color:
|
||||
Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue