Reset hover/pick swatch back to black when closing a log

This commit is contained in:
baldurk
2017-02-14 19:14:52 +00:00
parent fbae19f622
commit a1a3d7dfdb
+9
View File
@@ -2549,6 +2549,15 @@ void TextureViewer::Reset()
ui->channels->setCurrentIndex(0);
ui->overlay->setCurrentIndex(0);
{
QPalette Pal(palette());
Pal.setColor(QPalette::Background, Qt::black);
ui->pickSwatch->setAutoFillBackground(true);
ui->pickSwatch->setPalette(Pal);
}
ui->customShader->clear();
UI_RecreatePanels();