Avoid qss warnings with Qt 5.13.2

QCssParser::parseColorValue:
Specified color with alpha value but no alpha given: 'rgba 40,40,40'

see https://discordapp.com/channels/539048679160676382/539925070550794240/654376042596794378
This commit is contained in:
Klaus Basan
2019-12-11 23:35:15 +01:00
committed by Mat Sutcliffe
parent 429c91d93e
commit aff8665c4d
2 changed files with 8 additions and 8 deletions

View File

@@ -372,7 +372,7 @@ namespace BlackGui
BLACK_VERIFY_X(checkBox, Q_FUNC_INFO, "no checkbox");
if (!checkBox) { return; }
static const QString background("background: rgba(40,40,40)"); //! \fixme hardcoded stylesheet setting, should come from stylesheet
static const QString background("background: rgb(40,40,40)"); //! \fixme hardcoded stylesheet setting, should come from stylesheet
if (readOnly)
{
checkBox->setAttribute(Qt::WA_TransparentForMouseEvents);

View File

@@ -24,7 +24,7 @@ QCheckBox {
/* CGuiUtility::checkBoxReadOnly */
/* used for read-only checkboxes */
/* QCheckBox[readOnly="true"] { background: rgba(40,40,40); } */
/* QCheckBox[readOnly="true"] { background: rgb(40,40,40); } */
QCheckBox::indicator {
color: #b1b1b1;
@@ -327,13 +327,13 @@ QLineEdit {
}
QLineEdit[readOnly="true"] {
background: rgba(40,40,40);
border: 1px solid rgba(50,50,50);
background: rgb(40,40,40);
border: 1px solid rgb(50,50,50);
}
QLineEdit:disabled {
background: rgba(40,40,40);
border: 1px solid rgba(50,50,50);
background: rgb(40,40,40);
border: 1px solid rgb(50,50,50);
}
QLineEdit[validation="error"] { border: 2px solid red; }
@@ -412,8 +412,8 @@ QComboBox {
}
QComboBox:disabled {
background: rgba(40,40,40);
border: 1px solid rgba(50,50,50);
background: rgb(40,40,40);
border: 1px solid rgb(50,50,50);
}
/* drop down list */