mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-07 15:32:13 +00:00
Fix QDockWidget Header Background on macOS #290
This commit is contained in:
parent
51a79c89ac
commit
0dbadc59d8
@ -229,7 +229,17 @@ void Configuration::loadDarkTheme()
|
|||||||
{
|
{
|
||||||
f.open(QFile::ReadOnly | QFile::Text);
|
f.open(QFile::ReadOnly | QFile::Text);
|
||||||
QTextStream ts(&f);
|
QTextStream ts(&f);
|
||||||
qApp->setStyleSheet(ts.readAll());
|
QString stylesheet = ts.readAll();
|
||||||
|
#ifdef Q_OS_MACX
|
||||||
|
// see https://github.com/ColinDuquesnoy/QDarkStyleSheet/issues/22#issuecomment-96179529
|
||||||
|
stylesheet += "QDockWidget::title"
|
||||||
|
"{"
|
||||||
|
" background-color: #31363b;"
|
||||||
|
" text-align: center;"
|
||||||
|
" height: 12px;"
|
||||||
|
"}";
|
||||||
|
#endif
|
||||||
|
qApp->setStyleSheet(stylesheet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user