Skip to content
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

SettingWakeUp: use Checkboxlist.h #2123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NeroBurner
Copy link
Contributor

@NeroBurner NeroBurner commented Sep 17, 2024

Update CheckboxList.h to optionally be able to get checkboxes (instead of the default of radio-buttons) and be able to have multi-selection through a new callback.

Use these updated capabilities of CheckboxList.h to replace the nearly identical code of SettingWakeUp.h

One noticable change is that previously all 5 wake-up-settings were on the same page. But with this PR and the default value of 4 settings per screen on CheckboxList.h we have two pages

Before:

InfiniSim_2024-09-18_203919_wakeup_main

Now:
InfiniSim_2024-09-18_203600_wakeup_checkboxlist1 InfiniSim_2024-09-18_203610_wakeup_checkboxlist2

@NeroBurner NeroBurner added the maintenance Background work label Sep 17, 2024
@NeroBurner NeroBurner marked this pull request as draft September 17, 2024 21:56
Copy link

Build size and comparison to main:

Section Size Difference
text 374712B 528B
data 948B 0B
bss 63480B 0B

Update `CheckboxList.h` to optionally be able to get checkboxes (instead
of the default of radio-buttons) and be able to have multi-selection
through a new callback.

Use these updated capabilities of `CheckboxList.h` to replace the nearly
identical code of `SettingWakeUp.h`

One noticable change is that previously all 5 wake-up-settings were on the
same page. But with this PR and the default value of 4 settings per screen
on `CheckboxList.h` we have two pages.
@NeroBurner NeroBurner marked this pull request as ready for review September 18, 2024 18:44
@NeroBurner NeroBurner requested a review from a team September 18, 2024 18:45
@NeroBurner NeroBurner added this to the 1.16.0 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Background work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant