mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-26 08:39:36 +00:00
Reset hover/pick swatch back to black when closing a log
This commit is contained in:
1 parent
fbae19f622
commit
a1a3d7dfdb
1 file changed
+9
@@ -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