1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

Qt: fix dockwidget background

This commit is contained in:
Megamouse 2018-03-01 13:18:41 +01:00 committed by Ivan
parent 7c6c33eef8
commit 900329a1de
3 changed files with 22 additions and 4 deletions

View File

@ -57,7 +57,7 @@ QWidget#cg_disasm {
/* Main Window, Dialogs and Trophy Manager which isn't a dialog */
QDialog, QWidget#trophy_manager, QMainWindow#main_window {
QDialog, QWidget#trophy_manager, QMainWindow#main_window {
border-image: url("GuiConfigs/YoRHa-background.jpg");
}
@ -225,6 +225,9 @@ QDockWidget {
color: #b3ac98;
font-weight: 500;
}
[floating="true"] {
background: #b3ac98;
}
QDockWidget::title {
background: #4d4940;
padding-top: 0.2em;

View File

@ -86,9 +86,9 @@ public:
protected:
/** Override inherited method from Qt to allow signalling when close happened.*/
void closeEvent(QCloseEvent* event);
void showEvent(QShowEvent* event);
void hideEvent(QHideEvent* event);
void closeEvent(QCloseEvent* event) override;
void showEvent(QShowEvent* event) override;
void hideEvent(QHideEvent* event) override;
Q_SIGNALS:
void DebugFrameClosed();

View File

@ -1328,6 +1328,11 @@ void main_window::CreateDockWindows()
guiSettings->SetValue(gui::mw_logger, false);
}
});
connect(m_logFrame, &log_frame::topLevelChanged, [=](bool/* topLevel*/)
{
m_logFrame->style()->unpolish(m_logFrame);
m_logFrame->style()->polish(m_logFrame);
});
connect(m_debuggerFrame, &debugger_frame::DebugFrameClosed, [=]()
{
@ -1337,6 +1342,11 @@ void main_window::CreateDockWindows()
guiSettings->SetValue(gui::mw_debugger, false);
}
});
connect(m_debuggerFrame, &log_frame::topLevelChanged, [=](bool/* topLevel*/)
{
m_debuggerFrame->style()->unpolish(m_debuggerFrame);
m_debuggerFrame->style()->polish(m_debuggerFrame);
});
connect(m_gameListFrame, &game_list_frame::GameListFrameClosed, [=]()
{
@ -1346,6 +1356,11 @@ void main_window::CreateDockWindows()
guiSettings->SetValue(gui::mw_gamelist, false);
}
});
connect(m_gameListFrame, &log_frame::topLevelChanged, [=](bool/* topLevel*/)
{
m_gameListFrame->style()->unpolish(m_gameListFrame);
m_gameListFrame->style()->polish(m_gameListFrame);
});
connect(m_gameListFrame, &game_list_frame::RequestBoot, [this](const std::string& path){ Boot(path); });
}