mirror of
https://github.com/ciromattia/kcc
synced 2025-12-22 06:01:49 +00:00
GUI: Font size fix
This commit is contained in:
@@ -572,10 +572,9 @@ class Ui_KCC(object):
|
|||||||
label = QtGui.QLabel(message)
|
label = QtGui.QLabel(message)
|
||||||
label.setStyleSheet('background-image:url('');background-color:rgba(255,0,0,0.5);')
|
label.setStyleSheet('background-image:url('');background-color:rgba(255,0,0,0.5);')
|
||||||
label.setOpenExternalLinks(True)
|
label.setOpenExternalLinks(True)
|
||||||
if sys.platform == 'darwin':
|
font = QtGui.QFont()
|
||||||
font = QtGui.QFont()
|
font.setPointSize(self.listFontSize)
|
||||||
font.setPointSize(11)
|
label.setFont(font)
|
||||||
label.setFont(font)
|
|
||||||
item.setTextColor(QtGui.QColor('transparent'))
|
item.setTextColor(QtGui.QColor('transparent'))
|
||||||
GUI.JobList.addItem(item)
|
GUI.JobList.addItem(item)
|
||||||
GUI.JobList.setItemWidget(item, label)
|
GUI.JobList.setItemWidget(item, label)
|
||||||
@@ -673,6 +672,12 @@ class Ui_KCC(object):
|
|||||||
self.conversionAlive = False
|
self.conversionAlive = False
|
||||||
self.needClean = True
|
self.needClean = True
|
||||||
self.GammaValue = 1.0
|
self.GammaValue = 1.0
|
||||||
|
if sys.platform.startswith('darwin'):
|
||||||
|
self.listFontSize = 11
|
||||||
|
elif sys.platform.startswith('linux'):
|
||||||
|
self.listFontSize = 8
|
||||||
|
else:
|
||||||
|
self.listFontSize = 9
|
||||||
|
|
||||||
self.addMessage('<b>Welcome!</b>', 'info')
|
self.addMessage('<b>Welcome!</b>', 'info')
|
||||||
self.addMessage('<b>Remember:</b> All options have additional informations in tooltips.', 'info')
|
self.addMessage('<b>Remember:</b> All options have additional informations in tooltips.', 'info')
|
||||||
|
|||||||
Reference in New Issue
Block a user