Clean up stylesheet usage

This commit is contained in:
WarmUpTill
2022-01-30 03:37:12 +01:00
committed by WarmUpTill
parent 4e75a15118
commit 727992f1d0
6 changed files with 21 additions and 18 deletions

View File

@@ -881,16 +881,8 @@ bool windowPosValid(QPoint pos)
}
QMetaObject::Connection PulseWidget(QWidget *widget, QColor startColor,
QColor endColor, QString specifier,
bool once)
QColor endColor, bool once)
{
widget->setStyleSheet(specifier + "{ \
border-style: outset; \
border-width: 2px; \
border-radius: 10px; \
border-color: rgb(0,0,0,0) \
}");
QGraphicsColorizeEffect *eEffect = new QGraphicsColorizeEffect(widget);
widget->setGraphicsEffect(eEffect);
QPropertyAnimation *paAnimation =