mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added text transform to RoundButton as mandatory argument.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user