Made application fullscreen
This commit is contained in:
+5
-4
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user