Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per default use system font size #517

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cnapy/appdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from optlang.symbolics import Zero
from optlang_enumerator.cobra_cnapy import CNApyModel
from qtpy.QtCore import Qt, Signal, QObject
from qtpy.QtGui import QColor
from qtpy.QtGui import QColor, QFont
from qtpy.QtWidgets import QMessageBox

# from straindesign.parse_constr import linexprdict2str # indirectly leads to a JVM restart exception?!?
Expand All @@ -41,8 +41,10 @@ def __init__(self):
self.scen_color_good = QColor(130, 190, 0)
self.scen_color_warn = QColor(255, 200, 0)
self.scen_color_bad = Qt.red

self.font_size = 9

font = QFont()
font.setFamily(font.defaultFamily())
self.font_size = font.pointSize()
self.box_width = 80
self.box_height = 40
self.comp_color = QColor(0, 170, 255)
Expand Down
Loading