mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Fix Speed graph legend is illegible on dark background. Closes #4134.
This commit is contained in:
parent
ee6b968f2f
commit
a74bac20c4
1 changed files with 3 additions and 1 deletions
|
@ -230,7 +230,9 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
|
||||||
}
|
}
|
||||||
|
|
||||||
QRectF legend_background_rect(legend_top_left, QSizeF(legend_width, legend_height));
|
QRectF legend_background_rect(legend_top_left, QSizeF(legend_width, legend_height));
|
||||||
painter.fillRect(legend_background_rect, QColor(255, 255, 255, 128)); // 50% transparent
|
QColor legendBackgroundColor = QWidget::palette().color(QWidget::backgroundRole());
|
||||||
|
legendBackgroundColor.setAlpha(128); // 50% transparent
|
||||||
|
painter.fillRect(legend_background_rect, legendBackgroundColor);
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (QMap<GraphID, GraphProperties>::const_iterator it = m_properties.begin(); it != m_properties.end(); ++it) {
|
for (QMap<GraphID, GraphProperties>::const_iterator it = m_properties.begin(); it != m_properties.end(); ++it) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue