Skip to content

Commit

Permalink
feat: add dark theme support for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Nov 19, 2023
1 parent 67b29ac commit aa43d04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/web/src/init.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ setNotification((message, duration) => {
key,
message,
duration,
getContainer: getPopupContainer,
});

return () => {
Expand Down
11 changes: 11 additions & 0 deletions client/web/src/styles/antd/dark.less
Original file line number Diff line number Diff line change
Expand Up @@ -486,4 +486,15 @@
}
}
}

// Notification
.ant-notification {
.ant-notification-notice {
background-color: var(--tc-content-background-color, #1f1f1f);

.ant-notification-notice-message {
color: rgba(255, 255, 255, 0.65);
}
}
}
}

0 comments on commit aa43d04

Please sign in to comment.