mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Slightly improved style of text in top bar suggestion.
This commit is contained in:
parent
b4a9e45214
commit
664ec62396
1 changed files with 5 additions and 4 deletions
|
@ -69,17 +69,18 @@ void TopBarSuggestionContent::draw(QPainter &p) {
|
||||||
Ui::RippleButton::paintRipple(p, 0, 0);
|
Ui::RippleButton::paintRipple(p, 0, 0);
|
||||||
const auto leftPadding = st::defaultDialogRow.padding.left()
|
const auto leftPadding = st::defaultDialogRow.padding.left()
|
||||||
+ _leftPadding;
|
+ _leftPadding;
|
||||||
const auto rightPadding = st::msgReplyBarSkip;
|
const auto rightPadding = 0;
|
||||||
const auto topPadding = st::msgReplyPadding.top();
|
const auto topPadding = st::msgReplyPadding.top();
|
||||||
const auto availableWidthNoPhoto = r.width()
|
const auto availableWidthNoPhoto = r.width()
|
||||||
- (_rightArrow ? _rightArrow->width() / 2 : 0) // Takes full height.
|
- (_rightArrow
|
||||||
|
? (_rightArrow->width() / 4 * 3) // Takes full height.
|
||||||
|
: 0)
|
||||||
- leftPadding
|
- leftPadding
|
||||||
- rightPadding;
|
- rightPadding;
|
||||||
const auto availableWidth = availableWidthNoPhoto
|
const auto availableWidth = availableWidthNoPhoto
|
||||||
- (_rightHide ? _rightHide->width() : 0);
|
- (_rightHide ? _rightHide->width() : 0);
|
||||||
const auto titleRight = leftPadding;
|
const auto titleRight = leftPadding;
|
||||||
const auto hasSecondLineTitle = (titleRight
|
const auto hasSecondLineTitle = availableWidth < _contentTitle.maxWidth();
|
||||||
> (availableWidth - _contentTitle.maxWidth()));
|
|
||||||
p.setPen(st::windowActiveTextFg);
|
p.setPen(st::windowActiveTextFg);
|
||||||
p.setPen(st::windowFg);
|
p.setPen(st::windowFg);
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue