mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added support of items with different heights in list of subscriptions.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user