fix: button color

This commit is contained in:
GyDi 2022-08-08 23:15:05 +08:00
parent 57aef1d3c2
commit 929c840006
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084

View File

@ -44,6 +44,7 @@ const WebUIItem = (props: Props) => {
<IconButton <IconButton
size="small" size="small"
title="Save" title="Save"
color="inherit"
onClick={() => { onClick={() => {
onChange(editValue); onChange(editValue);
setEditing(false); setEditing(false);
@ -54,6 +55,7 @@ const WebUIItem = (props: Props) => {
<IconButton <IconButton
size="small" size="small"
title="Cancel" title="Cancel"
color="inherit"
onClick={() => { onClick={() => {
onCancel?.(); onCancel?.();
setEditing(false); setEditing(false);
@ -82,6 +84,7 @@ const WebUIItem = (props: Props) => {
<IconButton <IconButton
size="small" size="small"
title="Open URL" title="Open URL"
color="inherit"
onClick={() => onOpenUrl?.(value)} onClick={() => onOpenUrl?.(value)}
> >
<OpenInNewRounded fontSize="inherit" /> <OpenInNewRounded fontSize="inherit" />
@ -89,6 +92,7 @@ const WebUIItem = (props: Props) => {
<IconButton <IconButton
size="small" size="small"
title="Edit" title="Edit"
color="inherit"
onClick={() => { onClick={() => {
setEditing(true); setEditing(true);
setEditValue(value); setEditValue(value);
@ -96,7 +100,12 @@ const WebUIItem = (props: Props) => {
> >
<EditRounded fontSize="inherit" /> <EditRounded fontSize="inherit" />
</IconButton> </IconButton>
<IconButton size="small" title="Delete" onClick={onDelete}> <IconButton
size="small"
title="Delete"
color="inherit"
onClick={onDelete}
>
<DeleteRounded fontSize="inherit" /> <DeleteRounded fontSize="inherit" />
</IconButton> </IconButton>
</Stack> </Stack>