1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-02 16:41:04 +03:00

Reset geometry and UI scale with --reset-ui

This commit is contained in:
A_D 2022-01-20 15:20:01 +02:00
parent f2e38afc39
commit cd81f65ed7
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -1867,7 +1867,11 @@ sys.path: {sys.path}'''
config.set('ui_transparency', 100) # 100 is completely opaque
config.delete('font')
config.delete('font_size')
logger.info('reset theme, font, font size, and transparency to default.')
config.set('ui_scale', 100) # 100% is the default here
config.delete('geometry') # unset is recreated by other code
logger.info('reset theme, transparency, font, font size, ui scale, and ui geometry to default.')
# We prefer a UTF-8 encoding gets set, but older Windows versions have
# issues with this. From Windows 10 1903 onwards we can rely on the