Control Center: Add missing Options, and Fix some#1347
Control Center: Add missing Options, and Fix some#1347iamanaws wants to merge 1 commit intonix-darwin:masterfrom
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
bew
left a comment
There was a problem hiding this comment.
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 |
d7f1d82 to
75bdba8
Compare
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. |
22f4fa6 to
4a0a391
Compare
4a0a391 to
560bad1
Compare
9b684b2 to
534fcd1
Compare
ba719c0 to
1cfdf97
Compare
|
It's been a few months, but I cleaned it up! |
8d9a9ff to
0342219
Compare
- Replace boolean options with descriptive string enums ("show"/"hide",
"whenActive"/"always"/"hide", "both"/"menuBar"/"controlCenter"/"hide")
- Add AccessibilityShortcuts, Battery, BatteryShowEnergyMode, Hearing,
KeyboardBrightness, MusicRecognition, ScreenMirroring, StageManager,
UserSwitcher, WiFi options
- Deprecate boolean values with backward-compatible warnings
- Add system.defaults.Spotlight.MenuItemHidden option
0342219 to
dad152b
Compare
No description provided.