diff --git a/web/index.html b/web/index.html index e9a0127c..867364e5 100644 --- a/web/index.html +++ b/web/index.html @@ -11,7 +11,7 @@ Memos - +
diff --git a/web/src/components/ActivityCalendar/ActivityCalendar.tsx b/web/src/components/ActivityCalendar/ActivityCalendar.tsx index b7b6bfb4..7f20dc3e 100644 --- a/web/src/components/ActivityCalendar/ActivityCalendar.tsx +++ b/web/src/components/ActivityCalendar/ActivityCalendar.tsx @@ -9,10 +9,10 @@ import { useTranslate } from "@/utils/i18n"; const getCellOpacity = (ratio: number): string => { if (ratio === 0) return ""; - if (ratio > 0.75) return "bg-green-700/90 text-gray-50 dark:bg-green-400/80"; - if (ratio > 0.5) return "bg-green-700/70 text-gray-100 dark:bg-green-400/60"; - if (ratio > 0.25) return "bg-green-700/70 text-gray-100 dark:bg-green-400/40"; - return "bg-green-700/50 text-gray-100 dark:bg-green-400/20"; + if (ratio > 0.75) return "bg-primary/90 text-primary-foreground"; + if (ratio > 0.5) return "bg-primary/70 text-primary-foreground"; + if (ratio > 0.25) return "bg-primary/50 text-primary-foreground"; + return "bg-primary/30 text-primary-foreground"; }; const CalendarCell = memo( @@ -37,10 +37,10 @@ const CalendarCell = memo(
0 && "cursor-pointer hover:scale-110", )} @@ -52,7 +52,7 @@ const CalendarCell = memo( if (!dayInfo.isCurrentMonth) { return ( -
+
{dayInfo.day}
); diff --git a/web/src/components/BrandBanner.tsx b/web/src/components/BrandBanner.tsx index 4825fe30..f8673afb 100644 --- a/web/src/components/BrandBanner.tsx +++ b/web/src/components/BrandBanner.tsx @@ -16,9 +16,9 @@ const BrandBanner = observer((props: Props) => { return (
-
+
- {!collapsed && {title}} + {!collapsed && {title}}
); diff --git a/web/src/components/ChangeMemberPasswordDialog.tsx b/web/src/components/ChangeMemberPasswordDialog.tsx index f501295e..127a57b5 100644 --- a/web/src/components/ChangeMemberPasswordDialog.tsx +++ b/web/src/components/ChangeMemberPasswordDialog.tsx @@ -65,7 +65,7 @@ const ChangeMemberPasswordDialog: React.FC = (props: Props) => { }; return ( -
+

{t("setting.account-section.change-password")} ({user.displayName}) diff --git a/web/src/components/CreateAccessTokenDialog.tsx b/web/src/components/CreateAccessTokenDialog.tsx index b249f25b..8e8b1c87 100644 --- a/web/src/components/CreateAccessTokenDialog.tsx +++ b/web/src/components/CreateAccessTokenDialog.tsx @@ -88,7 +88,7 @@ const CreateAccessTokenDialog: React.FC = (props: Props) => { }; return ( -

+

{t("setting.access-token-section.create-dialog.create-access-token")}

- + diff --git a/web/src/components/HomeSidebar/ShortcutsSection.tsx b/web/src/components/HomeSidebar/ShortcutsSection.tsx index 901394e6..07b8d1f8 100644 --- a/web/src/components/HomeSidebar/ShortcutsSection.tsx +++ b/web/src/components/HomeSidebar/ShortcutsSection.tsx @@ -38,7 +38,7 @@ const ShortcutsSection = observer(() => { return (
-
+
{t("common.shortcuts")} @@ -61,10 +61,10 @@ const ShortcutsSection = observer(() => { return (
(selected ? memoFilterStore.setShortcut(undefined) : memoFilterStore.setShortcut(shortcutId))} > {emoji && {emoji}} @@ -78,14 +78,14 @@ const ShortcutsSection = observer(() => {
@@ -113,7 +113,7 @@ const TagsSection = observer((props: Props) => { ) ) : ( !props.readonly && ( -
+

{t("tag.create-tags-guide")}

diff --git a/web/src/components/Inbox/MemoCommentMessage.tsx b/web/src/components/Inbox/MemoCommentMessage.tsx index 930f7129..4dfb92e5 100644 --- a/web/src/components/Inbox/MemoCommentMessage.tsx +++ b/web/src/components/Inbox/MemoCommentMessage.tsx @@ -75,8 +75,8 @@ const MemoCommentMessage = observer(({ inbox }: Props) => { className={cn( "shrink-0 mt-2 p-2 rounded-full border", inbox.status === Inbox_Status.UNREAD - ? "border-blue-600 text-blue-600 bg-blue-50 dark:bg-zinc-800" - : "border-gray-500 text-gray-500 bg-gray-50 dark:bg-zinc-800", + ? "border-primary text-primary bg-primary/10" + : "border-muted-foreground text-muted-foreground bg-secondary", )} > @@ -92,21 +92,21 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {
{initialized ? ( <>
- {inbox.createTime?.toLocaleString()} + {inbox.createTime?.toLocaleString()}
{inbox.status === Inbox_Status.UNREAD && ( handleArchiveMessage()} /> @@ -119,7 +119,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => {

{t("inbox.memo-comment", { @@ -131,7 +131,7 @@ const MemoCommentMessage = observer(({ inbox }: Props) => { ) : (

- +
)}
diff --git a/web/src/components/LearnMore.tsx b/web/src/components/LearnMore.tsx index 0dbcc80b..07ea8973 100644 --- a/web/src/components/LearnMore.tsx +++ b/web/src/components/LearnMore.tsx @@ -16,7 +16,7 @@ const LearnMore: React.FC = (props: Props) => { -
+ diff --git a/web/src/components/MemoActionMenu.tsx b/web/src/components/MemoActionMenu.tsx index 57ee8fe4..1674d582 100644 --- a/web/src/components/MemoActionMenu.tsx +++ b/web/src/components/MemoActionMenu.tsx @@ -166,7 +166,7 @@ const MemoActionMenu = observer((props: Props) => { - + @@ -176,7 +176,7 @@ const MemoActionMenu = observer((props: Props) => { {!isComment && ( @@ -205,7 +202,7 @@ const MemoActionMenu = observer((props: Props) => { {!isArchived && !isComment && hasCompletedTaskList && (