Added support of items with different heights in list of subscriptions.

This commit is contained in:
23rd 2024-11-13 01:27:48 +03:00 committed by John Preston
parent ee29deee47
commit ccc0bf57a1

View file

@ -784,6 +784,9 @@ public:
int outer,
bool selected) override;
const style::PeerListItem &computeSt(
const style::PeerListItem &st) const override;
private:
void init();
@ -1050,6 +1053,13 @@ void CreditsRow::paintStatusText(
});
}
const style::PeerListItem &CreditsRow::computeSt(
const style::PeerListItem &st) const {
return (!_subscription || !_subscription.title.isEmpty())
? st
: st::boostsListBox.item;
}
class CreditsController final : public PeerListController {
public:
explicit CreditsController(CreditsDescriptor d);