mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Added support of items with different heights in list of subscriptions.
This commit is contained in:
parent
ee29deee47
commit
ccc0bf57a1
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue