mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Merge pull request #203 from MiWCryptAnalytics/patch-1
Add UI Scaling for HiDPi Support
This commit is contained in:
commit
abff18e201
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt5 import QtWidgets, QtGui
|
||||
from PyQt5 import QtWidgets, QtGui, QtCore
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
@ -32,8 +32,10 @@ if __name__ == '__main__':
|
|||
parser.add_argument("--config", dest="config", default="~/.opensnitch/ui-config.json", help="Path of the UI json configuration file.", metavar="FILE")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||
|
||||
service = UIService(app, on_exit, args.config)
|
||||
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))
|
||||
|
|
Loading…
Add table
Reference in a new issue