From 858224412133bfc8c85602fc260ab681f7a41e30 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Thu, 14 Mar 2024 23:51:00 +0900 Subject: [PATCH] refs #4887 Adjust dark mode design --- renderer/app.scss | 19 ++++++++ renderer/components/accounts/New.tsx | 4 +- renderer/components/compose/Compose.tsx | 8 ++-- renderer/components/detail/Detail.tsx | 2 +- renderer/components/detail/Profile.tsx | 22 +++++---- renderer/components/detail/profile/User.tsx | 7 ++- renderer/components/report/Report.tsx | 4 +- .../timelines/notification/Follow.tsx | 16 +++++-- .../timelines/notification/Reaction.tsx | 18 ++++--- renderer/pages/_app.tsx | 47 ++++++++++++++++++- 10 files changed, 114 insertions(+), 33 deletions(-) diff --git a/renderer/app.scss b/renderer/app.scss index d5a5867dec..ffef9ba54d 100644 --- a/renderer/app.scss +++ b/renderer/app.scss @@ -97,6 +97,19 @@ background-color: rgb(241 245 249); } +.dark { + .timeline-scrollable::-webkit-scrollbar-thumb { + background-color: #616161; + border-radius: 4px !important; + opacity: 0; + } + + .timeline-scrollable::-webkit-scrollbar-track { + border-radius: 4px !important; + background-color: #424242; + } +} + .timeline-scrollable:hover::-webkit-scrollbar-thumb { opacity: 1; } @@ -329,3 +342,9 @@ a { @apply text-blue-gray-600; } } + +.dark { + a { + @apply text-blue-400; + } +} diff --git a/renderer/components/accounts/New.tsx b/renderer/components/accounts/New.tsx index cf11849062..dd6fd0367d 100644 --- a/renderer/components/accounts/New.tsx +++ b/renderer/components/accounts/New.tsx @@ -160,7 +160,7 @@ export default function New(props: NewProps) { - + @@ -185,7 +185,7 @@ export default function New(props: NewProps) { - + )} diff --git a/renderer/components/compose/Compose.tsx b/renderer/components/compose/Compose.tsx index 70c35f7301..0f5b936cef 100644 --- a/renderer/components/compose/Compose.tsx +++ b/renderer/components/compose/Compose.tsx @@ -236,7 +236,7 @@ export default function Compose(props: Props) { setSpoiler(ev.target.value)} @@ -246,7 +246,7 @@ export default function Compose(props: Props) {