diff --git a/Telegram/SourceFiles/history/view/media/history_view_location.cpp b/Telegram/SourceFiles/history/view/media/history_view_location.cpp index f16d65141..5b8b18e61 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_location.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_location.cpp @@ -509,7 +509,10 @@ void Location::paintLiveRemaining( auto pen = QPen(color); pen.setWidthF(stroke); p.setPen(pen); - p.drawArc(rect, 90 * 16, int(base::SafeRound(360 * 16 * progress))); + p.drawArc( + rect, + arc::kQuarterLength, + int(base::SafeRound(arc::kFullLength * progress))); } p.setPen(stm->msgServiceFg); diff --git a/Telegram/SourceFiles/ui/arc_angles.h b/Telegram/SourceFiles/ui/arc_angles.h deleted file mode 100644 index cfaa59b94..000000000 --- a/Telegram/SourceFiles/ui/arc_angles.h +++ /dev/null @@ -1,16 +0,0 @@ -/* -This file is part of Telegram Desktop, -the official desktop application for the Telegram messaging service. - -For license and copyright information please follow this link: -https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL -*/ -#pragma once - -namespace arc { - -constexpr auto kFullLength = 360 * 16; -constexpr auto kQuarterLength = (kFullLength / 4); -constexpr auto kHalfLength = (kFullLength / 2); - -} // namespace arc diff --git a/Telegram/cmake/td_ui.cmake b/Telegram/cmake/td_ui.cmake index 61c9012c1..da2ea224d 100644 --- a/Telegram/cmake/td_ui.cmake +++ b/Telegram/cmake/td_ui.cmake @@ -396,7 +396,6 @@ PRIVATE ui/widgets/vertical_drum_picker.cpp ui/widgets/vertical_drum_picker.h - ui/arc_angles.h ui/cached_round_corners.cpp ui/cached_round_corners.h ui/color_contrast.cpp