fix: eagle icon

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-07-31 22:04:38 +08:00
parent d181771a7b
commit 021dfab5ee
9 changed files with 39 additions and 59 deletions
-48
View File
@@ -1,48 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z" fill="url(#paint0_linear)"/>
<path d="M385.7 369.2C376.3 381.2 358.3 401 329.6 415.4C302.4 429.1 275.8 432.9 254.5 432.8C248.2 432.8 242.4 432.4 237.1 431.9C232.6 420 228 403.6 226.7 384C225.3 363.2 226.9 325.7 249.9 288.3C268.1 258.6 291.8 241.8 306.7 233.2C306.5 237.7 306.6 241.9 306.7 245.8C307 252.8 307.8 258.5 308.4 262.4C310.2 273.4 317.1 307.9 345.8 338.9C360.2 354.4 375.3 363.8 385.7 369.2Z" fill="#80BBFF"/>
<path d="M385.7 369.2C376.3 381.2 358.3 401 329.6 415.4C302.4 429.1 275.8 432.9 254.5 432.8C248.2 432.8 242.4 432.4 237.1 431.9C232.6 420 228 403.6 226.7 384C225.3 363.2 226.9 325.7 249.9 288.3C268.1 258.6 291.8 241.8 306.7 233.2C306.5 237.7 306.6 241.9 306.7 245.8C307 252.8 307.8 258.5 308.4 262.4C310.2 273.4 317.1 307.9 345.8 338.9C360.2 354.4 375.3 363.8 385.7 369.2Z" fill="url(#paint1_linear)"/>
<path d="M312 199C306.9 217.1 306.1 233.4 306.7 245.7C299.1 251 289.7 258.6 280.4 268.9C256.8 295.2 248.6 322.9 245.8 334.2C243.1 345.1 237.1 374.5 246.4 409.8C248.8 418.8 251.7 426.5 254.5 432.8C233.4 432.7 217.4 428.9 210.8 427.1C201.4 424.6 175.9 417.4 150.4 398.2C145.5 394.5 140.7 390.5 135.9 385.9C136.6 373.4 138.7 357.9 144.3 340.9C152.6 315.4 165 297 173.8 285.9C163 288.2 152.3 290.5 141.5 292.8C147.3 276.8 158.1 254.7 178.4 234.5C227 186.2 292.9 186.2 315.8 187.8C314.2 191.7 313 195.4 312 199Z" fill="url(#paint2_linear)"/>
<path d="M312 199C306.9 217.1 306.1 233.4 306.7 245.7C299.1 251 289.7 258.6 280.4 268.9C256.8 295.2 248.6 322.9 245.8 334.2C243.1 345.1 237.1 374.5 246.4 409.8C248.8 418.8 251.7 426.5 254.5 432.8C233.4 432.7 217.4 428.9 210.8 427.1C201.4 424.6 175.9 417.4 150.4 398.2C145.5 394.5 140.7 390.5 135.9 385.9C136.6 373.4 138.7 357.9 144.3 340.9C152.6 315.4 165 297 173.8 285.9C163 288.2 152.3 290.5 141.5 292.8C147.3 276.8 158.1 254.7 178.4 234.5C227 186.2 292.9 186.2 315.8 187.8C314.2 191.7 313 195.4 312 199Z" fill="url(#paint3_linear)"/>
<path d="M312 199C306.9 217.1 306.1 233.4 306.7 245.7C299.1 251 289.7 258.6 280.4 268.9C256.8 295.2 248.6 322.9 245.8 334.2C243.1 345.1 237.1 374.5 246.4 409.8C248.8 418.8 251.7 426.5 254.5 432.8C233.4 432.7 217.4 428.9 210.8 427.1C201.4 424.6 175.9 417.4 150.4 398.2C145.5 394.5 140.7 390.5 135.9 385.9C136.6 373.4 138.7 357.9 144.3 340.9C152.6 315.4 165 297 173.8 285.9C163 288.2 152.3 290.5 141.5 292.8C147.3 276.8 158.1 254.7 178.4 234.5C227 186.2 292.9 186.2 315.8 187.8C314.2 191.7 313 195.4 312 199Z" fill="url(#paint4_linear)"/>
<path opacity="0.8" d="M312 199C306.9 217.1 306.1 233.4 306.7 245.7C299.1 251 289.7 258.6 280.4 268.9C256.8 295.2 248.6 322.9 245.8 334.2C243.1 345.1 237.1 374.5 246.4 409.8C248.8 418.8 251.7 426.5 254.5 432.8C233.4 432.7 217.4 428.9 210.8 427.1C201.4 424.6 175.9 417.4 150.4 398.2C145.5 394.5 140.7 390.5 135.9 385.9C136.6 373.4 138.7 357.9 144.3 340.9C152.6 315.4 165 297 173.8 285.9C163 288.2 152.3 290.5 141.5 292.8C147.3 276.8 158.1 254.7 178.4 234.5C227 186.2 292.9 186.2 315.8 187.8C314.2 191.7 313 195.4 312 199Z" fill="url(#paint5_linear)"/>
<path opacity="0.5" d="M254.4 432.9C240.4 432.9 228.5 431.2 219.5 429.3C210.1 427.4 193.6 423.2 174.9 413.6C161.8 406.9 152.9 400.3 150.2 398.3C140 390.6 132.2 382.8 126.6 376.4C128.5 356.4 133.2 340.8 137.1 330.5C150.9 294 173.2 272.2 184.8 269.5C191 268.1 198.2 267.4 198.2 267.4C203.3 266.9 207.3 266.8 210.2 266.8C215.1 266.7 219.6 266.9 223.6 267.2C221.6 270.7 218.9 275.7 216.1 281.8C210.3 294.6 201.6 313.2 201.6 336.3C201.6 365.3 213.6 386.1 218.6 394.5C230.6 414.6 245.5 426.7 254.4 432.9Z" fill="url(#paint6_linear)"/>
<path d="M363.9 122.5C353.4 130.6 331.7 149.5 318.1 181.8C315.6 187.7 313.6 193.4 312.1 199C304.5 198.6 294.6 198.6 283.3 200.1C263.5 202.6 248.2 208.2 238.9 212.2C229.2 216.4 213.1 224.5 196.6 239.1C181.8 252.1 171.9 265.5 165.6 275.7C171 273.5 177.4 271.3 184.9 269.7C194.6 267.6 203.3 267 210.2 267C203.6 272.3 195.2 279.8 186.7 290.1C178.2 300.4 167.7 315.7 160.1 336C150.6 361.3 149.6 384 150.2 398.5C135.8 387.7 121.5 373.1 110 353.4C105.3 345.3 78.2 297 93.6 237.1C101.4 206.6 117 185.5 126.5 174.5C120.1 176.2 112.4 178.8 104 183C94.5 187.7 87.1 193.1 81.6 197.6C87.9 182.9 113.2 128 175.3 99.4C225.4 76.4 288.6 75.5 337.5 103.4C349.2 110 357.9 117.1 363.9 122.5Z" fill="white"/>
<path d="M403.6 218.6C396.8 218.2 389.4 218.1 381.6 218.8C366.7 220 355 223.2 348.5 225.2C339.4 228 331.9 231.3 326.1 234.2C326.6 220.3 329.3 209 331.7 201.2C333 197 334.4 193.2 335.8 189.9C347.7 192.3 362.1 196.5 377.7 203.8C387.3 208.4 396 213.5 403.6 218.6Z" fill="#B2D6FF"/>
<path d="M403.6 218.6C396.8 218.2 389.4 218.1 381.6 218.8C366.7 220 355 223.2 348.5 225.2C339.4 228 331.9 231.3 326.1 234.2C326.6 220.3 329.3 209 331.7 201.2C333 197 334.4 193.2 335.8 189.9C347.7 192.3 362.1 196.5 377.7 203.8C387.3 208.4 396 213.5 403.6 218.6Z" fill="url(#paint7_linear)"/>
<path d="M425.2 254.8C419.5 248 411.9 240 402 232.3C394.8 226.6 387.8 222.2 381.6 218.8C371.8 213.4 363.4 210.1 358 208.2C348 204.6 338.9 202.5 331.6 201.3C334.3 192.6 337.5 185.7 339.7 181.3C340.7 179.3 344 172.9 349 165.8C358.5 152.3 369.6 142.4 378.5 135.8C382.8 138.5 388.4 142.4 394.2 148C396.5 150.2 404.4 158 411.7 170.5C420.5 185.5 423.4 198.8 424.9 205.7C428.4 221.8 428.6 238.6 425.2 254.8Z" fill="white"/>
<defs>
<linearGradient id="paint0_linear" x1="256" y1="-31.2207" x2="256" y2="237.826" gradientUnits="userSpaceOnUse">
<stop stop-color="#4DA1FF"/>
<stop offset="1" stop-color="#0072EE"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="310.007" y1="538.34" x2="303.954" y2="288.445" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="#1A86FF" stop-opacity="0.4"/>
</linearGradient>
<linearGradient id="paint2_linear" x1="143.509" y1="394.42" x2="244.677" y2="309.68" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="#B2D6FF"/>
</linearGradient>
<linearGradient id="paint3_linear" x1="95.6468" y1="395.392" x2="242.211" y2="316.274" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="#B2D6FF"/>
</linearGradient>
<linearGradient id="paint4_linear" x1="219.568" y1="303.883" x2="235.133" y2="193.78" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="#4DA1FF" stop-opacity="0.4"/>
</linearGradient>
<linearGradient id="paint5_linear" x1="253.657" y1="328.578" x2="186.788" y2="228.851" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="#4DA1FF" stop-opacity="0.4"/>
</linearGradient>
<linearGradient id="paint6_linear" x1="206.395" y1="344.213" x2="158.18" y2="318.828" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="#4DA1FF" stop-opacity="0.3"/>
</linearGradient>
<linearGradient id="paint7_linear" x1="373.968" y1="264.232" x2="360.133" y2="207.162" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="#4DA1FF" stop-opacity="0.4"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 7.1 KiB

@@ -0,0 +1,18 @@
import type { SVGProps } from "react"
export function SimpleIconsEagle(props: SVGProps<SVGSVGElement>) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 24 24"
{...props}
>
<path
fill="currentColor"
d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12s12-5.373 12-12S18.627 0 12 0m.04 3.858c1.32.019 2.634.335 3.78.989c.549.31.957.642 1.238.895a6.9 6.9 0 0 0-2.25 3.04c-.06.165-.123.354-.183.546a7 7 0 0 0-.252 1.605c-.003.162.002.374.003.578c.012.242.05.519.08.789a7 7 0 0 0 1.753 3.586a6.9 6.9 0 0 0 1.87 1.42a7.8 7.8 0 0 1-2.629 2.166a7.7 7.7 0 0 1-3.846.808l-.22-.013a7.7 7.7 0 0 1-1.504-.247a8.2 8.2 0 0 1-2.83-1.354a7.1 7.1 0 0 1-1.894-2.1c-.22-.38-1.49-2.644-.769-5.452A7.26 7.26 0 0 1 5.93 8.18a5.5 5.5 0 0 0-2.105 1.082C4.12 8.573 5.306 6 8.217 4.66a8.9 8.9 0 0 1 3.823-.8zm5.702 2.508c.202.126.464.309.736.572c.108.103.478.468.82 1.054c.413.703.549 1.327.62 1.65a5.5 5.5 0 0 1 .013 2.302a7.1 7.1 0 0 0-2.044-1.688a7.2 7.2 0 0 0-1.551.3a7 7 0 0 0-1.05.422a6 6 0 0 1 .267-1.563a6 6 0 0 1 .806-1.643a6.3 6.3 0 0 1 1.383-1.406"
/>
</svg>
)
}
@@ -0,0 +1 @@
export * from "./collections/eagle"
@@ -1,3 +1,4 @@
import { SimpleIconsEagle } from "@renderer/components/ui/platform-icon/icons"
import { COPY_MAP } from "@renderer/constants"
import { shortcuts } from "@renderer/constants/shortcuts"
import { tipcClient } from "@renderer/lib/client"
@@ -11,6 +12,7 @@ import { useFeedById } from "@renderer/store/feed"
import { useMutation, useQuery } from "@tanstack/react-query"
import type { FetchError } from "ofetch"
import { ofetch } from "ofetch"
import type { ReactNode } from "react"
import { useMemo } from "react"
import { toast } from "sonner"
@@ -99,7 +101,7 @@ export const useEntryActions = ({
className?: string
shortcut?: string
name: string
icon?: string
icon?: ReactNode
disabled?: boolean
onClick: () => void
}[] = [
@@ -159,7 +161,7 @@ export const useEntryActions = ({
},
{
name: "Save Media to Eagle",
icon: "/eagle.svg",
icon: <SimpleIconsEagle />,
key: "saveToEagle",
disabled:
(checkEagle.isLoading ? true : !checkEagle.data) ||
@@ -189,7 +191,10 @@ export const useEntryActions = ({
{
name: "Share",
key: "share",
className: getOS() === "macOS" ? `i-mgc-share-3-cute-re` : "i-mgc-share-forward-cute-re",
className:
getOS() === "macOS" ?
`i-mgc-share-3-cute-re` :
"i-mgc-share-forward-cute-re",
shortcut: shortcuts.entry.share.key,
disabled: !window.electron && !navigator.share,
+1 -1
View File
@@ -228,7 +228,7 @@ export function DiscoverForm({ type }: { type: string }) {
</StyledButton>
)}
<div className="ml-6 text-zinc-500">
<span className="font-medium text-zinc-800">
<span className="font-medium text-zinc-800 dark:text-zinc-200">
{item.subscriptionCount}
</span>
{" "}
@@ -1,3 +1,4 @@
import { Slot } from "@radix-ui/react-slot"
import { ActionButton } from "@renderer/components/ui/button"
import { useEntryActions } from "@renderer/hooks/biz/useEntryActions"
import { cn } from "@renderer/lib/utils"
@@ -73,7 +74,9 @@ export function EntryHeader({
<ActionButton
icon={
item.icon ? (
<img className="size-4 grayscale" src={item.icon} />
<Slot className="size-4">
{item.icon}
</Slot>
) : (
<i className={item.className} />
)
@@ -54,7 +54,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({
right: "80px",
zIndex: 11,
}}
className="relative z-[11] flex size-8 items-center justify-center rounded-full border border-border bg-muted ring ring-background"
className="relative z-[11] flex size-7 items-center justify-center rounded-full border border-border bg-muted ring ring-background"
>
<span className="text-[10px] font-medium text-muted-foreground">
+
@@ -70,7 +70,7 @@ export function SettingModalLayout(
onPointerDown={handleDrag}
/>
)}
<div className="flex h-0 flex-1 bg-theme-tooltip-background">
<div className="flex h-0 flex-1 bg-theme-modal-background-opaque">
<div className="w-44 border-r px-2 py-6">
<div className="mb-4 flex h-8 items-center gap-2 px-2 font-bold">
<Logo className="mr-1 size-6" />
+5 -4
View File
@@ -12,8 +12,8 @@
--fo-inactive: 0, 0%, 80%;
--fo-disabled: 0, 0%, 70%;
--fo-item-active: theme(colors.native.active/0.4);
--fo-item-hover: theme(colors.native.active/0.2);
--fo-item-active: theme(colors.zinc.400/0.3);
--fo-item-hover: theme(colors.zinc.400/0.2);
--fo-modal-background: theme(colors.zinc.50/0.8);
--fo-modal-background-opaque: theme(colors.zinc.50);
@@ -28,8 +28,9 @@
--fo-vibrancy-background: theme(colors.native.active);
--fo-item-active: theme(colors.neutral.700/0.4);
--fo-item-hover: theme(colors.native.active/0.2);
--fo-item-active: theme(colors.neutral.600/0.4);
--fo-item-hover: theme(colors.neutral.700/0.3);
--fo-tooltip-background: 0, 0%, 15%;
--fo-tooltip-foreground: 0, 0%, 96%;