Commit 04097314 authored by Anthony Léonard's avatar Anthony Léonard

im: use same colors as other clients' text bubbles

Colors of text bubbles are modified to improve consistency with the
other clients. We now use the same colors that were introduces by the
UWP client.

Moreover, the hover effect in the chat view has been removed as it is
not useful.

Change-Id: I2f6dc6f59e82e5b7aebb13026f4cb96fb780d51a
Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
parent 041ad393
......@@ -94,10 +94,10 @@ ImDelegate::paint(QPainter* painter,
path.addRoundedRect(textRect, padding_, padding_);
if (dir == Qt::AlignRight) {
painter->fillPath(path, RingTheme::blue_);
painter->fillPath(path, RingTheme::imBlue_);
}
else {
painter->fillPath(path, Qt::white);
painter->fillPath(path, RingTheme::imGrey_);
}
painter->save();
......@@ -105,10 +105,7 @@ ImDelegate::paint(QPainter* painter,
QTextDocument document;
document.setDefaultFont(fontMsg_);
if (dir == Qt::AlignRight)
document.setDefaultStyleSheet("body { color : white; } i { opacity: 100; font-size : 11px; text-align : right; }");
else
document.setDefaultStyleSheet("body { color : black; } i { opacity: 100; font-size : 11px; text-align : right; }");
document.setDefaultStyleSheet("body { color : black; } i { opacity: 100; font-size : 11px; text-align : right; }");
document.setHtml(msg);
......
......@@ -23,6 +23,8 @@ namespace RingTheme {
static const QColor blue_ {"#3AC0D2"};
static const QColor lightBlue_ {"#c1ebf0"};
static const QColor lightGrey_ {242, 242, 242};
static const QColor imGrey_ {"#dedee0"};
static const QColor imBlue_ {"#cfebf5"};
static const QColor lightBlack_ {63, 63, 63};
static const QColor grey_ {192, 192, 192};
static const QColor red_ {251, 72, 71};
......
......@@ -118,8 +118,7 @@ QTreeView#contactRequestList::item:hover, QListView#BannedList::item:hover{
}
QListView#listMessageView::item:hover{
background-color: rgba(229, 229, 229, 255);
border-radius: 18px;
background-color: rgba(255, 255, 255, 255);
}
QListView#listMessageView{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment