mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Removing almost all animated over states in IconButton.
This commit is contained in:
@@ -157,7 +157,7 @@ contactsMultiSelect: MultiSelect {
|
||||
iconBgOver: boxSearchCancelIconFgOver;
|
||||
|
||||
iconPosition: point(8px, 18px);
|
||||
downIconPosition: point(8px, 18px);
|
||||
iconPositionDown: point(8px, 18px);
|
||||
}
|
||||
fieldCancelSkip: 34px;
|
||||
}
|
||||
@@ -230,13 +230,15 @@ sessionInfoFont: msgFont;
|
||||
sessionInfoFg: #888888;
|
||||
sessionTerminateTop: 30px;
|
||||
sessionTerminateSkip: 18px;
|
||||
sessionTerminate: IconButton(defaultIconButton) {
|
||||
sessionTerminate: IconButton {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
|
||||
icon: simpleCloseIcon;
|
||||
iconOver: simpleCloseIconOver;
|
||||
|
||||
iconPosition: point(3px, 3px);
|
||||
downIconPosition: point(3px, 4px);
|
||||
iconPositionDown: point(3px, 4px);
|
||||
}
|
||||
|
||||
passcodeHeaderFont: font(19px);
|
||||
|
@@ -289,7 +289,6 @@ void NotificationsBox::prepareNotificationSampleLarge() {
|
||||
auto notifyTitle = st::msgNameFont->elided(qsl("Telegram Desktop"), rectForName.width());
|
||||
p.drawText(rectForName.left(), rectForName.top() + st::msgNameFont->ascent, notifyTitle);
|
||||
|
||||
p.setOpacity(st::notifyClose.opacity);
|
||||
st::notifyClose.icon.paint(p, w - st::notifyClosePos.x() - st::notifyClose.width + st::notifyClose.iconPosition.x(), st::notifyClosePos.y() + st::notifyClose.iconPosition.y(), w);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user