Improve "show" last seen button design.
This commit is contained in:
parent
ad03431b0a
commit
4d86ced1e6
|
@ -338,12 +338,17 @@ infoProfileCover: InfoProfileCover {
|
||||||
statusLeft: 109px;
|
statusLeft: 109px;
|
||||||
statusTop: 58px;
|
statusTop: 58px;
|
||||||
showLastSeen: RoundButton(defaultActiveButton) {
|
showLastSeen: RoundButton(defaultActiveButton) {
|
||||||
|
textFg: windowSubTextFg;
|
||||||
|
textFgOver: windowSubTextFg;
|
||||||
|
textBg: windowBgOver;
|
||||||
|
textBgOver: windowBgOver;
|
||||||
width: -12px;
|
width: -12px;
|
||||||
height: 20px;
|
height: 18px;
|
||||||
textTop: 2px;
|
textTop: 0px;
|
||||||
font: font(11px semibold);
|
font: font(12px);
|
||||||
|
ripple: defaultRippleAnimation;
|
||||||
}
|
}
|
||||||
showLastSeenPosition: point(4px, 56px);
|
showLastSeenPosition: point(3px, 58px);
|
||||||
showLastSeenVisible: true;
|
showLastSeenVisible: true;
|
||||||
rightSkip: 20px;
|
rightSkip: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -413,6 +413,10 @@ void Cover::setupShowLastSeen() {
|
||||||
_showLastSeen->hide();
|
_showLastSeen->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using TextTransform = Ui::RoundButton::TextTransform;
|
||||||
|
_showLastSeen->setTextTransform(TextTransform::NoTransform);
|
||||||
|
_showLastSeen->setFullRadius(true);
|
||||||
|
|
||||||
_showLastSeen->setClickedCallback([=] {
|
_showLastSeen->setClickedCallback([=] {
|
||||||
const auto type = Ui::ShowOrPremium::LastSeen;
|
const auto type = Ui::ShowOrPremium::LastSeen;
|
||||||
auto box = Box(Ui::ShowOrPremiumBox, type, user->shortName(), [=] {
|
auto box = Box(Ui::ShowOrPremiumBox, type, user->shortName(), [=] {
|
||||||
|
|
Loading…
Reference in New Issue