From df66743c614ad9c3b46b66d7e240d3454dafb1ba Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 29 Jun 2022 17:58:20 +0300 Subject: [PATCH] Added right padding to text in top bar of sections. --- .../SourceFiles/history/view/history_view_top_bar_widget.cpp | 5 ++++- Telegram/SourceFiles/info/info.style | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index f940e922e..1a042d53a 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -425,7 +425,10 @@ void TopBarWidget::paintTopBar(Painter &p) { auto nameleft = _leftTaken; auto nametop = st::topBarArrowPadding.top(); auto statustop = st::topBarHeight - st::topBarArrowPadding.bottom() - st::dialogsTextFont->height; - auto availableWidth = width() - _rightTaken - nameleft; + auto availableWidth = width() + - _rightTaken + - nameleft + - st::topBarNameRightPadding; if (_chooseForReportReason) { const auto text = [&] { diff --git a/Telegram/SourceFiles/info/info.style b/Telegram/SourceFiles/info/info.style index e8deff154..954f1f2c5 100644 --- a/Telegram/SourceFiles/info/info.style +++ b/Telegram/SourceFiles/info/info.style @@ -639,7 +639,7 @@ topBarBackward: icon {{ "title_back", menuIconFg }}; topBarForwardAlpha: 0.6; topBarBack: icon {{ "title_back", lightButtonFg }}; topBarArrowPadding: margins(39px, 8px, 17px, 8px); -topBarMinPadding: 5px; +topBarNameRightPadding: 3px; topBarButton: RoundButton(defaultLightButton) { width: -18px; padding: margins(0px, 10px, 12px, 10px);