Skip to content

Commit

Permalink
Merge pull request #973 from dennis531/improve-input-visibility
Browse files Browse the repository at this point in the history
Improve visibility of input fields
  • Loading branch information
Arnei authored Feb 17, 2023
2 parents c81d8da + 034c85b commit 04cddf5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cssStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export const subtitleSelectStyle = (theme: Theme) => createTheme({
MuiSelect: {
styleOverrides: {
select: {
background: `${theme.background}`,
background: `${theme.element_bg}`,
color: `${theme.text} !important`,
},
icon: {
Expand Down
1 change: 1 addition & 0 deletions src/main/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const MainMenu: React.FC<{}> = () => {
alignItems: 'center',
padding: '20px',
overflow: 'vertical',
background: `${theme.menu_background}`,
...(flexGapReplacementStyle(30, false)),
});

Expand Down
1 change: 1 addition & 0 deletions src/redux/themeSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { darkMode, lightMode, highContrastDarkMode, highContrastLightMode } from

export interface Theme {
background: String
menu_background: String
text: String
error: String
element_bg: String
Expand Down
10 changes: 7 additions & 3 deletions src/themes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Theme } from "./redux/themeSlice";

export const lightMode: Theme = {
background: 'snow',
background: 'whitesmoke',
menu_background: 'snow',
text: '#000',
error: '#ed1741',
element_bg: 'snow',
Expand All @@ -23,7 +24,7 @@ export const lightMode: Theme = {
dropdown_border: '1px solid #ccc',
menuButton_outline: '2px solid transparent',
button_outline: 'none',
button_color: '#DDD',
button_color: '#e6e6e6',
indicator_color: '#3d3d3d',
icon_color: '#000',
waveform_filter: 'invert(0%)',
Expand All @@ -43,6 +44,7 @@ export const lightMode: Theme = {

export const darkMode: Theme = {
background: '#1C1C1C',
menu_background: '#1C1C1C',
text: 'rgba(255, 255, 255, 0.87)',
error: 'rgba(237, 23, 65, 0.8)',
element_bg: '#2b2b2b',
Expand Down Expand Up @@ -79,11 +81,12 @@ export const darkMode: Theme = {
clock_focus: '#fff',
digit_selected: '#000',
text_shadow: '2px 0 #2b2b2b, -2px 0 #2b2b2b, 0 2px #2b2b2b, 0 -2px #2b2b2b,' +
' 1px 1px #2b2b2b, -1px -1px #2b2b2b, 1px -1px #2b2b2b, -1px 1px #2b2b2b',
' 1px 1px #2b2b2b, -1px -1px #2b2b2b, 1px -1px #2b2b2b, -1px 1px #2b2b2b'
};

export const highContrastDarkMode: Theme = {
background: '#000',
menu_background: '#000',
text: '#fff',
error: '#ED1741',
element_bg: 'none',
Expand Down Expand Up @@ -125,6 +128,7 @@ export const highContrastDarkMode: Theme = {

export const highContrastLightMode: Theme = {
background: 'snow',
menu_background: 'snow',
text: '#000',
error: '#a5102d',
element_bg: 'none',
Expand Down

0 comments on commit 04cddf5

Please sign in to comment.