Skip to content

Commit

Permalink
Change primary dark mode color to light green.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguonly committed Mar 14, 2024
1 parent f789907 commit c44a486
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion __tests__/contexts/ThemeContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import { render, act } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import "@testing-library/jest-dom";
import { ThemeProvider, useThemeContext } from "../../src/contexts/ThemeContext";
import {
ThemeProvider,
useThemeContext,
} from "../../src/contexts/ThemeContext";

const MockComponent = () => {
const { theme, toggleDarkMode } = useThemeContext();
Expand Down
2 changes: 2 additions & 0 deletions src/pages/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ const Options: React.FC = () => {
/>
</Box>
))}
</Box>
<Box sx={{ ml: "10px" }}>
<FormGroup>
<FormControlLabel
control={
Expand Down
4 changes: 2 additions & 2 deletions src/themes/AppTheme.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { createTheme, Theme } from "@mui/material/styles";
import { amber, deepOrange } from "@mui/material/colors";
import { amber, lightGreen } from "@mui/material/colors";

const getAppTheme = (darkMode: boolean): Theme => {
return createTheme({
palette: {
mode: darkMode ? "dark" : "light",
primary: darkMode ? deepOrange : amber,
primary: darkMode ? lightGreen : amber,
},
components: {
MuiButton: {
Expand Down

0 comments on commit c44a486

Please sign in to comment.