mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
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:
committed by
Mat Sutcliffe
parent
429c91d93e
commit
aff8665c4d
@@ -372,7 +372,7 @@ namespace BlackGui
|
|||||||
BLACK_VERIFY_X(checkBox, Q_FUNC_INFO, "no checkbox");
|
BLACK_VERIFY_X(checkBox, Q_FUNC_INFO, "no checkbox");
|
||||||
if (!checkBox) { return; }
|
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)
|
if (readOnly)
|
||||||
{
|
{
|
||||||
checkBox->setAttribute(Qt::WA_TransparentForMouseEvents);
|
checkBox->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ QCheckBox {
|
|||||||
|
|
||||||
/* CGuiUtility::checkBoxReadOnly */
|
/* CGuiUtility::checkBoxReadOnly */
|
||||||
/* used for read-only checkboxes */
|
/* used for read-only checkboxes */
|
||||||
/* QCheckBox[readOnly="true"] { background: rgba(40,40,40); } */
|
/* QCheckBox[readOnly="true"] { background: rgb(40,40,40); } */
|
||||||
|
|
||||||
QCheckBox::indicator {
|
QCheckBox::indicator {
|
||||||
color: #b1b1b1;
|
color: #b1b1b1;
|
||||||
@@ -327,13 +327,13 @@ QLineEdit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit[readOnly="true"] {
|
QLineEdit[readOnly="true"] {
|
||||||
background: rgba(40,40,40);
|
background: rgb(40,40,40);
|
||||||
border: 1px solid rgba(50,50,50);
|
border: 1px solid rgb(50,50,50);
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit:disabled {
|
QLineEdit:disabled {
|
||||||
background: rgba(40,40,40);
|
background: rgb(40,40,40);
|
||||||
border: 1px solid rgba(50,50,50);
|
border: 1px solid rgb(50,50,50);
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit[validation="error"] { border: 2px solid red; }
|
QLineEdit[validation="error"] { border: 2px solid red; }
|
||||||
@@ -412,8 +412,8 @@ QComboBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QComboBox:disabled {
|
QComboBox:disabled {
|
||||||
background: rgba(40,40,40);
|
background: rgb(40,40,40);
|
||||||
border: 1px solid rgba(50,50,50);
|
border: 1px solid rgb(50,50,50);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* drop down list */
|
/* drop down list */
|
||||||
|
|||||||
Reference in New Issue
Block a user