feat(electron): audio capture permissions and settings (#11185)

fix AF-2420, AF-2391, AF-2265
This commit is contained in:
pengx17
2025-03-28 09:12:25 +00:00
parent 8c582122a8
commit 6c125d9a38
59 changed files with 2661 additions and 1699 deletions
@@ -29,6 +29,10 @@ export const wrapper = style({
},
},
});
export const wrapperDisabled = style({
opacity: 0.5,
pointerEvents: 'none',
});
globalStyle(`${wrapper} .title`, {
fontSize: cssVar('fontSm'),
fontWeight: 600,
@@ -1,17 +1,20 @@
import clsx from 'clsx';
import type { PropsWithChildren, ReactNode } from 'react';
import { wrapper } from './share.css';
import { wrapper, wrapperDisabled } from './share.css';
interface SettingWrapperProps {
title?: ReactNode;
disabled?: boolean;
}
export const SettingWrapper = ({
title,
children,
disabled,
}: PropsWithChildren<SettingWrapperProps>) => {
return (
<div className={wrapper}>
<div className={clsx(wrapper, disabled && wrapperDisabled)}>
{title ? <div className="title">{title}</div> : null}
{children}
</div>