Italised whole join text

This commit is contained in:
Tristan B. Kildaire 2020-10-23 08:56:52 +02:00
parent b6781a4ce0
commit 2c3040391d
1 changed files with 5 additions and 3 deletions

View File

@ -270,10 +270,12 @@ public final class Channel
public void channelJoin(string username)
{
/* The label to add */
/* TODO: Bababooey these `-->` being parsed as HTML for Pango */
Label joinLabel = new Label("--> <i>"~username~" joined the channel</i>");
Label joinLabel = new Label("--> "~username~" joined the channel");
joinLabel.setHalign(GtkAlign.START);
joinLabel.setUseMarkup(true);
PgAttributeList joinLabelAttrs = new PgAttributeList();
PgAttribute joinLabelAttr = PgAttribute.styleNew(PangoStyle.ITALIC);
joinLabelAttrs.insert(joinLabelAttr);
joinLabel.setAttributes(joinLabelAttrs);
/* Add join message to message log */
textArea.add(joinLabel);