added color to name displayed on top of menu

This commit is contained in:
vishalxl 2022-08-26 00:22:01 +05:30
parent 6057e16005
commit 94699597ae

View File

@ -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();
});