Made application fullscreen

This commit is contained in:
2026-10-10 00:24:58 -06:00
parent 774f596c09
commit 6e78b282a6
5 changed files with 484 additions and 123 deletions
+5 -4
View File
@@ -72,13 +72,10 @@ def run():
app.setStyleSheet(style)
geometry = app.screens()[0].size()
clipboard = app.clipboard()
widget = MainWidget(clipboard)
widget.setWindowOpacity(window_config['opacity'])
widget.resize(WIDTH, HEIGHT)
widget.move(0, geometry.height() - HEIGHT - 280)
widget.setWindowTitle('Albion Online Stats')
widget.setWindowIcon(QtGui.QIcon(path('albion-stats-icon.png')))
@@ -88,7 +85,11 @@ def run():
if window_config['frameless']:
widget.setWindowFlag(Qt.FramelessWindowHint)
widget.show()
if window_config.get('fullscreen', True):
widget.showFullScreen()
else:
widget.resize(WIDTH, HEIGHT)
widget.show()
current_version, latest_version = (
get_current_version(), get_latest_version())