Repository navigation
[Repo Assist] Persist brightness, color temperature, and on/off state across restarts - #36
Closed
shanselman wants to merge 1 commit into
Closed
shanselman wants to merge 1 commit into
shanselman wants to merge 1 commit into
Conversation
Previously, only ExcludeFromCapture was saved to settings.json. Brightness, color temperature, and on/off state reset to defaults on every app restart. Changes: - AppSettings: add IsLightOn, Brightness, and ColorTemperature properties - MainWindow: read persisted values after loading settings in constructor - MainWindow: save settings after every brightness, color temp, or toggle change - Window_Loaded: apply persisted opacity, color temperature, and visibility No breaking changes - existing settings.json files gain the new fields with their default values (IsLightOn=true, Brightness=1.0, ColorTemperature=0.5). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 tasks
garrettcampbell3
approved these changes
Jun 18, 2026
garrettcampbell3
left a comment
There was a problem hiding this comment.
This is great! I'm hoping to make contributions to add a full settings view, and this would be beneficial
Owner
Author
|
Thanks for this. I took the intent, but I'm closing this PR in favor of a maintainer-side implementation that includes the extra hardening found during review. What landed locally in commit
Closing this PR as superseded rather than merging the generated patch as-is. |
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Previously, only ExcludeFromCapture was saved to settings.json. Brightness, color temperature, and on/off state reset to defaults on every app restart.
Changes:
No breaking changes - existing settings.json files gain the new fields with their default values (IsLightOn=true, Brightness=1.0, ColorTemperature=0.5).