Added text transform to RoundButton as mandatory argument.

This commit is contained in:
23rd
2026-04-06 16:07:28 +03:00
parent d164a49675
commit 7c26a251cf
78 changed files with 267 additions and 253 deletions
+2 -2
View File
@@ -97,14 +97,14 @@ public:
const auto reset = Ui::CreateChild<Ui::RoundButton>(
this,
rpl::single<QString>(QString()),
st::ivResetZoom);
st::ivResetZoom,
Ui::RoundButtonTextNoTransform);
processTooltip(reset);
const auto resetLabel = Ui::CreateChild<Ui::FlatLabel>(
reset,
tr::lng_background_reset_default(),
st::ivResetZoomLabel);
resetLabel->setAttribute(Qt::WA_TransparentForMouseEvents);
reset->setTextTransform(Ui::RoundButton::TextTransform::NoTransform);
reset->setClickedCallback([this] {
_delegate->ivSetZoom(0);
});