This commit is contained in:
DavidXanatos 2022-07-09 23:40:16 +02:00
parent 75dc0edd6d
commit 225da37c04
2 changed files with 12 additions and 9 deletions

View File

@ -773,14 +773,17 @@ void CSandMan::closeEvent(QCloseEvent *e)
QIcon CSandMan::GetBoxIcon(int boxType, bool inUse)// , int iBusy)
{
EBoxColors color = eYellow;
switch (boxType) {
case CSandBoxPlus::eHardenedPlus: color = eRed; break;
case CSandBoxPlus::eHardened: color = eOrang; break;
case CSandBoxPlus::eDefaultPlus: color = eBlue; break;
case CSandBoxPlus::eDefault: color = eYellow; break;
case CSandBoxPlus::eAppBoxPlus: color = eCyan; break;
case CSandBoxPlus::eAppBox: color = eGreen; break;
case CSandBoxPlus::eInsecure: color = eMagenta; break;
int iViewMode = theConf->GetInt("Options/ViewMode", 1);
if (iViewMode != 2) {
switch (boxType) {
case CSandBoxPlus::eHardenedPlus: color = eRed; break;
case CSandBoxPlus::eHardened: color = eOrang; break;
case CSandBoxPlus::eDefaultPlus: color = eBlue; break;
case CSandBoxPlus::eDefault: color = eYellow; break;
case CSandBoxPlus::eAppBoxPlus: color = eCyan; break;
case CSandBoxPlus::eAppBox: color = eGreen; break;
case CSandBoxPlus::eInsecure: color = eMagenta; break;
}
}
//if (inBusy)
// return m_BoxIcons[color].Busy;

View File

@ -81,6 +81,6 @@ TRANSLATIONS += sandman_de.ts \
sandman_uk.ts \
sandman_zh_CN.ts \
sandman_zh_TW.ts
RESOURCES += Resources/SandMan.qrc