Added right padding to text in top bar of sections.

This commit is contained in:
23rd 2022-06-29 17:58:20 +03:00 committed by John Preston
parent 1a6b6e6084
commit df66743c61
2 changed files with 5 additions and 2 deletions

View file

@ -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 = [&] {

View file

@ -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);