Configuration Joyride 🎉 #34
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎉 Configuration Joyride: Options Folder & ConfigLoader Class 🎉
New Neighborhood: Created a snazzy
optionsfolder that now houses our shiny new.configfile! This willbe the cozy home for all your frontend app settings.
Meet ConfigLoader - Your Configuration Concierge: Developed a Java class (
ConfigLoader) with some fancyfeatures:
lifecycle. Think of it as your VIP pass!
Bonus Insights:
private final int appTheme;ready to go! (It can be upgraded to an ENUM later for even morepizzazz.)
validation against our local backend. It might not be Fort Knox-level security, but it'll definitely add a smile
to potential customers' faces! 😄
Important Note: Changes made at runtime will only take effect after the frontend restarts for security
settings. For example, if you switch the theme (from the settings menu): use the regular method (setLookAndFeel) for making the theme update live and then update the config file, so new theme will be remembered on restart. All the values from the config files are set at start as constant values.
optionsfolder with a.configfile to store frontend app settings.ConfigLoader) that:App Values
frontend.theme ## Values from 1-4 -- number 4 looks great :)
frontend.splashscreen ## true or false