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

Control Center: Add missing Options, and Fix some #1347

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Iamanaws
Copy link

No description provided.

- 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.
@Iamanaws
Copy link
Author

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

Copy link
Contributor

@bew bew left a 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,
}


Show a Focus control in menu bar. Default is null.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(for all options)
I think we should keep the Show a Focus control in menu bar line in the description (or something similar), just having the path to the option in settings doesn't give much information..
It's still not very informative though since it's not clear what a 'focus control' is, but it's better than nothing 🤔

Comment on lines +129 to +130
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
true = Show in Menu Bar (18)
false = Don't Show in Menu Bar (24)

Although, for a simple bool I'm not sure it's very useful to describe the option like this 👀 The description is enough for me.

Show a battery energy mode. Default is null.

false - "When Active"
true - "Always"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe don't use a boolean for this? an enum whenActive / always would be clearer.
OR rename the option like ...AlwaysShowBatteryEnergyMode so the boolean makes sense 🤔

Comment on lines +62 to +63
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
true = Show in Menu Bar
false = Don't Show in Menu Bar

Or remove this section of the description?

Comment on lines +391 to +392
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
18 = Show in Menu Bar
24 = Don't Show in Menu Bar
true = Show in Menu Bar (18)
false = Don't Show in Menu Bar (24)

Comment on lines +13 to +14
false - "Don't Show in Menu Bar"
true - "Show in Menu Bar"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
false - "Don't Show in Menu Bar"
true - "Show in Menu Bar"
false - Don't Show in Menu Bar
true - Show in Menu Bar

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