mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Enable framelessness on Linux
This commit is contained in:
parent
bdb307fba9
commit
9b0c91b842
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ class Journal(QWidget):
|
|||
self.close_label = QLabel(self)
|
||||
self.close_label.setPixmap(QPixmap(os.path.join(base_path, 'images', 'close.png')))
|
||||
|
||||
self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)
|
||||
if "linux" in sys.platform: self.setWindowFlags(Qt.FramelessWindowHint)
|
||||
else: self.setWindowFlags(self.WindowFlags() | Qt.FramelessWindowHint)
|
||||
self.setAttribute(Qt.WA_TranslucentBackground)
|
||||
self.setMouseTracking(True)
|
||||
self.setWindowTitle(' ')
|
||||
|
|
|
|||
Loading…
Reference in a new issue