whitebophir icon indicating copy to clipboard operation
whitebophir copied to clipboard

Save user preferences

Open atomdmac opened this issue 2 years ago • 2 comments

Saves and restores various bits of application state:

  • Stroke size
  • Stroke opacity
  • Stroke color
  • Grid visibility and style
  • Selected tool

As part of this work, a reusable "Signals" facility has been added via createSignal. This allows multiple functions to subscribe to state changes.

By opening a pull request, I certify that I hold the intellectual property of the code I am submitting, and I am granting the initial authors of WBO a perpetual, worldwide, non-exclusive, royalty-free, and irrevocable license to this code.

atomdmac avatar Nov 20 '23 13:11 atomdmac

Hey, thanks for the PR! I'm not sure what the use case for this is, though; and I don't think I'd like the brush parameters to be saved. If you have two windows opened, they will be constantly fighting for control over the saved parameters.

lovasoa avatar Nov 20 '23 15:11 lovasoa

I actually found it frustrating that I'd lost my settings between refreshes. What if the settings were saved per boars instead of globally?

atomdmac avatar Nov 23 '23 12:11 atomdmac