mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 23:43:06 +02:00
Fix custom emoji in poll results view.
This commit is contained in:
parent
46e7b6d6df
commit
c924fcb91f
1 changed files with 7 additions and 2 deletions
|
@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include "info/polls/info_polls_results_widget.h"
|
#include "info/polls/info_polls_results_widget.h"
|
||||||
#include "lang/lang_keys.h"
|
#include "lang/lang_keys.h"
|
||||||
|
#include "core/ui_integration.h"
|
||||||
#include "data/data_peer.h"
|
#include "data/data_peer.h"
|
||||||
#include "data/data_poll.h"
|
#include "data/data_poll.h"
|
||||||
#include "data/data_session.h"
|
#include "data/data_session.h"
|
||||||
|
@ -461,7 +462,9 @@ ListController *CreateAnswerRows(
|
||||||
.append(QString::fromUtf8(" \xe2\x80\x94 "))
|
.append(QString::fromUtf8(" \xe2\x80\x94 "))
|
||||||
.append(QString::number(percent))
|
.append(QString::number(percent))
|
||||||
.append('%')),
|
.append('%')),
|
||||||
st::boxDividerLabel),
|
st::boxDividerLabel,
|
||||||
|
st::defaultPopupMenu,
|
||||||
|
Core::TextContext({ .session = session })),
|
||||||
style::margins(
|
style::margins(
|
||||||
st::pollResultsHeaderPadding.left(),
|
st::pollResultsHeaderPadding.left(),
|
||||||
st::pollResultsHeaderPadding.top(),
|
st::pollResultsHeaderPadding.top(),
|
||||||
|
@ -610,7 +613,9 @@ void InnerWidget::setupContent() {
|
||||||
object_ptr<Ui::FlatLabel>(
|
object_ptr<Ui::FlatLabel>(
|
||||||
_content,
|
_content,
|
||||||
rpl::single(_poll->question),
|
rpl::single(_poll->question),
|
||||||
st::pollResultsQuestion),
|
st::pollResultsQuestion,
|
||||||
|
st::defaultPopupMenu,
|
||||||
|
Core::TextContext({ .session = &_controller->session() })),
|
||||||
st::boxRowPadding);
|
st::boxRowPadding);
|
||||||
Ui::AddSkip(_content, st::boxLittleSkip / 2);
|
Ui::AddSkip(_content, st::boxLittleSkip / 2);
|
||||||
_content->add(
|
_content->add(
|
||||||
|
|
Loading…
Add table
Reference in a new issue