mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed color of icon for replies with media story.
This commit is contained in:
parent
b35d3f57fe
commit
7a6c55bd8a
1 changed files with 8 additions and 8 deletions
|
@ -761,6 +761,14 @@ void Reply::paint(
|
|||
: useColorIndex
|
||||
? st->coloredTextPalette(selected, colorIndexPlusOne - 1)
|
||||
: stm->replyTextPalette);
|
||||
auto owned = std::optional<style::owned_color>();
|
||||
auto copy = std::optional<style::TextPalette>();
|
||||
if (inBubble && colorIndexPlusOne) {
|
||||
copy.emplace(*replyToTextPalette);
|
||||
owned.emplace(cache->icon);
|
||||
copy->linkFg = owned->color();
|
||||
replyToTextPalette = &*copy;
|
||||
}
|
||||
if (_replyToStory) {
|
||||
st::dialogsMiniReplyStory.icon.icon.paint(
|
||||
p,
|
||||
|
@ -771,14 +779,6 @@ void Reply::paint(
|
|||
firstLineSkip += st::dialogsMiniReplyStory.skipText
|
||||
+ st::dialogsMiniReplyStory.icon.icon.width();
|
||||
}
|
||||
auto owned = std::optional<style::owned_color>();
|
||||
auto copy = std::optional<style::TextPalette>();
|
||||
if (inBubble && colorIndexPlusOne) {
|
||||
copy.emplace(*replyToTextPalette);
|
||||
owned.emplace(cache->icon);
|
||||
copy->linkFg = owned->color();
|
||||
replyToTextPalette = &*copy;
|
||||
}
|
||||
_text.draw(p, {
|
||||
.position = { textLeft, textTop },
|
||||
.geometry = textGeometry(textw, firstLineSkip),
|
||||
|
|
Loading…
Add table
Reference in a new issue