mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-29 11:11:43 +01:00
added color to name displayed on top of menu
This commit is contained in:
parent
6057e16005
commit
94699597ae
@ -12,7 +12,10 @@ Future<void> processNotifications(Tree node) async {
|
||||
Future.delayed(const Duration(milliseconds: waitMilliSeconds), () {
|
||||
|
||||
List<String> newEventsId = node.insertEvents(getRecievedEvents());
|
||||
node.printNotifications(newEventsId, getAuthorName(userPublicKey));
|
||||
String nameToDisplay = userPrivateKey.length == 64?
|
||||
"$commentColor${getAuthorName(userPublicKey)}$colorEndMarker":
|
||||
"${warningColor}You are not signed in$colorEndMarker but are using public key $userPublicKey";
|
||||
node.printNotifications(newEventsId, nameToDisplay);
|
||||
clearEvents();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user