Skip to content

Conversation

@taburineagle
Copy link
Owner

Adding the global preferences tab, along with options to set:

  • Whether NeewerLite-Python checks for new lights on launch
  • Whether new detected lights automatically try to link
  • Whether to print debug messages to the console or not (useful to do so, but you can turn it off...)
  • Whether or not to remember the last used parameters for each light (mode, hue, brightness, etc.)
  • Number of retries before the program throws an error
  • Allowable IPs to use with the HTTP server daemon
  • Custom keyboard shortcuts for every button and slider in the main program

Preferences are saved to a file called NeewerLite-Python.prefs in the main directory

Global preferences GUI elements created, need to write the saving procedure.  NOT READY FOR PRIMETIME YET, WORK IN PROGRESS.
Wrote the saving mechanism and connected everything - all looks good, but want to run it through its paces!
Cleaned up a few stragglers, more testing on Windows.  Looks good, going to test on MacOS now.
Don't save preferences file if there are no new preferences to save!
Resize all elements in global prefs to fill the space in the scrollbar horizontally.  Also, added new version number.
- Made custom widget to "cancel" a keyboard shortcut registration (clicking on it resets it back to the "default" value)
- A little bit more testing/cleaning up (set the shortcut keys to the "new" prefs values regardless, and *then* check them against the defaults - this way, if a button is reset to its default, the shortcut assignment gets correctly reassigned in the main program)
Changed the reset button from a button to a label, and changed some display parameters for that label.
Tested NLP on Linux (Ubuntu) and some text elements got cut off - so tweaked their geometry to size more properly on those systems.  All looks good now.
@taburineagle taburineagle merged commit 62a4bc0 into main Jan 9, 2022
@taburineagle taburineagle deleted the WIP-Global-Preferences-GUI branch January 9, 2022 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants