Skip to content

Commit

Permalink
made reaction badges round
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdnx committed Jun 16, 2024
1 parent 980e655 commit 2e40fc0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ For license and copyright information please follow this link:
*/
#include "history/view/reactions/history_view_reactions.h"

#include "rabbit/settings/rabbit_settings.h"

#include "history/history_item.h"
#include "history/history.h"
#include "history/view/history_view_message.h"
Expand Down Expand Up @@ -621,7 +623,8 @@ void InlineList::paintSingleBg(
float64 opacity) const {
p.setOpacity(opacity);
if (!areTags()) {
const auto radius = fill.height() / 2.;
// const auto radius = fill.height() / 2.;
const auto radius = RabbitSettings::JsonSettings::GetInt("userpic_roundness") / 100. * fill.height();
p.setBrush(color);
p.drawRoundedRect(fill, radius, radius);
return;
Expand Down

0 comments on commit 2e40fc0

Please sign in to comment.