mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:18:24 +02:00
Update style of chat messages
This commit is contained in:
parent
c1fa6b41e4
commit
7a25d0661f
1 changed files with 3 additions and 2 deletions
|
@ -162,10 +162,10 @@ void ChatWindow::addTimeStamp() {
|
||||||
if (!timeString.isEmpty()) {
|
if (!timeString.isEmpty()) {
|
||||||
QLabel* timeLabel = new QLabel(timeString);
|
QLabel* timeLabel = new QLabel(timeString);
|
||||||
timeLabel->setStyleSheet("color: palette(shadow);"
|
timeLabel->setStyleSheet("color: palette(shadow);"
|
||||||
"background-color: palette(highlight);"
|
"background-color: white;"
|
||||||
"padding: 4px;");
|
"padding: 4px;");
|
||||||
timeLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
timeLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||||
timeLabel->setAlignment(Qt::AlignHCenter);
|
timeLabel->setAlignment(Qt::AlignLeft);
|
||||||
|
|
||||||
bool atBottom = isAtBottom();
|
bool atBottom = isAtBottom();
|
||||||
|
|
||||||
|
@ -235,6 +235,7 @@ void ChatWindow::participantsChanged() {
|
||||||
"padding-bottom: 2px;"
|
"padding-bottom: 2px;"
|
||||||
"padding-left: 2px;"
|
"padding-left: 2px;"
|
||||||
"border: 1px solid palette(shadow);"
|
"border: 1px solid palette(shadow);"
|
||||||
|
"font-size: 14pt;"
|
||||||
"font-weight: bold");
|
"font-weight: bold");
|
||||||
userLabel->setProperty("user", participantName);
|
userLabel->setProperty("user", participantName);
|
||||||
userLabel->setCursor(Qt::PointingHandCursor);
|
userLabel->setCursor(Qt::PointingHandCursor);
|
||||||
|
|
Loading…
Reference in a new issue