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:
@@ -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);
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user