- added new settings in Edit -> Preferences -> General for Notebook Font size (set font size for the items in Project Tree and for text in Selected Tab) and for canvas Axis font size. The values are stored in QSettings.
- updated translations
This commit is contained in:
@@ -15,7 +15,7 @@ from FlatCAMObj import *
|
||||
import inspect # TODO: Remove
|
||||
import FlatCAMApp
|
||||
from PyQt5 import QtGui, QtCore, QtWidgets
|
||||
from PyQt5.QtCore import Qt
|
||||
from PyQt5.QtCore import Qt, QSettings
|
||||
# import webbrowser
|
||||
|
||||
import gettext
|
||||
@@ -256,8 +256,14 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
# self.view.setAcceptDrops(True)
|
||||
# self.view.setDropIndicatorShown(True)
|
||||
|
||||
settings = QSettings("Open Source", "FlatCAM")
|
||||
if settings.contains("notebook_font_size"):
|
||||
fsize = settings.value('notebook_font_size', type=int)
|
||||
else:
|
||||
fsize = 12
|
||||
|
||||
font = QtGui.QFont()
|
||||
font.setPixelSize(12)
|
||||
font.setPixelSize(fsize)
|
||||
font.setFamily("Seagoe UI")
|
||||
self.view.setFont(font)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user