mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +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,
|
int outer,
|
||||||
bool selected) override;
|
bool selected) override;
|
||||||
|
|
||||||
|
const style::PeerListItem &computeSt(
|
||||||
|
const style::PeerListItem &st) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void init();
|
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 {
|
class CreditsController final : public PeerListController {
|
||||||
public:
|
public:
|
||||||
explicit CreditsController(CreditsDescriptor d);
|
explicit CreditsController(CreditsDescriptor d);
|
||||||
|
|
Loading…
Add table
Reference in a new issue