feat: dark theme support
https://github.com/user-attachments/assets/b13b0ecf-bfdc-4c57-91ff-054ca0f593b3
Hey, I have added the dark theme.
@AmitChauhan63390 looks great, just take a look at discord to make some fixes
Did as you told me on discord. Hope you like it
@RohitR311 do take a look
https://github.com/user-attachments/assets/1c1ecd20-5197-4a68-97bb-8084e40db455
Walkthrough
The pull request introduces a comprehensive theme management system for the application, focusing on implementing dark mode functionality across various components. The changes span multiple files, introducing a new ThemeModeProvider context, updating component styles to support dynamic theming, and adding theme-aware styling to improve user interface consistency. The modifications include updating color schemes, adding theme-based conditional rendering, and creating a centralized theme management mechanism that allows users to toggle between light and dark modes.
Changes
| File | Change Summary |
|---|---|
src/App.tsx |
Replaced ThemeProvider with ThemeModeProvider. |
src/components/atoms/Loader.tsx |
Integrated theme mode logic, updated StyledParagraph for dark mode styling. |
src/components/atoms/RecorderIcon.tsx |
Changed SVG fill color from white to black. |
src/components/atoms/buttons/buttons.tsx |
Updated NavBarButton to accept mode prop for theme-based styling. |
src/components/molecules/ActionDescriptionBox.tsx |
Added isDarkMode prop for conditional styling. |
src/components/molecules/ActionSettings.tsx |
Introduced optional darkMode prop for styling adjustments. |
src/components/molecules/BrowserNavBar.tsx |
Enhanced styling with isDarkMode and added IconButton. |
src/components/molecules/BrowserRecordingSave.tsx |
Adjusted inline styles for layout improvements. |
src/components/molecules/BrowserTabs.tsx |
Updated styling to reflect theme mode changes. |
src/components/molecules/IntegrationSettings.tsx |
Replaced js-cookie library with custom cookie functions. |
src/components/molecules/InterpretationLog.tsx |
Integrated theme mode logic for SwipeableDrawer styling. |
src/components/molecules/NavBar.tsx |
Enhanced styling with darkMode state and new helper functions. |
src/components/molecules/RunContent.tsx |
Updated Tabs component styles for theme responsiveness. |
src/components/molecules/SaveRecording.tsx |
Changed button variant and added confirmation for existing recording names. |
src/components/organisms/BrowserContent.tsx |
Modified layout styles for full viewport usage. |
src/components/organisms/BrowserWindow.tsx |
Set explicit height for layout consistency. |
src/components/organisms/MainMenu.tsx |
Updated styles to respond to theme mode changes. |
src/components/organisms/ProxyForm.tsx |
Enhanced tab interface with theme-aware styling. |
src/components/organisms/RightSidePanel.tsx |
Updated styling based on theme mode with gradient backgrounds. |
src/context/theme-provider.tsx |
New file creating theme management context with light and dark themes. |
src/index.css |
Added empty rules for future styling. |
src/pages/Login.tsx |
Integrated dark mode styling and axios configuration changes. |
src/pages/RecordingPage.tsx |
Updated background styling based on theme mode. |
src/pages/Register.tsx |
Enhanced styling for dark mode responsiveness. |
src/pages/PageWrapper.tsx |
Improved conditional rendering for NavBar. |
Possibly related PRs
- #325: The changes in this PR do not relate to the theming context or the
ThemeProviderandThemeModeProvidermodifications in the main PR. The focus is on Docker setup instructions, which is unrelated to the component structure or theming changes.
Suggested labels
Type: Enhancement
Poem
🐰 A Rabbit's Ode to Dark Mode Magic
In pixels of black and whispers of light,
Our app now dances from morning to night
With themes that shimmer and colors that gleam,
A coding adventure, a developer's dream!
Dark mode activated, oh what a delight! 🌙✨
📜 Recent review details
Configuration used: CodeRabbit UI Review profile: CHILL Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 56e2d78f222acee9482e1fe88f4b8f04f79561bd and 7c442802093e0087e9ce1c6eb1ceaee064f09494.
📒 Files selected for processing (1)
src/components/organisms/BrowserWindow.tsx(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- src/components/organisms/BrowserWindow.tsx
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR. (Beta)@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.