diff --git a/Telegram/Resources/icons/map_point.png b/Telegram/Resources/icons/map_point.png new file mode 100644 index 000000000..5fdbbbed4 Binary files /dev/null and b/Telegram/Resources/icons/map_point.png differ diff --git a/Telegram/Resources/icons/map_point@2x.png b/Telegram/Resources/icons/map_point@2x.png new file mode 100644 index 000000000..1f0a03e44 Binary files /dev/null and b/Telegram/Resources/icons/map_point@2x.png differ diff --git a/Telegram/SourceFiles/history/history.style b/Telegram/SourceFiles/history/history.style index a4f085cdc..38a12aafb 100644 --- a/Telegram/SourceFiles/history/history.style +++ b/Telegram/SourceFiles/history/history.style @@ -468,3 +468,5 @@ historyAboutProxy: FlatLabel(defaultFlatLabel) { textFg: windowSubTextFg; } historyAboutProxyPadding: margins(20px, 10px, 20px, 10px); + +historyMapPoint: icon {{ "map_point", windowBgActive }}; diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index eb3129317..8f71d883f 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -41,6 +41,7 @@ namespace { constexpr auto kMaxGifForwardedBarLines = 4; constexpr auto kMaxOriginalEntryLines = 8192; +const auto kMapPointFg = QColor(64, 167, 227); using TextState = HistoryView::TextState; @@ -4843,6 +4844,13 @@ void HistoryLocation::draw(Painter &p, const QRect &r, TextSelection selection, } else { App::complexLocationRect(p, rthumb, roundRadius, roundCorners); } + const auto &point = st::historyMapPoint; + point.paint( + p, + rthumb.x() + ((rthumb.width() - point.width()) / 2), + rthumb.y() + (rthumb.height() / 2) - point.height(), + width(), + kMapPointFg); if (selected) { App::complexOverlayRect(p, rthumb, roundRadius, roundCorners); }