- modified the FCMessageBox to have a border and a single color inside the box

This commit is contained in:
Marius Stanciu
2022-01-13 16:42:59 +02:00
committed by Marius
parent 1d1613d2d6
commit dc636369a6
4 changed files with 16 additions and 3 deletions

View File

@@ -5428,7 +5428,14 @@ class FCMessageBox(QtWidgets.QMessageBox):
super(FCMessageBox, self).__init__(*args, **kwargs)
self.offset = None
self.moving = None
self.setWindowFlags(Qt.WindowType.FramelessWindowHint)
self.setWindowFlags(self.windowFlags() | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowSystemMenuHint)
self.setStyleSheet(
"QDialog { "
"border: 1px solid palette(shadow); "
"background-color: palette(base); "
"}"
)
def mousePressEvent(self, event):
if event.button() == Qt.MouseButton.LeftButton: