Split verified check icon.
This commit is contained in:
@@ -82,7 +82,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_channel_earn.h"
|
||||
#include "styles/style_chat.h"
|
||||
#include "styles/style_info.h" // infoVerifiedCheck.
|
||||
#include "styles/style_info.h" // infoVerifiedStar.
|
||||
#include "styles/style_layers.h"
|
||||
#include "styles/style_menu_icons.h"
|
||||
#include "styles/style_window.h"
|
||||
@@ -412,7 +412,7 @@ void FillBotUsepic(
|
||||
title,
|
||||
rpl::single(bot->name()),
|
||||
box->getDelegate()->style().title);
|
||||
const auto icon = bot->isVerified() ? &st::infoVerifiedCheck : nullptr;
|
||||
const auto icon = bot->isVerified() ? &st::infoVerifiedStar : nullptr;
|
||||
title->resize(
|
||||
titleLabel->width() + (icon ? icon->width() : 0),
|
||||
titleLabel->height());
|
||||
@@ -1346,9 +1346,9 @@ void WebViewInstance::show(ShowArgs &&args) {
|
||||
const auto raw = titleBadge.data();
|
||||
raw->paintRequest() | rpl::start_with_next([=] {
|
||||
auto p = Painter(raw);
|
||||
st::infoVerifiedCheck.paint(p, st::lineWidth, 0, raw->width());
|
||||
st::infoVerifiedStar.paint(p, st::lineWidth, 0, raw->width());
|
||||
}, raw->lifetime());
|
||||
raw->resize(st::infoVerifiedCheck.size() + QSize(0, st::lineWidth));
|
||||
raw->resize(st::infoVerifiedStar.size() + QSize(0, st::lineWidth));
|
||||
}
|
||||
|
||||
const auto &bots = _session->attachWebView().attachBots();
|
||||
|
||||
Reference in New Issue
Block a user