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

Improve visibility of input fields #973

Merged
merged 2 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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