make event log prettier some more
This commit is contained in:
parent
cb88d6a91f
commit
1fe7792c9d
|
@ -133,20 +133,20 @@ namespace SparkleShare {
|
||||||
|
|
||||||
// Look for the snowman!
|
// Look for the snowman!
|
||||||
string [] Parts = Regex.Split (Line, "☃");
|
string [] Parts = Regex.Split (Line, "☃");
|
||||||
string Message = Parts [1].Replace ("\n", " ");;
|
|
||||||
|
string Message = Parts [1];
|
||||||
string UserName = Parts [2];
|
string UserName = Parts [2];
|
||||||
string TimeAgo = Parts [3];
|
string TimeAgo = Parts [3];
|
||||||
string UserEmail = Parts [4];
|
string UserEmail = Parts [4];
|
||||||
|
|
||||||
|
Message = Message.Replace ("/", " → ");
|
||||||
|
Message = Message.Replace ("\n", " ");
|
||||||
|
|
||||||
Iter = LogStore.Append ();
|
Iter = LogStore.Append ();
|
||||||
|
|
||||||
LogStore.SetValue (Iter, 0, SparkleHelpers.GetAvatar (UserEmail, 24));
|
LogStore.SetValue (Iter, 0, SparkleHelpers.GetAvatar (UserEmail, 24));
|
||||||
|
LogStore.SetValue (Iter, 1, "<b>" + UserName + "</b>\n" + Message);
|
||||||
if (SparkleRepo.UserEmail.Equals (UserEmail))
|
// TODO Blend text color with treeview color instead of hardcoding it
|
||||||
LogStore.SetValue (Iter, 1, "<b>You</b>\n" + Message.Replace ("/", " → "));
|
|
||||||
else
|
|
||||||
LogStore.SetValue (Iter, 1, "<b>" + UserName + "</b>\n" + Message.Replace ("/", " → "));
|
|
||||||
|
|
||||||
LogStore.SetValue (Iter, 2, "<span fgcolor='grey'>" + TimeAgo + "</span> ");
|
LogStore.SetValue (Iter, 2, "<span fgcolor='grey'>" + TimeAgo + "</span> ");
|
||||||
|
|
||||||
// We're not showing email, it's only
|
// We're not showing email, it's only
|
||||||
|
|
Loading…
Reference in a new issue