2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add some more colors for theming.

This commit is contained in:
John Preston
2017-06-28 09:37:49 +03:00
parent 8ee5c70708
commit 75fdd5315f
7 changed files with 22 additions and 18 deletions

View File

@@ -742,7 +742,8 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
int32 nameleft = 0, nametop = 0, nameright = 0, statustop = 0, datetop = -1;
bool wthumb = withThumb();
if (_data->song()) {
auto isSong = (_data->song() != nullptr);
if (isSong) {
nameleft = _st.songPadding.left() + _st.songThumbSize + _st.songPadding.right();
nameright = _st.songPadding.left();
nametop = _st.songNameTop;
@@ -873,7 +874,7 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
if (clip.intersects(rtlrect(nameleft, statustop, availwidth, st::normalFont->height, _width))) {
p.setFont(st::normalFont);
p.setPen(st::mediaInFg);
p.setPen((isSong && selected) ? st::mediaInFgSelected : st::mediaInFg);
p.drawTextLeft(nameleft, statustop, _width, _status.text());
}
if (datetop >= 0 && clip.intersects(rtlrect(nameleft, datetop, _datew, st::normalFont->height, _width))) {