2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Added support to hide name and value of line in PointDetailsWidget.

This commit is contained in:
23rd
2023-07-14 19:01:33 +03:00
committed by John Preston
parent 41bc47eb6f
commit ee172d951d
3 changed files with 40 additions and 6 deletions

View File

@@ -916,6 +916,11 @@ void ChartWidget::setupChartArea() {
const auto opacity = ScopedPainterOpacity(p, detailsAlpha);
p.fillRect(lineRect, st::windowSubTextFg);
_details.widget->setAlpha(detailsAlpha);
for (const auto &line : _chartData.lines) {
_details.widget->setLineAlpha(
line.id,
_animatedChartLines.alpha(line.id));
}
}
}