mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-09 21:30:54 +00:00
change ActionIcons back to default
This commit is contained in:
@@ -18,7 +18,7 @@ export function ButtonMenu({
|
|||||||
return (
|
return (
|
||||||
<Menu shadow="xs">
|
<Menu shadow="xs">
|
||||||
<Menu.Target>
|
<Menu.Target>
|
||||||
<ActionIcon>
|
<ActionIcon variant="default">
|
||||||
<Tooltip label={tooltip}>{icon}</Tooltip>
|
<Tooltip label={tooltip}>{icon}</Tooltip>
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Menu.Target>
|
</Menu.Target>
|
||||||
|
@@ -14,7 +14,11 @@ export function EditButton({
|
|||||||
}) {
|
}) {
|
||||||
saveIcon = saveIcon || <IconDeviceFloppy />;
|
saveIcon = saveIcon || <IconDeviceFloppy />;
|
||||||
return (
|
return (
|
||||||
<ActionIcon onClick={() => setEditing()} disabled={disabled}>
|
<ActionIcon
|
||||||
|
onClick={() => setEditing()}
|
||||||
|
disabled={disabled}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
{editing ? saveIcon : <IconEdit />}
|
{editing ? saveIcon : <IconEdit />}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
);
|
);
|
||||||
|
@@ -16,6 +16,7 @@ export function ScanButton() {
|
|||||||
innerProps: {}
|
innerProps: {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconQrcode />
|
<IconQrcode />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -9,7 +9,11 @@ import { firstSpotlight } from '../nav/Layout';
|
|||||||
*/
|
*/
|
||||||
export function SpotlightButton() {
|
export function SpotlightButton() {
|
||||||
return (
|
return (
|
||||||
<ActionIcon onClick={() => firstSpotlight.open()} title={t`Open spotlight`}>
|
<ActionIcon
|
||||||
|
onClick={() => firstSpotlight.open()}
|
||||||
|
title={t`Open spotlight`}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
<IconCommand />
|
<IconCommand />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
);
|
);
|
||||||
|
@@ -325,7 +325,11 @@ function CopyField({ value }: { value: string }) {
|
|||||||
<CopyButton value={value}>
|
<CopyButton value={value}>
|
||||||
{({ copied, copy }) => (
|
{({ copied, copy }) => (
|
||||||
<Tooltip label={copied ? t`Copied` : t`Copy`} withArrow>
|
<Tooltip label={copied ? t`Copied` : t`Copy`} withArrow>
|
||||||
<ActionIcon color={copied ? 'teal' : 'gray'} onClick={copy}>
|
<ActionIcon
|
||||||
|
color={copied ? 'teal' : 'gray'}
|
||||||
|
onClick={copy}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
{copied ? (
|
{copied ? (
|
||||||
<InvenTreeIcon icon="check" />
|
<InvenTreeIcon icon="check" />
|
||||||
) : (
|
) : (
|
||||||
|
@@ -49,6 +49,7 @@ export function HostOptionsForm({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
deleteItem(key);
|
deleteItem(key);
|
||||||
}}
|
}}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconTrash />
|
<IconTrash />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -15,6 +15,7 @@ export function ColorToggle() {
|
|||||||
color:
|
color:
|
||||||
colorScheme === 'dark' ? vars.colors.yellow[4] : vars.colors.blue[6]
|
colorScheme === 'dark' ? vars.colors.yellow[4] : vars.colors.blue[6]
|
||||||
}}
|
}}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
{colorScheme === 'dark' ? <IconSun /> : <IconMoonStars />}
|
{colorScheme === 'dark' ? <IconSun /> : <IconMoonStars />}
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -10,7 +10,7 @@ export const InvenTreeLogoHomeButton = forwardRef<HTMLDivElement>(
|
|||||||
return (
|
return (
|
||||||
<div ref={ref} {...props}>
|
<div ref={ref} {...props}>
|
||||||
<NavLink to={'/'}>
|
<NavLink to={'/'}>
|
||||||
<ActionIcon size={28}>
|
<ActionIcon size={28} variant="transparent">
|
||||||
<InvenTreeLogo />
|
<InvenTreeLogo />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
@@ -16,7 +16,7 @@ export function LanguageToggle() {
|
|||||||
padding: open === true ? 8 : 0
|
padding: open === true ? 8 : 0
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ActionIcon onClick={() => toggle.toggle()} size="lg">
|
<ActionIcon onClick={() => toggle.toggle()} size="lg" variant="default">
|
||||||
<IconLanguage />
|
<IconLanguage />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
{open && (
|
{open && (
|
||||||
|
@@ -44,7 +44,7 @@ export function BreadcrumbList({
|
|||||||
<Paper p="3" radius="xs">
|
<Paper p="3" radius="xs">
|
||||||
<Group gap="xs">
|
<Group gap="xs">
|
||||||
{navCallback && (
|
{navCallback && (
|
||||||
<ActionIcon key="nav-action" onClick={navCallback}>
|
<ActionIcon key="nav-action" onClick={navCallback} variant="default">
|
||||||
<IconMenu2 />
|
<IconMenu2 />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
)}
|
)}
|
||||||
|
@@ -94,12 +94,12 @@ export function Header() {
|
|||||||
<NavTabs />
|
<NavTabs />
|
||||||
</Group>
|
</Group>
|
||||||
<Group>
|
<Group>
|
||||||
<ActionIcon onClick={openSearchDrawer}>
|
<ActionIcon onClick={openSearchDrawer} variant="default">
|
||||||
<IconSearch />
|
<IconSearch />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
<SpotlightButton />
|
<SpotlightButton />
|
||||||
<ScanButton />
|
<ScanButton />
|
||||||
<ActionIcon onClick={openNotificationDrawer}>
|
<ActionIcon onClick={openNotificationDrawer} variant="default">
|
||||||
<Indicator
|
<Indicator
|
||||||
radius="lg"
|
radius="lg"
|
||||||
size="18"
|
size="18"
|
||||||
|
@@ -63,6 +63,7 @@ export function NavHoverMenu({
|
|||||||
onClick={openDrawer}
|
onClick={openDrawer}
|
||||||
onMouseOver={openDrawer}
|
onMouseOver={openDrawer}
|
||||||
title={t`Open Navigation`}
|
title={t`Open Navigation`}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconLayoutSidebar />
|
<IconLayoutSidebar />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -73,6 +73,7 @@ export function NotificationDrawer({
|
|||||||
onClose();
|
onClose();
|
||||||
navigate('/notifications/unread');
|
navigate('/notifications/unread');
|
||||||
}}
|
}}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconBellPlus />
|
<IconBellPlus />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -140,6 +140,7 @@ function BasePanelGroup({
|
|||||||
paddingLeft: '10px'
|
paddingLeft: '10px'
|
||||||
}}
|
}}
|
||||||
onClick={() => setExpanded(!expanded)}
|
onClick={() => setExpanded(!expanded)}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
{expanded ? (
|
{expanded ? (
|
||||||
<IconLayoutSidebarLeftCollapse opacity={0.5} />
|
<IconLayoutSidebarLeftCollapse opacity={0.5} />
|
||||||
|
@@ -258,7 +258,11 @@ export default function Scan() {
|
|||||||
<Trans>Actions for {uniqueObjectTypes[0]} </Trans>
|
<Trans>Actions for {uniqueObjectTypes[0]} </Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<Group>
|
<Group>
|
||||||
<ActionIcon onClick={notYetImplemented} title={t`Count`}>
|
<ActionIcon
|
||||||
|
onClick={notYetImplemented}
|
||||||
|
title={t`Count`}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
<IconNumber />
|
<IconNumber />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -329,6 +333,7 @@ export default function Scan() {
|
|||||||
color="red"
|
color="red"
|
||||||
onClick={btnDeleteHistory}
|
onClick={btnDeleteHistory}
|
||||||
title={t`Delete`}
|
title={t`Delete`}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconTrash />
|
<IconTrash />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
@@ -336,6 +341,7 @@ export default function Scan() {
|
|||||||
onClick={btnRunSelectedBarcode}
|
onClick={btnRunSelectedBarcode}
|
||||||
disabled={selection.length > 1}
|
disabled={selection.length > 1}
|
||||||
title={t`Lookup part`}
|
title={t`Lookup part`}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconSearch />
|
<IconSearch />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
@@ -343,6 +349,7 @@ export default function Scan() {
|
|||||||
onClick={btnOpenSelectedLink}
|
onClick={btnOpenSelectedLink}
|
||||||
disabled={!selectionLinked}
|
disabled={!selectionLinked}
|
||||||
title={t`Open Link`}
|
title={t`Open Link`}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconLink />
|
<IconLink />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
@@ -362,7 +369,11 @@ export default function Scan() {
|
|||||||
>
|
>
|
||||||
<Trans>History</Trans>
|
<Trans>History</Trans>
|
||||||
</TitleWithDoc>
|
</TitleWithDoc>
|
||||||
<ActionIcon color="red" onClick={btnDeleteFullHistory}>
|
<ActionIcon
|
||||||
|
color="red"
|
||||||
|
onClick={btnDeleteFullHistory}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
<IconTrash />
|
<IconTrash />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -509,7 +520,7 @@ function InputManual({ action }: inputProps) {
|
|||||||
onChange={(event) => setValue(event.currentTarget.value)}
|
onChange={(event) => setValue(event.currentTarget.value)}
|
||||||
onKeyDown={getHotkeyHandler([['Enter', btnAddItem]])}
|
onKeyDown={getHotkeyHandler([['Enter', btnAddItem]])}
|
||||||
/>
|
/>
|
||||||
<ActionIcon onClick={btnAddItem} w={16}>
|
<ActionIcon onClick={btnAddItem} w={16} variant="default">
|
||||||
<IconPlus />
|
<IconPlus />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
@@ -704,7 +715,11 @@ function InputImageBarcode({ action }: inputProps) {
|
|||||||
size="sm"
|
size="sm"
|
||||||
/>
|
/>
|
||||||
{ScanningEnabled ? (
|
{ScanningEnabled ? (
|
||||||
<ActionIcon onClick={btnStopScanning} title={t`Stop scanning`}>
|
<ActionIcon
|
||||||
|
onClick={btnStopScanning}
|
||||||
|
title={t`Stop scanning`}
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
<IconPlayerStopFilled />
|
<IconPlayerStopFilled />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
) : (
|
) : (
|
||||||
@@ -712,6 +727,7 @@ function InputImageBarcode({ action }: inputProps) {
|
|||||||
onClick={btnStartScanning}
|
onClick={btnStartScanning}
|
||||||
title={t`Start scanning`}
|
title={t`Start scanning`}
|
||||||
disabled={!camId}
|
disabled={!camId}
|
||||||
|
variant="default"
|
||||||
>
|
>
|
||||||
<IconPlayerPlayFilled />
|
<IconPlayerPlayFilled />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
@@ -13,7 +13,7 @@ export function TableColumnSelect({
|
|||||||
return (
|
return (
|
||||||
<Menu shadow="xs" closeOnItemClick={false}>
|
<Menu shadow="xs" closeOnItemClick={false}>
|
||||||
<Menu.Target>
|
<Menu.Target>
|
||||||
<ActionIcon>
|
<ActionIcon variant="default">
|
||||||
<Tooltip label={t`Select Columns`}>
|
<Tooltip label={t`Select Columns`}>
|
||||||
<IconAdjustments />
|
<IconAdjustments />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@@ -18,7 +18,7 @@ export function DownloadAction({
|
|||||||
<>
|
<>
|
||||||
<Menu>
|
<Menu>
|
||||||
<Menu.Target>
|
<Menu.Target>
|
||||||
<ActionIcon>
|
<ActionIcon variant="default">
|
||||||
<Tooltip label={t`Download selected data`}>
|
<Tooltip label={t`Download selected data`}>
|
||||||
<IconDownload />
|
<IconDownload />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@@ -592,7 +592,7 @@ export function InvenTreeTable<T = any>({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{tableProps.enableRefresh && (
|
{tableProps.enableRefresh && (
|
||||||
<ActionIcon>
|
<ActionIcon variant="default">
|
||||||
<Tooltip label={t`Refresh data`}>
|
<Tooltip label={t`Refresh data`}>
|
||||||
<IconRefresh onClick={() => refetch()} />
|
<IconRefresh onClick={() => refetch()} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -610,7 +610,7 @@ export function InvenTreeTable<T = any>({
|
|||||||
label={tableState.activeFilters?.length ?? 0}
|
label={tableState.activeFilters?.length ?? 0}
|
||||||
disabled={tableState.activeFilters?.length == 0}
|
disabled={tableState.activeFilters?.length == 0}
|
||||||
>
|
>
|
||||||
<ActionIcon>
|
<ActionIcon variant="default">
|
||||||
<Tooltip label={t`Table filters`}>
|
<Tooltip label={t`Table filters`}>
|
||||||
<IconFilter
|
<IconFilter
|
||||||
onClick={() => setFiltersVisible(!filtersVisible)}
|
onClick={() => setFiltersVisible(!filtersVisible)}
|
||||||
|
@@ -196,6 +196,7 @@ export function AttachmentTable({
|
|||||||
attachmentType: 'file',
|
attachmentType: 'file',
|
||||||
callback: table.refreshTable
|
callback: table.refreshTable
|
||||||
});
|
});
|
||||||
|
variant = 'default';
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconFileUpload />
|
<IconFileUpload />
|
||||||
@@ -215,6 +216,7 @@ export function AttachmentTable({
|
|||||||
attachmentType: 'link',
|
attachmentType: 'link',
|
||||||
callback: table.refreshTable
|
callback: table.refreshTable
|
||||||
});
|
});
|
||||||
|
variant = 'default';
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconExternalLink />
|
<IconExternalLink />
|
||||||
|
@@ -78,7 +78,7 @@ function ParameterCell({
|
|||||||
{hovered && canEdit && (
|
{hovered && canEdit && (
|
||||||
<div style={{ flex: 0 }}>
|
<div style={{ flex: 0 }}>
|
||||||
<Tooltip label={t`Edit parameter`}>
|
<Tooltip label={t`Edit parameter`}>
|
||||||
<ActionIcon size="xs" onClick={handleClick}>
|
<ActionIcon size="xs" onClick={handleClick} variant="default">
|
||||||
<IconEdit />
|
<IconEdit />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
Reference in New Issue
Block a user