TableBrowserDock: Change title style

This commit is contained in:
Nikolay Zlatev
2021-06-12 22:28:06 +03:00
parent a39ea9d0a6
commit aada909f03

View File

@@ -50,9 +50,17 @@ void TableBrowserDock::setFocusStyle(bool on)
{
// Highlight title bar when dock widget is active
if(on)
setStyleSheet("QDockWidget::title {background:palette(highlight);}");
setStyleSheet(QStringLiteral(
"QDockWidget::title {"
"background:palette(AlternateBase);"
"text-align: center;"
"border-bottom: 2px solid palette(highlight);"
"}"));
else
setStyleSheet(QString());
setStyleSheet(QStringLiteral(
"QDockWidget::title {"
"text-align: center;"
"}"));
}
void TableBrowserDock::showContextMenuTableBrowserTabBar(const QPoint& pos)