mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
style: Use robotomono to display device keys
This commit is contained in:
parent
799bec5ad9
commit
e08f601bfd
BIN
fonts/Roboto/RobotoMono-Regular.ttf
Normal file
BIN
fonts/Roboto/RobotoMono-Regular.ttf
Normal file
Binary file not shown.
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user