diff --git a/pylonrecorder.cpp b/pylonrecorder.cpp index 10aa50a..86b42fa 100644 --- a/pylonrecorder.cpp +++ b/pylonrecorder.cpp @@ -71,7 +71,6 @@ PylonRecorder::PylonRecorder(QWidget *parent) QLabel *loadLabel = new QLabel("Load:", this); writingLabel = new QLabel("writing"); - //writingLabel->setStyleSheet("QLabel { color : gray; }"); writingLabel->setEnabled(false); grabbingLabel = new QLabel("grabbing"); //grabbingLabel->setStyleSheet("QLabel { color : gray; }"); @@ -480,8 +479,8 @@ void PylonRecorder::writerDone() { } void PylonRecorder::displayActivity() { - grabbingLabel->setEnabled(labelSwitch && grabbing); - writingLabel->setEnabled(labelSwitch && writing); + grabbingLabel->setStyleSheet((labelSwitch && grabbing) ? activeLabelStyleHigh : activeLabelStyleLow); + writingLabel->setStyleSheet((labelSwitch && writing) ? activeLabelStyleHigh : activeLabelStyleLow); labelSwitch = !labelSwitch; } diff --git a/pylonrecorder.h b/pylonrecorder.h index be8f643..2a6fedf 100644 --- a/pylonrecorder.h +++ b/pylonrecorder.h @@ -85,6 +85,10 @@ private: Writer *writer; bool grabbing, stopRequest, writing, labelSwitch; QPalette progressPalette; + QString activeLabelStyleHigh = "QLabel { color : red; }"; + QString activeLabelStyleLow = "QLabel { color : cmyk(0, 255, 255, 0, 50); }"; + QString inactiveLabelStyle = ("QLabel { color :gray; }"); + #if defined(QT_PRINTSUPPORT_LIB) && QT_CONFIG(printer) QPrinter printer;