mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-20 14:31:42 +00:00
Reset hover/pick swatch back to black when closing a log
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user