macos active app icon retrieval

This commit is contained in:
2026-01-26 17:43:50 +08:00
parent 9662c1f66c
commit 5e8322d979
3 changed files with 140 additions and 6 deletions

View File

@@ -93,7 +93,14 @@
)})
</span>
<span class="font-mono text-xs badge py-3">
<span class="font-mono text-xs badge py-3 flex items-center gap-2">
{#if appMetadata?.appIconB64}
<img
src={`data:image/png;base64,${appMetadata.appIconB64}`}
alt="Active app icon"
class="size-4"
/>
{/if}
{appMetadata?.localized}
</span>

View File

@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type AppMetadata = { localized: string | null, unlocalized: string | null, };
export type AppMetadata = { localized: string | null, unlocalized: string | null, appIconB64: string | null, };