mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Use more specific color keys for media overview parts.
File icons and radial animations should use derived keys instead of msgInBg. Fixes #4246.
This commit is contained in:
@@ -620,7 +620,7 @@ void Voice::paint(Painter &p, const QRect &clip, TextSelection selection, const
|
||||
|
||||
if (radial) {
|
||||
QRect rinner(inner.marginsRemoved(QMargins(st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine)));
|
||||
auto &bg = selected ? st::msgInBgSelected : st::msgInBg;
|
||||
auto &bg = selected ? st::historyFileInRadialFgSelected : st::historyFileInRadialFg;
|
||||
_radial->draw(p, rinner, st::msgFileRadialLine, bg);
|
||||
}
|
||||
|
||||
@@ -879,7 +879,7 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
|
||||
|
||||
if (radial) {
|
||||
auto rinner = inner.marginsRemoved(QMargins(st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine));
|
||||
auto &bg = selected ? st::msgInBgSelected : st::msgInBg;
|
||||
auto &bg = selected ? st::historyFileInRadialFgSelected : st::historyFileInRadialFg;
|
||||
_radial->draw(p, rinner, st::msgFileRadialLine, bg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user