-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
🚧 [Mouse Jump] Customisable appearance - borders, margins, colours, etc #29292
🚧 [Mouse Jump] Customisable appearance - borders, margins, colours, etc #29292
Conversation
@jaimecbernardo - just started looking at this again. I've got a question.. is there a pre-existing pattern for upgrading the format of config files? The existing config for Mouse Jump looks like this:
but I'm copy over a raft of additional style settings from FancyMouse to allow customising the borders, colours and layout:
I guess the ideal scenario is that it migrates the existing "thumbnail_size" settings to the new location if they already exist in the settings.json, but I'm not sure what the best way is to go about doing that. Do you know if any modules do this already that I could copy? I've got a way of doing it in FancyMouse (see https://github.com/mikeclayton/FancyMouse/tree/main/src/FancyMouse/Models/Settings) which basically keeps a domain model of each config format and maps it to the latest internal representation when the settings.json loads - I can mirror that, but if there's already a way to do it I'll keep to the same pattern... |
Hi @mikeclayton , search the code for "UpgradeSettingsConfiguration". Some of the modules implement it already, like FindMyMouse, Mouse Highlighter and Mouse Without Borders. |
Thanks for working on this 😉 |
This comment has been minimized.
This comment has been minimized.
Any updates? When does this get ready. |
@htcfreek - sorry about the extended radio silence on this PR - I kind of got bogged down in trying to work out how to handle the config upgrade and probably tyring to be too clever with applying defaults to partially missing values in the nested json. It all ground to a bit of a halt and I've not had a chance to pick it up again since. Happy if you want to close this PR for the time being as I'm not sure when I'll be able to work on it next... |
I'm going to close this PR as I've hit a bit of a dead-end with it - I'll raise a new one with a different approach... |
Summary of the Pull Request
Adds some settings to control the display style of the popup preview form - see #27511
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed