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

[feature] add settings UI builder #6

Open
raisjn opened this issue Aug 30, 2020 · 5 comments
Open

[feature] add settings UI builder #6

raisjn opened this issue Aug 30, 2020 · 5 comments
Labels
feature New feature or request

Comments

@raisjn
Copy link
Member

raisjn commented Aug 30, 2020

It should be easy for an app to save settings to disk and configure them from the UI. The UI configuration might be accomplished via simple widgets, while saving to disk can be in any form, as long as its robust

@raisjn raisjn added the feature New feature or request label Oct 10, 2020
@adbl
Copy link
Contributor

adbl commented Jul 6, 2021

Has reading/writing settings gotten any further yet?

I have some ideas for iago I'd like to try implementing, snapping is my first candidate. So I'd add some menu/gui for the setting, as you wrote @raisjn. But I'm not sure what is an approprate way/place to store it?

@raisjn
Copy link
Member Author

raisjn commented Jul 8, 2021

there is a simple config parser that remux uses that can be used for reading config files. for settings UI, we have "toggled state" buttons that can reflect that config reasonably easily. i can try to put together a demo on the weekend for tying config to toggled button

@adbl
Copy link
Contributor

adbl commented Jul 8, 2021

Such demo would be grand!

I saw something about a slider example, so I would probably want to extend configuration to use that if possible.

I'm excited about hacking my remarkable but feel like 10 years away from cpp/linux, so it will be quite a lot to wrap my head around.

What about app state, if I wanted to, what would be a conventional way/place to store it?

@raisjn
Copy link
Member Author

raisjn commented Jul 10, 2021

it looks like you ramped up on cpp/cpy quickly!

for settings / state, are you looking for something that can save to disk or just how to make state for an instance of iago? there is naive code for reading from config file but no code for saving back to file. we also have app state code (see src/harmony/app/state.cpy and places that use STATE variable)

@adbl
Copy link
Contributor

adbl commented Jul 11, 2021

A config file like the one used by remux would work well I think, just that I need to write to it as well, I'll get there eventually. I'll have a look at the state code from Harmony but I don't think it needs to be very fancy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants