mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Qt 6.7.0
Also fix new stylesheet issue: windows11 style is now default. This currently breaks custom stylesheets. Use windowsvista style as default
This commit is contained in:
parent
10dece1c80
commit
2b4a90781a
4 changed files with 19 additions and 10 deletions
|
|
@ -887,8 +887,17 @@ void gui_application::OnChangeStyleSheetRequest()
|
|||
// Determine default style
|
||||
if (m_default_style.isEmpty())
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// On windows, the custom stylesheets don't seem to work properly unless we use the windowsvista style as default
|
||||
if (QStyleFactory::keys().contains("windowsvista"))
|
||||
{
|
||||
m_default_style = "windowsvista";
|
||||
gui_log.notice("Using '%s' as default style", m_default_style);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Use the initial style as default style
|
||||
if (const QStyle* style = QApplication::style())
|
||||
if (const QStyle* style = m_default_style.isEmpty() ? QApplication::style() : nullptr)
|
||||
{
|
||||
m_default_style = style->name();
|
||||
gui_log.notice("Determined '%s' as default style", m_default_style);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue