Skip to content

Commit 2e40fc0

Browse files
committed
made reaction badges round
1 parent 980e655 commit 2e40fc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Telegram/SourceFiles/history/view/reactions/history_view_reactions.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ For license and copyright information please follow this link:
77
*/
88
#include "history/view/reactions/history_view_reactions.h"
99

10+
#include "rabbit/settings/rabbit_settings.h"
11+
1012
#include "history/history_item.h"
1113
#include "history/history.h"
1214
#include "history/view/history_view_message.h"
@@ -621,7 +623,8 @@ void InlineList::paintSingleBg(
621623
float64 opacity) const {
622624
p.setOpacity(opacity);
623625
if (!areTags()) {
624-
const auto radius = fill.height() / 2.;
626+
// const auto radius = fill.height() / 2.;
627+
const auto radius = RabbitSettings::JsonSettings::GetInt("userpic_roundness") / 100. * fill.height();
625628
p.setBrush(color);
626629
p.drawRoundedRect(fill, radius, radius);
627630
return;

0 commit comments

Comments
 (0)