Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Color calendar invite icon in email topbar (#2386)

Evan Hutnik28c7c829c208
diff --git a/js/app/packages/app/component/split-layout/components/SplitLabel.tsx b/js/app/packages/app/component/split-layout/components/SplitLabel.tsx
index bd7914174e..f361b3eb74 100644
--- a/js/app/packages/app/component/split-layout/components/SplitLabel.tsx
+++ b/js/app/packages/app/component/split-layout/components/SplitLabel.tsx
@@ -30,6 +30,7 @@ export function StaticSplitLabel(props: {
icon?: JSX.Element;
badges?: JSX.Element;
class?: string;
+ colorIcon?: boolean;
}) {
const panel = useSplitPanelOrThrow();
createEffect(() => {
@@ -47,7 +48,7 @@ export function StaticSplitLabel(props: {
class="shrink-0"
targetType={props.iconType}
size="xs"
- theme="monochrome"
+ theme={props.colorIcon ? undefined : 'monochrome'}
/>
</Show>
<Show when={props.icon}>
diff --git a/js/app/packages/block-email/component/TopBar.tsx b/js/app/packages/block-email/component/TopBar.tsx
index 15dcec06bb..362d5a1e3b 100644
--- a/js/app/packages/block-email/component/TopBar.tsx
+++ b/js/app/packages/block-email/component/TopBar.tsx
@@ -147,6 +147,7 @@ export function TopBar(props: {
<StaticSplitLabel
class="ph-no-capture"
iconType={isInvite() ? 'emailInvite' : 'email'}
+ colorIcon={isInvite()}
label={isMobile() ? '' : props.title}
badges={
props.isDraft