1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-06 23:52:51 +02:00

Some more dark themes & themes switching polishing

This commit is contained in:
2019-01-24 00:45:22 +01:00
parent 0411bba02c
commit dcd4666f59
4 changed files with 49 additions and 17 deletions

View File

@ -521,3 +521,14 @@ void GraphView::setSliderColor(const QColor &color)
_slider->setColor(color);
_sliderInfo->setColor(color);
}
void GraphView::changeEvent(QEvent *e)
{
if (e->type() == QEvent::PaletteChange) {
_message->setBrush(QPalette().brush(QPalette::Disabled,
QPalette::WindowText));
setBackgroundBrush(QBrush(palette().brush(QPalette::Base)));
}
QGraphicsView::changeEvent(e);
}