From 010aa2f45e8cf864ac54fed44668369b5ff8fd9e Mon Sep 17 00:00:00 2001 From: guiboji <814282700@qq.com> Date: Mon, 21 Oct 2024 18:31:16 +0800 Subject: [PATCH] feat: support dark mode --- .gitignore | 4 ++++ src/app/content/App.tsx | 9 +++++---- src/app/content/components/EmojiButton.tsx | 2 +- src/app/content/components/LikeButton.tsx | 2 +- src/app/content/components/MessageInput.tsx | 4 ++-- src/app/content/components/MessageItem.tsx | 11 +++++++---- src/app/content/components/PromptItem.tsx | 7 +++++-- src/app/content/views/AppButton/index.tsx | 10 +++++++--- src/app/content/views/AppMain/index.tsx | 7 ++++--- src/app/content/views/Footer/index.tsx | 8 ++++---- src/app/content/views/Header/index.tsx | 8 ++++---- src/app/options/App.tsx | 22 +++++++++++++-------- src/app/options/components/Layout.tsx | 2 +- src/app/options/components/Main.tsx | 2 +- src/app/options/components/ProfileForm.tsx | 13 ++++++------ src/components/Markdown.tsx | 2 +- src/components/ui/Avatar.tsx | 2 +- src/components/ui/ScrollArea.tsx | 2 +- 18 files changed, 69 insertions(+), 48 deletions(-) diff --git a/.gitignore b/.gitignore index 5561b85..fdfadc1 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,8 @@ web-ext.config.ts *.pem *.xpi *.zip +*.xml +*.gitignore +.idea +*.yaml diff --git a/src/app/content/App.tsx b/src/app/content/App.tsx index 130f05a..dd859a7 100644 --- a/src/app/content/App.tsx +++ b/src/app/content/App.tsx @@ -34,7 +34,7 @@ export default function App() { const userInfoSetFinished = useRemeshQuery(userInfoDomain.query.UserInfoSetIsFinishedQuery()) const messageListLoadFinished = useRemeshQuery(messageListDomain.query.LoadIsFinishedQuery()) const userInfoLoadFinished = useRemeshQuery(userInfoDomain.query.UserInfoLoadIsFinishedQuery()) - + const userInfo = useRemeshQuery(userInfoDomain.query.UserInfoQuery()) const notUserInfo = userInfoLoadFinished && !userInfoSetFinished useEffect(() => { @@ -59,7 +59,7 @@ export default function App() { return ( <> - +