Improve fonts settings on windows

Hardcode a size in the UI. This is not optimal buf for the moment I
can't do better.

Also, use yet another font for the delete buttons.
master
Salvo 'LtWorf' Tomaselli 2015-06-06 18:51:29 +07:00
parent 0237b6222c
commit 32c6395d40
1 changed files with 10 additions and 4 deletions

@ -106,10 +106,16 @@ if __name__ == "__main__":
ui.setupUi(form)
if sys.platform.startswith('win'):
winFont = 'Cambria'
ui.lstHistory.setFont(QtGui.QFont(winFont))
ui.txtMultiQuery.setFont(QtGui.QFont(winFont))
ui.txtQuery.setFont(QtGui.QFont(winFont))
ui.groupOperators.setFont(QtGui.QFont(winFont))
size = 12
increment = 4
symbolFont = 'Segoe UI Symbol'
form.setFont(QtGui.QFont('Dejavu Sans',size))
ui.lstHistory.setFont(QtGui.QFont(winFont,size+increment))
ui.txtMultiQuery.setFont(QtGui.QFont(winFont,size+increment))
ui.txtQuery.setFont(QtGui.QFont(winFont,size+increment))
ui.groupOperators.setFont(QtGui.QFont(winFont,size+increment))
ui.cmdClearMultilineQuery.setFont(QtGui.QFont(symbolFont))
ui.cmdClearQuery.setFont(QtGui.QFont(symbolFont))
form.restore_settings()