feat: add option to provide a titlebar (default on)

This commit is contained in:
2026-06-29 19:20:42 +08:00
parent 8f0d4da7ad
commit 1cbc1a3b72
11 changed files with 324 additions and 21 deletions
+1 -6
View File
@@ -11,7 +11,7 @@
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
ToolButton::ToolButton(bool hoverColor, QWidget *parent)
ToolButton::ToolButton(QWidget *parent)
: QPushButton(parent)
, m_opacityHelper(new OpacityHelper(this))
{
@@ -19,11 +19,6 @@ ToolButton::ToolButton(bool hoverColor, QWidget *parent)
QString qss = "QPushButton {"
"background: transparent;"
"}";
if (hoverColor) {
qss += "QPushButton:hover {"
"background: red;"
"}";
}
setStyleSheet(qss);
}