Add hover color for timestamp.
Update dark and system themes to provide colors for the hover states for title, subtitle, and timestamp.
This commit is contained in:
parent
ae91bab07d
commit
3fceaeb203
5 changed files with 19 additions and 2 deletions
|
|
@ -227,10 +227,13 @@ RoomInfoListItem::paintEvent(QPaintEvent *event)
|
|||
|
||||
// We show the last message timestamp.
|
||||
p.save();
|
||||
if (isPressed_)
|
||||
if (isPressed_) {
|
||||
p.setPen(QPen(highlightedTimestampColor_));
|
||||
else
|
||||
} else if (underMouse()) {
|
||||
p.setPen(QPen(hoverTimestampColor_));
|
||||
} else {
|
||||
p.setPen(QPen(timestampColor_));
|
||||
}
|
||||
|
||||
p.setFont(tsFont);
|
||||
p.drawText(QPoint(width() - wm.padding - msgStampWidth, top_y),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue