2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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);

View File

@@ -57,9 +57,9 @@ struct PaintContext {
TopicJumpCache *topicJumpCache = nullptr;
Data::Folder *folder = nullptr;
Data::Forum *forum = nullptr;
QBrush currentBg;
FilterId filter = 0;
float64 topicsExpanded = 0.;
float64 childListShown = 0.;
crl::time now = 0;
int width = 0;
bool active = false;