Skip to content

Commit

Permalink
fix(#39): some MUI Components not changing in Dark Mode (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: svrnm <neumanns@cisco.com>

Signed-off-by: svrnm <neumanns@cisco.com>
  • Loading branch information
svrnm committed Nov 30, 2022
1 parent 208a57f commit d38e607
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/options/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ class Editor extends React.Component {
<div className="select-hotkeys">
<FormControl sx={{ m: 1, width: '95%' }} size="small">
<Select
style={{
background: 'var(--input-background-color)',
color: 'var(--mode-text-color)'
}}
renderValue={(selected) => {
if (selected.length === 0) {
return <em>Shortcut Groups...</em>
Expand Down
10 changes: 10 additions & 0 deletions styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ input {
color: var(--mode-text-color);
}

span.MuiSwitch-track {
background: var(--mode-text-color);
}

div.MuiPaper-root.MuiMenu-paper {
background: var(--input-background-color);
color: var(--mode-text-color);
}


.main-grid {
display: flex;
height: 100vh;
Expand Down

0 comments on commit d38e607

Please sign in to comment.