mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Qt: fix dockwidget background
This commit is contained in:
parent
7c6c33eef8
commit
900329a1de
@ -57,7 +57,7 @@ QWidget#cg_disasm {
|
|||||||
|
|
||||||
|
|
||||||
/* Main Window, Dialogs and Trophy Manager which isn't a dialog */
|
/* 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");
|
border-image: url("GuiConfigs/YoRHa-background.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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…
Reference in New Issue
Block a user