Dim disabled items in context menus (#4423)

This commit is contained in:
nerix
2023-04-29 18:50:13 +02:00
committed by GitHub
parent caaa0d91f6
commit 642718474c
7 changed files with 40 additions and 11 deletions
+8
View File
@@ -212,6 +212,14 @@ void Theme::parseFrom(const QJsonObject &root)
(this->isLightTheme() ? "#68B1FF"
: this->tabs.selected.backgrounds.regular.name());
this->window.contextMenuStyleSheet =
QStringLiteral("QMenu { background: %1; border: %2; color: %3; "
"selection-background-color: %2; } "
"QMenu::item:disabled { color: #8c7f7f; }")
.arg(splits.input.background.name(QColor::HexArgb),
tabs.selected.backgrounds.regular.name(QColor::HexArgb),
tabs.selected.text.name(QColor::HexArgb));
// Usercard buttons
if (this->isLightTheme())
{