mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Added ability to inspect earn balance from channel info.
This commit is contained in:
@@ -130,7 +130,8 @@ void CreateRightLabel(
|
||||
not_null<Button*> button,
|
||||
v::text::data &&label,
|
||||
const style::SettingsButton &st,
|
||||
rpl::producer<QString> buttonText) {
|
||||
rpl::producer<QString> buttonText,
|
||||
Ui::Text::MarkedContext context) {
|
||||
const auto name = Ui::CreateChild<Ui::FlatLabel>(
|
||||
button.get(),
|
||||
st.rightLabel);
|
||||
@@ -167,7 +168,7 @@ void CreateRightLabel(
|
||||
- st.padding.right()
|
||||
- st.style.font->width(button)
|
||||
- st::settingsButtonRightSkip;
|
||||
name->setMarkedText(text);
|
||||
name->setMarkedText(text, context);
|
||||
name->resizeToNaturalWidth(available);
|
||||
name->moveToRight(st::settingsButtonRightSkip, st.padding.top());
|
||||
}, name->lifetime());
|
||||
|
Reference in New Issue
Block a user