1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix direct reference to mui theme

This commit is contained in:
Bill Thornton 2024-05-08 11:04:02 -04:00
parent 9b635ca497
commit 2c0efd51c8
2 changed files with 13 additions and 7 deletions

View file

@ -5,7 +5,6 @@ import React, { useCallback } from 'react';
import Page from 'components/Page';
import globalize from 'scripts/globalize';
import theme from 'themes/theme';
import { DisplayPreferences } from './DisplayPreferences';
import { ItemDetailPreferences } from './ItemDetailPreferences';
import { LibraryPreferences } from './LibraryPreferences';
@ -80,11 +79,7 @@ export default function UserDisplayPreferences() {
<Button
type='submit'
sx={{
color: theme.palette.text.primary,
fontSize: theme.typography.htmlFontSize,
fontWeight: theme.typography.fontWeightBold
}}
size='large'
>
{globalize.translate('Save')}
</Button>

View file

@ -55,7 +55,18 @@ const theme = createTheme({
MuiButton: {
defaultProps: {
variant: 'contained'
},
variants: [
{
props: {
size: 'large'
},
style: {
fontSize: '1rem',
fontWeight: 'bold'
}
}
]
},
MuiFormControl: {
defaultProps: {