mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Closed beta 10019001: style::color copy is denied, only const refs.
This commit is contained in:
@@ -284,7 +284,7 @@ void PhotoSendBox::paintEvent(QPaintEvent *e) {
|
||||
p.setPen(st::historyFileNameOutFg);
|
||||
_name.drawLeftElided(p, x + nameleft, y + nametop, namewidth, width());
|
||||
|
||||
style::color status(st::mediaOutFg);
|
||||
auto &status = st::mediaOutFg;
|
||||
p.setFont(st::normalFont);
|
||||
p.setPen(status);
|
||||
p.drawTextLeft(x + nameleft, y + statustop, width(), _status);
|
||||
@@ -602,7 +602,7 @@ void EditCaptionBox::paintEvent(QPaintEvent *e) {
|
||||
p.setPen(st::historyFileNameInFg);
|
||||
_name.drawLeftElided(p, x + nameleft, y + nametop, namewidth, width());
|
||||
|
||||
style::color status(st::mediaInFg);
|
||||
auto &status = st::mediaInFg;
|
||||
p.setFont(st::normalFont);
|
||||
p.setPen(status);
|
||||
p.drawTextLeft(x + nameleft, y + statustop, width(), _status);
|
||||
|
Reference in New Issue
Block a user