Reduced hard coded stylesheet values

* disabled hardcoded wizard pages style sheet
* adjusted style sheet
* fixed QMneu issue: https://stackoverflow.com/questions/53991839/qt-5-12-menu-items-with-unwanted-extra-space
* tagged remaining ones as "\fixme hardcoded"
This commit is contained in:
Klaus Basan
2019-01-02 06:53:59 +01:00
committed by Mat Sutcliffe
parent cd095dbb3f
commit 2de192600f
4 changed files with 16 additions and 7 deletions

View File

@@ -258,12 +258,15 @@ namespace BlackGui
BLACK_VERIFY_X(checkBox, Q_FUNC_INFO, "no checkbox");
if (!checkBox) { return; }
static const QString background("background: rgba(40,40,40)"); //! \todo hardcoded, should come from stylesheet
static const QString background("background: rgba(40,40,40)"); //! \fixme hardcoded stylesheet setting, should come from stylesheet
if (readOnly)
{
checkBox->setAttribute(Qt::WA_TransparentForMouseEvents);
checkBox->setFocusPolicy(Qt::NoFocus);
checkBox->setStyleSheet(background);
// without that, the checkboxes appear not readonly
// obviously style sheet only does not work
checkBox->setStyleSheet(background); //! fixme hardcoded stylesheet setting
}
else
{