2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Improve "show" last seen button design.

This commit is contained in:
John Preston
2024-01-11 11:02:12 +04:00
parent ad03431b0a
commit 4d86ced1e6
2 changed files with 13 additions and 4 deletions

View File

@@ -413,6 +413,10 @@ void Cover::setupShowLastSeen() {
_showLastSeen->hide();
}
using TextTransform = Ui::RoundButton::TextTransform;
_showLastSeen->setTextTransform(TextTransform::NoTransform);
_showLastSeen->setFullRadius(true);
_showLastSeen->setClickedCallback([=] {
const auto type = Ui::ShowOrPremium::LastSeen;
auto box = Box(Ui::ShowOrPremiumBox, type, user->shortName(), [=] {