2
0
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:
23rd
2025-05-05 02:15:17 +03:00
parent 14328eb601
commit a8afc62db7
8 changed files with 119 additions and 54 deletions

View File

@@ -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());