Code: Select all
Gui/DlgMacroExecuteImp.cpp: groupBox7->setStyleSheet(QString::fromLatin1("QGroupBox::title {color:red}"));
Gui/DlgMacroExecuteImp.cpp: buttonAddAction->setStyleSheet(QString::fromLatin1("color:red"));
Gui/DlgMacroExecuteImp.cpp: moveActionRightButton->setStyleSheet(QString::fromLatin1("background-color: red"));
Gui/DlgMacroExecuteImp.cpp: newButton->setStyleSheet(QString::fromLatin1("color:red"));
Gui/DlgMacroExecuteImp.cpp: label->setStyleSheet(QString::fromLatin1("color:red"));
Gui/DlgParameterImp.cpp: ui->findGroupLE->setStyleSheet(QString());
Gui/DlgParameterImp.cpp: ui->findGroupLE->setStyleSheet(styleSheet);
Gui/InputField.cpp: iconLabel->setStyleSheet(QString::fromLatin1("QLabel { border: none; padding: 0px; }"));
Gui/InputField.cpp: setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px } ").arg(iconLabel->sizeHint().width() + frameWidth + 1));
Gui/MainWindow.cpp: statusBar()->setStyleSheet(QString::fromLatin1("#statusBar{}"));
Gui/MainWindow.cpp: statusBar()->setStyleSheet(d->status->err);
Gui/MainWindow.cpp: statusBar()->setStyleSheet(d->status->wrn);
Gui/MainWindow.cpp: statusBar()->setStyleSheet(QString::fromLatin1("#statusBar{}"));
Gui/MainWindow.cpp: statusBar()->setStyleSheet(d->status->msg);
Gui/SelectionView.cpp: clearButton->setStyleSheet(QString::fromUtf8("QToolButton {margin-bottom:1px}"));
Gui/SpinBox.cpp: lineedit->setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px } ").arg(iconLabel->sizeHint().width() + frameWidth + 1));
Gui/Widgets.cpp: clearButton->setStyleSheet(QString::fromLatin1("QToolButton { border: none; padding: 0px; }"));
Gui/Widgets.cpp: setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px; } ")
Gui/Widgets.cpp: setStyleSheet(QString::fromLatin1("Gui--UrlLabel {color: #0000FF;text-decoration: underline;}"));
Gui/Widgets.cpp: setStyleSheet(QString::fromLatin1("QLineEdit { padding-right: %1px } ").arg(iconLabel->sizeHint().width() + frameWidth + 1));
Mod/Arch/ArchAxis.py: self.table.setStyleSheet(style)
Mod/Draft/DraftGui.py: self.baseWidget.setStyleSheet(style)
Mod/Draft/DraftGui.py: self.baseWidget.setStyleSheet(
Mod/Part/Gui/TaskAttacher.cpp: ui->message->setStyleSheet(QString::fromLatin1("QLabel{color: red;}"));
Mod/Part/Gui/TaskAttacher.cpp: ui->message->setStyleSheet(QString());
Mod/Part/Gui/TaskAttacher.cpp: ui->message->setStyleSheet(QString::fromLatin1("QLabel{color: green;}"));
Mod/Part/Gui/TaskAttacher.cpp: ui->message->setStyleSheet(QString::fromLatin1("QLabel{color: red;}"));
Mod/Path/PathScripts/PathGui.py: widget.setStyleSheet("color: black")
Mod/Path/PathScripts/PathGui.py: widget.setStyleSheet("color: gray")
For the padding, it's probably best to use the conditional to guard it. The problem with having it hardcoded is that it's frustrating to stylesheet authors who need to change it, and their changes either have no effect, or have counterintuitive results (e.g. setting the width to some number, and it ends up one higher than that, etc.). This will probably require changes to existing stylesheets, but in many cases those sheets aren't really being maintained and are a bit broken anyway.
Does my suggestion of adding preferences for those colors, and conditionals for the paddings, make sense? Does anyone foresee other problems with that plan?