mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Slightly improved style of inner box for channel earn history entries.
This commit is contained in:
parent
9caff93c35
commit
a86e7f035f
2 changed files with 10 additions and 1 deletions
|
@ -61,6 +61,12 @@ channelEarnHistoryMinorLabel: FlatLabel(channelEarnOverviewMinorLabel) {
|
|||
font: font(12px semibold);
|
||||
}
|
||||
}
|
||||
channelEarnHistoryDescriptionLabel: FlatLabel(channelEarnHistoryMajorLabel) {
|
||||
// boxWidth - boxRowPadding = 320 - 24 * 2
|
||||
minWidth: 272px;
|
||||
maxHeight: 0px;
|
||||
align: align(center);
|
||||
}
|
||||
channelEarnHistoryMinorLabelSkip: 2px;
|
||||
channelEarnHistoryOuter: margins(0px, 6px, 0px, 6px);
|
||||
channelEarnHistoryTwoSkip: 5px;
|
||||
|
|
|
@ -809,6 +809,9 @@ void InnerWidget::fill() {
|
|||
|
||||
const auto detailsBox = [=, amount = entry.amount, peer = _peer](
|
||||
not_null<Ui::GenericBox*> box) {
|
||||
box->addTopButton(
|
||||
st::boxTitleClose,
|
||||
[=] { box->closeBox(); });
|
||||
Ui::AddSkip(box->verticalLayout());
|
||||
Ui::AddSkip(box->verticalLayout());
|
||||
const auto labels = box->addRow(
|
||||
|
@ -860,7 +863,7 @@ void InnerWidget::fill() {
|
|||
isIn
|
||||
? tr::lng_channel_earn_history_in_about()
|
||||
: tr::lng_channel_earn_history_out(),
|
||||
st::channelEarnHistoryMajorLabel)));
|
||||
st::channelEarnHistoryDescriptionLabel)));
|
||||
Ui::AddSkip(box->verticalLayout());
|
||||
if (isIn) {
|
||||
Ui::AddSkip(box->verticalLayout());
|
||||
|
|
Loading…
Add table
Reference in a new issue