-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Control Center: Add missing Options, and Fix some #1347
base: master
Are you sure you want to change the base?
Conversation
I just have doubt about the options that change their type, I know there are ways, but here I'm not sure how to add a warning or heads up, to indicate the allowed values had changed |
bf0b436
to
2362651
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments on the options ;)
For the type change, we could have backward compatibility with warning by adding true
& false
in the mkXXXXApply
mapping functions like:
mkEnumApply {
always = 21,
hide = 42,
true = lib.warn ''something something use "always" now'' 21,
false = lib.warn ''something something use `"hide"` now'' 42,
}
969cca6
to
f88f0a1
Compare
Thanks for the changes, looks nice! While looking at the test file I noticed something that might be improved: system.defaults.controlcenter.Sound = "always";
system.defaults.controlcenter.StageManager = true;
system.defaults.controlcenter.UserSwitcher = "menuBar";
system.defaults.controlcenter.WiFi = true; Those lines show how inconsistent the values are for seemingly similar options: some are |
- Added new options for AccessibilityShortcuts, Battery (enum mode), Hearing, KeyboardBrightness, MusicRecognition, and updated UserSwitcher. - Updated existing options (Display, FocusModes, NowPlaying, ScreenMirroring, Sound) to use enum types with refined mapping values.
I updated the test file to use the same values for options that share the same type. Is that what you meant?
I leave as bool the ones that are more simple, but I could change them to reflect better the options. I grouped similar stuff and leave just 3 different patterns. |
No description provided.