chore: Bump outline-icons (#5170

* Bump outline-icons to default use currentColor

* wip
This commit is contained in:
Tom Moor
2023-04-08 11:16:05 -04:00
committed by GitHub
parent 489cfcd0b0
commit aab3a49f2c
70 changed files with 113 additions and 190 deletions

View File

@@ -88,20 +88,20 @@ function AppSidebar() {
<Section>
<SidebarLink
to={homePath()}
icon={<HomeIcon color="currentColor" />}
icon={<HomeIcon />}
exact={false}
label={t("Home")}
/>
<SidebarLink
to={searchPath()}
icon={<SearchIcon color="currentColor" />}
icon={<SearchIcon />}
label={t("Search")}
exact={false}
/>
{can.createDocument && (
<SidebarLink
to={draftsPath()}
icon={<EditIcon color="currentColor" />}
icon={<EditIcon />}
label={
<Flex align="center" justify="space-between">
{t("Drafts")}
@@ -124,7 +124,7 @@ function AppSidebar() {
<>
<SidebarLink
to={templatesPath()}
icon={<ShapesIcon color="currentColor" />}
icon={<ShapesIcon />}
exact={false}
label={t("Templates")}
active={

View File

@@ -33,7 +33,7 @@ function SettingsSidebar() {
<HistoryNavigation />
<HeaderButton
title={t("Return to App")}
image={<StyledBackIcon color="currentColor" />}
image={<StyledBackIcon />}
onClick={returnToApp}
minHeight={Desktop.hasInsetTitlebar() ? undefined : 48}
/>
@@ -47,7 +47,7 @@ function SettingsSidebar() {
<SidebarLink
key={item.path}
to={item.path}
icon={<item.icon color="currentColor" />}
icon={<item.icon />}
label={item.name}
/>
))}

View File

@@ -32,7 +32,7 @@ function ArchiveLink() {
<div ref={dropToArchiveDocument}>
<SidebarLink
to={archivePath()}
icon={<ArchiveIcon color="currentColor" open={isDocumentDropping} />}
icon={<ArchiveIcon open={isDocumentDropping} />}
exact={false}
label={t("Archive")}
active={documents.active?.isArchived && !documents.active?.isDeleted}

View File

@@ -22,7 +22,7 @@ function Disclosure({ onClick, root, expanded, ...rest }: Props) {
aria-label={expanded ? t("Collapse") : t("Expand")}
{...rest}
>
<StyledCollapsedIcon expanded={expanded} size={20} color="currentColor" />
<StyledCollapsedIcon expanded={expanded} size={20} />
</Button>
);
}

View File

@@ -36,9 +36,7 @@ export const Header: React.FC<Props> = ({ id, title, children }) => {
<H3>
<Button onClick={handleClick} disabled={!id}>
{title}
{id && (
<Disclosure expanded={expanded} color="currentColor" size={20} />
)}
{id && <Disclosure expanded={expanded} size={20} />}
</Button>
</H3>
{expanded && (firstRender ? children : <Fade>{children}</Fade>)}

View File

@@ -40,8 +40,8 @@ const HeaderButton = React.forwardRef<HTMLButtonElement, HeaderButtonProps>(
{image}
{title}
</Title>
{showDisclosure && <ExpandedIcon color="currentColor" />}
{showMoreMenu && <MoreIcon color="currentColor" />}
{showDisclosure && <ExpandedIcon />}
{showMoreMenu && <MoreIcon />}
</Wrapper>
)
);

View File

@@ -45,12 +45,12 @@ function HistoryNavigation(props: React.ComponentProps<typeof Flex>) {
<Navigation gap={4} {...props}>
<Tooltip tooltip={t("Go back")} delay={500}>
<NudeButton onClick={() => Desktop.bridge.goBack()}>
<Back color="currentColor" $active={back} />
<Back $active={back} />
</NudeButton>
</Tooltip>
<Tooltip tooltip={t("Go forward")} delay={500}>
<NudeButton onClick={() => Desktop.bridge.goForward()}>
<Forward color="currentColor" $active={forward} />
<Forward $active={forward} />
</NudeButton>
</Tooltip>
</Navigation>

View File

@@ -36,7 +36,7 @@ function TrashLink() {
<div ref={dropToTrashDocument}>
<SidebarLink
to={trashPath()}
icon={<TrashIcon color="currentColor" open={isDocumentDropping} />}
icon={<TrashIcon open={isDocumentDropping} />}
exact={false}
label={t("Trash")}
active={documents.active?.isDeleted}