Chris suggested we have a user default font and colors, instead of tying it to the last loaded vap. It seems obvious now that it's said, that this would have a separate storage place. There will need to be a GUI that allows these to be set.
This needs to be done, and I'm going to knock it out now. Basically the user preferences for Options properties reset by a .vap load need to be stored in some persistent area. I'd suggest a new file ~/autoplot_data/config/preferences.properties.
The properties modified when a .vap is loaded are:
background
foreground
color
fillColor
canvasFont
useTimeRangeEditor
flipColorbarLabel
tickLen
lineThickness
scanEnabled
Last edit: Jeremy Faden 2019-06-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There's a listener in OptionsPrefsController.java which saves out the preferences whenever they change in the vap. I think if I make this an action which the scientist must actively invoke ("Save Options to File" button), I can get the behavior we want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This needs to be done.
This needs to be done, and I'm going to knock it out now. Basically the user preferences for Options properties reset by a .vap load need to be stored in some persistent area. I'd suggest a new file ~/autoplot_data/config/preferences.properties.
The properties modified when a .vap is loaded are:
Last edit: Jeremy Faden 2019-06-26
There's a listener in OptionsPrefsController.java which saves out the preferences whenever they change in the vap. I think if I make this an action which the scientist must actively invoke ("Save Options to File" button), I can get the behavior we want.