mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
Reworked replay buttons
+ Removed unused buttons + remade button art + fixed crash with font colors/replays + removed unused timestamp label in replay
This commit is contained in:
parent
7ea755ab5a
commit
45542243b7
11 changed files with 137 additions and 810 deletions
|
|
@ -799,8 +799,7 @@ void MessageLogWidget::logSetActivePlayer(Player *player)
|
|||
str = tr("It is now %1's turn.", "female");
|
||||
else
|
||||
str = tr("It is now %1's turn.", "male");
|
||||
QString fontColor = (player->getName().compare(QString(tabSupervisor->getUserInfo()->name().c_str())) == 0) ? "#" + settingsCache->getChatMentionColor(): "#0041FF";
|
||||
appendHtml("<br><font color=\"green\"><b>" + QDateTime::currentDateTime().toString("[hh:mm:ss] ") + str.arg("<font color=" + fontColor + ">" + player->getName() + "</font>") + "</b></font><br>");
|
||||
appendHtml("<br><font color=\"green\"><b>" + QDateTime::currentDateTime().toString("[hh:mm:ss] ") + str.arg(player->getName()) + "</b></font><br>");
|
||||
}
|
||||
|
||||
void MessageLogWidget::logSetActivePhase(int phase)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue