-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Default options #2948
base: main
Are you sure you want to change the base?
Default options #2948
Conversation
One file is |
892c0b6
to
7f10e8d
Compare
7f10e8d
to
b8a7fbe
Compare
edf002b
to
44ffbd8
Compare
* Default Options for Glows are missing * Options dialog needs a lot of work * Default Options need to be applied to * templates * imports
44ffbd8
to
635b778
Compare
So, I've rebased this on top of current main and checked that some basic things work. I'm a bit suprised how much actually worked. The biggest missing thing is templates, where the introduction of defaults break the old way region defaults are mixed into templates. And the UI. E.g. the new UI clips the settings frame. And it's quite ugly. I guess it would much better if there was a bit of identation, but there's also a lot of options Anyway a quick overview of the code: This is a source of complexity, in this PR that is kept, thus: b) There are user defaults settings that allow overriding these: So there's subtext_pb_font for overriding the font for progress bars, and subtext_icon_font for overriding the font on icons c) How these override settings (that is subtext_pb_font) should be applied to the base defaults to get the effective defaults is the mapping Each mapping has a name, that is the top-level key, a base, and a map that e.g. maps global settings paths to keys in the defaults table. So the values in the map, are the keys of the default table that are potentially overriden. That's the core idea, some more random things: The effective defaults tables are kept in a cache, the "defaults cache", which takes care of not recreating the defaults all the time. There are a bunch of TODOs in the code that indicate areas where I though more work was needed. |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist