-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat: preferred stream settings #1060
base: main
Are you sure you want to change the base?
feat: preferred stream settings #1060
Conversation
please show a screenshot |
<div className="vcd-screen-picker-save-control"> | ||
<div | ||
className={`vcd-screen-picker-save-checkbox ${Settings.stream?.preferred && "checked"}`} | ||
onClick={() => { |
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.
this markup is very messy and not semantic (using a plain div as a checkbox is very bad. at the very least it should have aria attributes like role
that tell user agents that this is a checkbox for visually impaired people and other users of screenreaders). have a look at the rest of Vesktop (& Vencord) Settings UI and see how those implement things like Switches, Checkboxes. Vencord exports a bunch of Discord Components you can use instead of implementing stuff yourself
I see, that's fair yeah! Switch is likely not the right Component, but Discord also has a Checkbox component that should be exactly what you want Vencord doesn't export it for some reason, but you can manually find it via |
Save stream settings for reuse (resolution, FPS, content type). Audio source is excluded due to per-stream variability.