mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-11 03:47:18 +02:00
fix(ui): make Undo and AMusic Save buttons readable (#6249)
This commit is contained in:
parent
3a31f702b5
commit
e03ce87177
3 changed files with 42 additions and 5 deletions
|
|
@ -1,11 +1,26 @@
|
|||
import React from 'react'
|
||||
import { Notification as RANotification } from 'react-admin'
|
||||
import { makeStyles } from '@material-ui/core/styles'
|
||||
|
||||
const Notification = (props) => (
|
||||
<RANotification
|
||||
{...props}
|
||||
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
|
||||
/>
|
||||
// RA's primary.light Undo is unreadable on the light snackbar of dark themes
|
||||
const useStyles = makeStyles(
|
||||
{
|
||||
undo: {
|
||||
color: 'inherit',
|
||||
},
|
||||
},
|
||||
{ name: 'NDNotification' },
|
||||
)
|
||||
|
||||
const Notification = (props) => {
|
||||
const classes = useStyles()
|
||||
return (
|
||||
<RANotification
|
||||
{...props}
|
||||
classes={{ undo: classes.undo }}
|
||||
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Notification
|
||||
|
|
|
|||
|
|
@ -79,6 +79,16 @@ export default {
|
|||
color: '#eee',
|
||||
backgroundColor: '#ff4e6b',
|
||||
},
|
||||
containedPrimary: {
|
||||
color: '#fff',
|
||||
backgroundColor: '#D60017',
|
||||
'&:hover': {
|
||||
backgroundColor: '#a30011',
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: '#D60017',
|
||||
},
|
||||
},
|
||||
},
|
||||
textSizeSmall: {
|
||||
fontSize: '0.8rem',
|
||||
paddingRight: '0.5rem',
|
||||
|
|
@ -192,6 +202,11 @@ export default {
|
|||
paddingBottom: '1rem',
|
||||
},
|
||||
},
|
||||
NDNotification: {
|
||||
undo: {
|
||||
color: '#fff',
|
||||
},
|
||||
},
|
||||
RaConfirm: {
|
||||
confirmPrimary: {
|
||||
color: '#fff',
|
||||
|
|
|
|||
|
|
@ -86,6 +86,13 @@ export default {
|
|||
},
|
||||
},
|
||||
},
|
||||
NDNotification: {
|
||||
undo: {
|
||||
'& .MuiButton-label': {
|
||||
color: 'inherit',
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiChip: {
|
||||
root: {
|
||||
backgroundColor: nukeCol['accent'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue