2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix background color in collapsed row with child list.

This commit is contained in:
John Preston
2022-12-06 13:05:05 +04:00
parent 7ad26a0fca
commit 2d6bac5a28
4 changed files with 20 additions and 13 deletions

View File

@@ -305,10 +305,7 @@ void PaintRow(
? st::dialogsBgActive
: context.selected
? st::dialogsBgOver
: anim::brush(
st::dialogsBg,
st::dialogsBgOver,
context.childListShown);
: context.currentBg;
p.fillRect(geometry, bg);
if (!(flags & Flag::TopicJumpRipple)) {
auto ripple = context.active
@@ -1137,7 +1134,7 @@ void PaintCollapsedRow(
const PaintContext &context) {
p.fillRect(
QRect{ 0, 0, context.width, st::dialogsImportantBarHeight },
context.selected ? st::dialogsBgOver : st::dialogsBg);
context.selected ? st::dialogsBgOver : context.currentBg);
row.paintRipple(p, 0, 0, context.width);