mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-06 12:03:41 +02:00
Fix crash in stories with stickers-reactions
This commit is contained in:
parent
505b98fbfc
commit
616a80ff31
1 changed files with 3 additions and 2 deletions
|
@ -273,8 +273,9 @@ ReactionView::ReactionView(
|
||||||
|
|
||||||
void ReactionView::setupCustomChatStylePalette() {
|
void ReactionView::setupCustomChatStylePalette() {
|
||||||
const auto color = uchar(_data.dark ? 255 : 0);
|
const auto color = uchar(_data.dark ? 255 : 0);
|
||||||
_chatStyle->historyTextInFg().set(color, color, color, 255);
|
Ui::ChatStyle custom{_chatStyle.get()};
|
||||||
_chatStyle->applyCustomPalette(_chatStyle.get());
|
custom.historyTextInFg().set(color, color, color, 255);
|
||||||
|
_chatStyle->applyCustomPalette(&custom);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReactionView::setAreaGeometry(QRect geometry, float64 radius) {
|
void ReactionView::setAreaGeometry(QRect geometry, float64 radius) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue