-
Couldn't load subscription status.
- Fork 2
feat: toml config #29
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
Conversation
|
Nice, going to do some changes. (just in-case you have outstanding commits) |
|
dammit, with serde there's no way to generate toml with comments like this? |
|
Also i forgot to do |
|
Ohhh, i didn't see the dots, i thought they were underscores. |
… image.loading, add image.loading.gui, begin improving error handling
|
Alright I'm done with my commits. It's just that right now the Instead of crashing I would like it to send a toast to the user stating that the key bind is invalid but before we can do that I think we first need to create a separate struct for managing toasts so we just pass a reference of that to functions instead of passing |
|
One problem with this that I'm realizing now: If we release a new version of roseate that has some new toml fields, This isn't good, is there a way to get Obviously at the moment |
|
Idk try it, remove some toml key in your config.toml and see if you get an error. If you do then it's not working. |
|
Idk I tested it by adding a mistyped version of info box toggle: info_box.togle = "I"Maybe try that |
|
Yeah this won't work, the serde docs even say it only works on structs, so I'm guessing it works when the entire struct is missing but not a value in the struct which sucks. I think we should just use a get method at this point but if we still want nicely structured configs in the codebase figment looks a little promising. |
|
I know how i could fix it. I'll push that fix in an hour or two. |
|
So this should be fixed what you experienced. |
|
Yeah I knew this was a way to fix it but ughh it's ugly but ughh it works. They are planning to add support for something like I think I'm just gonna move these structs and functions into separate files under some |
|
I put all structs into a folder named models. |
|
@THEGOLDENPRO at this point you can make a new devlog. |
TODO: Explain what it does in the config.example.toml
|
I'm not sure about marginal allowance yet 🤔 I was thinking of humanizing that config more by hiding it behind something like this: [image.optimizations]
downsampling.mode = "strict"but I'm still thinking about the values these strings will correspond to... well I'm still thinking about EVERYTHING so I'm not sure yet. |
assets/config.template.toml
Outdated
| # recommended to set this to "false" as it will lead to the GUI freezing each time you try to zoom in/out. | ||
| dynamic.lazy_loading = true | ||
|
|
||
| [ui_settings] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can shorten this down to just ui
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already done in my commit btw, I did a lot of refactoring so be ready for merge conflicts if you changed anything 💀
…le and improve `ui.viewport.padding`
update with upstream
|
@THEGOLDENPRO when new dev log dropping |
No description provided.