summary refs log tree commit diff
path: root/src/RoomInfoListItem.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-14 01:27:30 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-14 01:27:30 +0300
commitccad3f6bd6cfcae1947d83978fbe331f2e4a52b0 (patch)
treec21de05f870c87a33170065836a1d225b336330c /src/RoomInfoListItem.cc
parentUpdate prev_batch only while paginating (diff)
downloadnheko-ccad3f6bd6cfcae1947d83978fbe331f2e4a52b0.tar.xz
Fix ripple size on RoomListItem
Diffstat (limited to 'src/RoomInfoListItem.cc')
-rw-r--r--src/RoomInfoListItem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RoomInfoListItem.cc b/src/RoomInfoListItem.cc
index 6e632a6a..f3248ee3 100644
--- a/src/RoomInfoListItem.cc
+++ b/src/RoomInfoListItem.cc
@@ -101,7 +101,7 @@ RoomInfoListItem::RoomInfoListItem(RoomState state, QString room_id, QWidget *pa
 	setElidedText(roomTopic_, room_topic, parent->width() - max_height_);
 
 	QPainterPath path;
-	path.addRoundedRect(rect(), 0, 0);
+	path.addRect(0, 0, parent->width(), max_height_);
 
 	ripple_overlay_ = new RippleOverlay(this);
 	ripple_overlay_->setClipPath(path);
@@ -157,13 +157,13 @@ void RoomInfoListItem::mousePressEvent(QMouseEvent *event)
 
 	// Ripple on mouse position by default.
 	QPoint pos = event->pos();
-	qreal radiusEndValue = static_cast<qreal>(width()) / 2;
+	qreal radiusEndValue = static_cast<qreal>(width()) / 3;
 
 	Ripple *ripple = new Ripple(pos);
 
 	ripple->setRadiusEndValue(radiusEndValue);
 	ripple->setOpacityStartValue(0.15);
-	ripple->setColor(QColor("#171919"));
+	ripple->setColor(QColor("#052B49"));
 	ripple->radiusAnimation()->setDuration(300);
 	ripple->opacityAnimation()->setDuration(500);