mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-08 09:09:46 +00:00
Qt: fix dockwidget background
This commit is contained in:
parent
7c6c33eef8
commit
900329a1de
3 changed files with 22 additions and 4 deletions
|
@ -225,6 +225,9 @@ QDockWidget {
|
||||||
color: #b3ac98;
|
color: #b3ac98;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
[floating="true"] {
|
||||||
|
background: #b3ac98;
|
||||||
|
}
|
||||||
QDockWidget::title {
|
QDockWidget::title {
|
||||||
background: #4d4940;
|
background: #4d4940;
|
||||||
padding-top: 0.2em;
|
padding-top: 0.2em;
|
||||||
|
|
|
@ -86,9 +86,9 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Override inherited method from Qt to allow signalling when close happened.*/
|
/** Override inherited method from Qt to allow signalling when close happened.*/
|
||||||
void closeEvent(QCloseEvent* event);
|
void closeEvent(QCloseEvent* event) override;
|
||||||
void showEvent(QShowEvent* event);
|
void showEvent(QShowEvent* event) override;
|
||||||
void hideEvent(QHideEvent* event);
|
void hideEvent(QHideEvent* event) override;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void DebugFrameClosed();
|
void DebugFrameClosed();
|
||||||
|
|
|
@ -1328,6 +1328,11 @@ void main_window::CreateDockWindows()
|
||||||
guiSettings->SetValue(gui::mw_logger, false);
|
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, [=]()
|
connect(m_debuggerFrame, &debugger_frame::DebugFrameClosed, [=]()
|
||||||
{
|
{
|
||||||
|
@ -1337,6 +1342,11 @@ void main_window::CreateDockWindows()
|
||||||
guiSettings->SetValue(gui::mw_debugger, false);
|
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, [=]()
|
connect(m_gameListFrame, &game_list_frame::GameListFrameClosed, [=]()
|
||||||
{
|
{
|
||||||
|
@ -1346,6 +1356,11 @@ void main_window::CreateDockWindows()
|
||||||
guiSettings->SetValue(gui::mw_gamelist, false);
|
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); });
|
connect(m_gameListFrame, &game_list_frame::RequestBoot, [this](const std::string& path){ Boot(path); });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue