The used icon in the “Wallet to be encrypted” is rather one used for “errors”:
Ideally there is a non-red icon so people aren’t thinking something went wrong.
The used icon in the “Wallet to be encrypted” is rather one used for “errors”:
Ideally there is a non-red icon so people aren’t thinking something went wrong.
Hmm, I’ve got a yellow triangle:
… and the QMessageBox::warning
is used: https://github.com/bitcoin-core/gui/blob/49984b44cfcd3fd0cef16c8ce97197973afc3c04/src/qt/askpassphrasedialog.cpp#L130-L133
The red circle is the default icon for QMessageBox::critical, which would make this an interesting quirk. Also, it’s entirely possible that what is shown is a QMessageBox::warning with the wrong icon being passed because of your systems GTK cache files. Certain GTK themes can influence what icon actually comes up as Qt >5.7 implemented a feature that uses the system’s GTK cache files to load some icons. For example, I can get this white error symbol to come up:
To stay consistent, we could just provide our own custom icon via:
QMessageBoxName.setIcon(QMessageBox::setIconPixmap(arg))