From 8d258d013a164fe154e32d1b2139f93b67991812 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 16 Feb 2026 07:46:57 +0300 Subject: [PATCH] Added simple small mark to clickable title in calendar box. --- Telegram/SourceFiles/ui/boxes/calendar_box.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp index 9948901691..b63bd5930a 100644 --- a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp @@ -1144,10 +1144,24 @@ void CalendarBox::Title::paintEvent(QPaintEvent *e) { const auto clip = e->rect(); + const auto triangleSize = st::lineWidth * 6; + const auto triangleX = _textLeft; + const auto triangleY = (st::calendarTitleHeight + - st::calendarTitleFont->height) / 2 + + st::calendarTitleFont->height / 2; + auto triangle = QPainterPath(); + triangle.moveTo(triangleX, triangleY - triangleSize / 2); + triangle.lineTo(triangleX + triangleSize, triangleY); + triangle.lineTo(triangleX, triangleY + triangleSize / 2); + triangle.closeSubpath(); + p.setPen(Qt::NoPen); + p.setBrush(st::windowSubTextFg); + p.drawPath(triangle); + p.setFont(st::calendarTitleFont); p.setPen(_styleColors.titleTextColor); p.drawTextLeft( - _textLeft, + _textLeft + triangleSize * 2, (st::calendarTitleHeight - st::calendarTitleFont->height) / 2, width(), _text,