Skip to content

Commit 62f38b2

Browse files
committed
fix(PluginSettings): improve chip contrast and enable custom chip styles
1 parent 3281ac6 commit 62f38b2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

frontend/src/components/App/PluginSettings/PluginSettings.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,33 @@ export function PluginSettingsPure(props: PluginSettingsPureProps) {
268268
header: t('translation|Type'),
269269
accessorFn: (plugin: PluginInfo) => plugin.type || 'unknown',
270270
Cell: ({ row: { original: plugin } }: { row: MRT_Row<PluginInfo> }) => {
271-
const typeLabels: Record<string, { label: string; color: any }> = {
271+
const typeLabels: Record<string, { label: string; color: any; sx?: any }> = {
272272
development: {
273273
label: t('translation|Development'),
274274
color: 'primary',
275275
},
276276
user: {
277277
label: t('translation|User-installed'),
278278
color: 'info',
279+
sx: {
280+
backgroundColor: '#015493',
281+
color: '#ffffff',
282+
},
279283
},
280284
shipped: {
281285
label: t('translation|Shipped'),
282286
color: 'default',
283287
},
284288
};
285289
const typeInfo = typeLabels[plugin.type || 'shipped'];
286-
return <Chip label={typeInfo.label} size="small" color={typeInfo.color} />;
290+
return (
291+
<Chip
292+
label={typeInfo.label}
293+
size="small"
294+
color={typeInfo.color}
295+
sx={typeInfo.sx}
296+
/>
297+
);
287298
},
288299
},
289300
{

0 commit comments

Comments
 (0)