Fix some colors switched to yellow by accident

This commit is contained in:
Nicolas Werner 2021-11-12 18:08:01 +01:00
parent f5c6232937
commit b0530089ab
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 2 deletions

View file

@ -22,10 +22,10 @@ Image {
case Crypto.TOFU:
return "image://colorimage/:/icons/icons/ui/lock.png?" + Nheko.colors.buttonText;
default:
return "image://colorimage/:/icons/icons/ui/lock.png?#d6c020";
return "image://colorimage/:/icons/icons/ui/lock.png?" + Nheko.theme.error;
}
} else {
return "image://colorimage/:/icons/icons/ui/unlock.png?#d6c020";
return "image://colorimage/:/icons/icons/ui/unlock.png?" + Nheko.theme.error;
}
}
ToolTip.visible: ma.hovered

View file

@ -62,6 +62,7 @@ class Theme : public QPalette
Q_PROPERTY(QColor alternateButton READ alternateButton CONSTANT)
Q_PROPERTY(QColor separator READ separator CONSTANT)
Q_PROPERTY(QColor red READ red CONSTANT)
Q_PROPERTY(QColor error READ error CONSTANT)
Q_PROPERTY(QColor orange READ orange CONSTANT)
public:
Theme() {}
@ -72,6 +73,7 @@ public:
QColor alternateButton() const { return alternateButton_; }
QColor separator() const { return separator_; }
QColor red() const { return red_; }
QColor error() const { return QColor(0xdd, 0x3d, 0x3d); }
QColor orange() const { return orange_; }
private: