Commit f903f1cb authored by Patrick Thomas's avatar Patrick Thomas Committed by Jameson Rollins
Browse files

Fixed export of background color. Added export of font size.

parent 35d84323
......@@ -224,13 +224,11 @@ DATA_EXPORT_FUNCTIONS = {
# TEMPLATE
def export_layout_yaml(plotdict, path, bg='b', window_title=None, window_size=None):
def export_layout_yaml(plotdict, path, bw=False, window_title=None, window_size=None, font_size=10):
template = {}
if bg == 'w':
template['black-on-white'] = True
else:
template['black-on-white'] = False
template['black-on-white'] = bw
template['time-window'] = window_size
template['font-size'] = font_size
plots = []
for plot, cells in plotdict.items():
plot_item = {}
......
......@@ -1253,9 +1253,10 @@ class NDScope(QMainWindow, Ui_MainWindow):
path,
)
kwargs = dict(
bg=pg.getConfigOption('background'),
bw=(self.backgroundCheckBox.checkState() == QtCore.Qt.Checked),
window_title=self.windowTitle().replace('ndscope: ', ''),
window_size=self.get_window()
window_size=self.get_window(),
font_size=self.font.pointSize(),
)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment