added ModernDialog and ModernMessageBox
ModernDialog is used just like a QDialog.
d = ModernDialog(hideWindowButtons=True)
d.setWindowTitle('Changelog')
main_layout = QVBoxLayout()
main_layout.setSpacing(10)
text = QTextEdit()
text.setPlainText('This is a text\nto demonstrate\na ModernDialog')
text.setReadOnly(True)
text.setFixedHeight(100)
main_layout.addWidget(text, alignment=Qt.AlignCenter)
button_box = QDialogButtonBox()
button_box.setOrientation(Qt.Horizontal)
button_box.setStandardButtons(QDialogButtonBox.Ok)
button_box.setCenterButtons(True)
button_box.accepted.connect(d.accept)
main_layout.addWidget(button_box, alignment=Qt.AlignCenter)
d.windowContent.setLayout(main_layout)
d.exec()

ModernMessageBox is used just like a QMessageBox Simple example below
box = ModernMessageBox()
box.setIcon(QMessageBox.Question)
box.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
box.setEscapeButton(QMessageBox.No)
box.setText("There is a new version available.\nWould you like to update now?")
if box.exec_() == QMessageBox.Yes:
box.hide()
print('yes')
else:
print('no')
box.hide()

should be done
however the merging of all the changes from the other pull request of hiding window buttons was detected horribly by git, which made this a mess...
i could redo this pull request if you want
should be done
however the merging of all the changes from the other pull request of hiding window buttons was detected horribly by git, which made this a mess...
i could redo this pull request if you want
I do Squash and Merge while incorperating "single fixes" that can be understood without all git history. Though in this case the changed files looks a bit odd so please create a new PR with the changes. :)
okay i have redone this starting with the current origin/master. Force pushed over this branch, so we are back to a single commit
Is this project still active? I'd really love to have these features and would implement them myself, but it would take some work to understand the code as the documentation is somewhat scarce.