forked from qt-creator/qt-creator
ExtensionManager: Color the status checkmark for loaded plugins green
Fixes: QTCREATORBUG-31750 Change-Id: I806b71689f518a299366c3a65de0306078f89906 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -293,9 +293,12 @@ public:
|
||||
painter->drawText(effectiveR, itemNameTF.drawTextFlags, titleElided);
|
||||
}
|
||||
if (showState) {
|
||||
static const QIcon checkmark = Icon({{":/extensionmanager/images/checkmark.png",
|
||||
stateTF.themeColor}}, Icon::Tint).icon();
|
||||
checkmark.paint(painter, checkmarkR);
|
||||
const FilePath checkmarkMask = ":/extensionmanager/images/checkmark.png";
|
||||
static const QIcon enabled = Icon({{checkmarkMask, Theme::Token_Accent_Muted}},
|
||||
Icon::Tint).icon();
|
||||
static const QIcon disabled = Icon({{checkmarkMask, stateTF.themeColor}},
|
||||
Icon::Tint).icon();
|
||||
(state == InstalledEnabled ? enabled : disabled).paint(painter, checkmarkR);
|
||||
painter->setPen(stateTF.color());
|
||||
painter->setFont(stateTF.font());
|
||||
painter->drawText(stateR, stateTF.drawTextFlags, stateString);
|
||||
|
Reference in New Issue
Block a user