Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dark mode to torchci #6198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add dark mode to torchci #6198

wants to merge 1 commit into from

Conversation

wdvr
Copy link
Contributor

@wdvr wdvr commented Jan 22, 2025

Add dark mode functionality to the LogViewer and MyApp components.

  • LogViewer Component

    • Add a state variable isDarkMode to manage the dark mode state.
    • Add a button to toggle dark mode.
    • Apply dark mode styles conditionally based on the isDarkMode state.
    • Use window.matchMedia to detect system dark mode settings and set the initial state of isDarkMode accordingly.
  • MyApp Component

    • Add a state variable isDarkMode to manage the dark mode state.
    • Add a button to toggle dark mode.
    • Pass the isDarkMode state as a prop to the Component.
    • Use window.matchMedia to detect system dark mode settings and set the initial state of isDarkMode accordingly.
  • Global CSS

    • Add CSS styles for dark mode.

For more details, open the Copilot Workspace session.

Add dark mode functionality to the LogViewer and MyApp components.

* **LogViewer Component**
  - Add a state variable `isDarkMode` to manage the dark mode state.
  - Add a button to toggle dark mode.
  - Apply dark mode styles conditionally based on the `isDarkMode` state.
  - Use `window.matchMedia` to detect system dark mode settings and set the initial state of `isDarkMode` accordingly.

* **MyApp Component**
  - Add a state variable `isDarkMode` to manage the dark mode state.
  - Add a button to toggle dark mode.
  - Pass the `isDarkMode` state as a prop to the `Component`.
  - Use `window.matchMedia` to detect system dark mode settings and set the initial state of `isDarkMode` accordingly.

* **Global CSS**
  - Add CSS styles for dark mode.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pytorch/test-infra?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Jan 22, 2025

@wdvr is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 22, 2025
Copy link

vercel bot commented Jan 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
torchci ❌ Failed (Inspect) Jan 22, 2025 0:05am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants