feat(settings): add chat color theme inverted toggle in settings modal (#10558)

This commit is contained in:
Hiroshi Fujita 2024-11-12 00:53:43 +09:00 committed by GitHub
parent 16db2c4e57
commit e63c0e3cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,6 +261,10 @@ const SettingsModal: FC<ISettingsModalProps> = ({
onChange={onChange('chatColorTheme')}
placeholder='E.g #A020F0'
/>
<div className="mt-1 flex justify-between items-center">
<p className={`ml-2 ${s.settingsTip} text-gray-500`}>{t(`${prefixSettings}.chatColorThemeInverted`)}</p>
<Switch defaultValue={inputInfo.chatColorThemeInverted} onChange={v => setInputInfo({ ...inputInfo, chatColorThemeInverted: v })}></Switch>
</div>
</>}
{systemFeatures.enable_web_sso_switch_component && <div className='w-full mt-8'>
<p className='system-xs-medium text-gray-500'>{t(`${prefixSettings}.sso.label`)}</p>