diff --git a/Telegram/Resources/icons/menu_night_mode.png b/Telegram/Resources/icons/menu_night_mode.png index 8f31cc222..bab9697fc 100644 Binary files a/Telegram/Resources/icons/menu_night_mode.png and b/Telegram/Resources/icons/menu_night_mode.png differ diff --git a/Telegram/Resources/icons/menu_night_mode@2x.png b/Telegram/Resources/icons/menu_night_mode@2x.png index 34be71f66..40e474e1f 100644 Binary files a/Telegram/Resources/icons/menu_night_mode@2x.png and b/Telegram/Resources/icons/menu_night_mode@2x.png differ diff --git a/Telegram/Resources/night.tdesktop-theme b/Telegram/Resources/night.tdesktop-theme index fa7ba86f6..035ed030d 100644 Binary files a/Telegram/Resources/night.tdesktop-theme and b/Telegram/Resources/night.tdesktop-theme differ diff --git a/Telegram/SourceFiles/window/notifications_manager_default.cpp b/Telegram/SourceFiles/window/notifications_manager_default.cpp index f419c9ddb..85ea96e53 100644 --- a/Telegram/SourceFiles/window/notifications_manager_default.cpp +++ b/Telegram/SourceFiles/window/notifications_manager_default.cpp @@ -542,16 +542,17 @@ void Notification::prepareActionsCache() { auto replyCache = myGrab(_reply); auto fadeWidth = st::notifyFadeRight.width(); auto actionsTop = st::notifyTextTop + st::msgNameFont->height; - auto actionsCacheWidth = _reply->width() + _replyPadding + fadeWidth; - auto actionsCacheHeight = height() - actionsTop; - auto actionsCacheImg = QImage(actionsCacheWidth * cIntRetinaFactor(), actionsCacheHeight * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied); + auto replyRight = _replyPadding - st::notifyBorderWidth; + auto actionsCacheWidth = _reply->width() + replyRight + fadeWidth; + auto actionsCacheHeight = height() - actionsTop - st::notifyBorderWidth; + auto actionsCacheImg = QImage(QSize(actionsCacheWidth, actionsCacheHeight) * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied); actionsCacheImg.setDevicePixelRatio(cRetinaFactor()); actionsCacheImg.fill(Qt::transparent); { Painter p(&actionsCacheImg); st::notifyFadeRight.fill(p, rtlrect(0, 0, fadeWidth, actionsCacheHeight, actionsCacheWidth)); p.fillRect(rtlrect(fadeWidth, 0, actionsCacheWidth - fadeWidth, actionsCacheHeight, actionsCacheWidth), st::notificationBg); - p.drawPixmapRight(_replyPadding, _reply->y() - actionsTop, actionsCacheWidth, replyCache); + p.drawPixmapRight(replyRight, _reply->y() - actionsTop, actionsCacheWidth, replyCache); } _buttonsCache = App::pixmapFromImageInPlace(std::move(actionsCacheImg)); } @@ -609,9 +610,9 @@ void Notification::paintEvent(QPaintEvent *e) { auto buttonsTop = st::notifyTextTop + st::msgNameFont->height; if (a_actionsOpacity.animating(getms())) { p.setOpacity(a_actionsOpacity.current()); - p.drawPixmapRight(0, buttonsTop, width(), _buttonsCache); + p.drawPixmapRight(st::notifyBorderWidth, buttonsTop, width(), _buttonsCache); } else if (_actionsVisible) { - p.drawPixmapRight(0, buttonsTop, width(), _buttonsCache); + p.drawPixmapRight(st::notifyBorderWidth, buttonsTop, width(), _buttonsCache); } }