Skip to content

Commit

Permalink
fix: fixed dark mode issues
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Jan 29, 2023
1 parent 11c6027 commit 7839e93
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Wrapper = styled.div`
border: solid 1px transparent;
outline: none !important;
color: ${(props) => props.theme.table.input.color};
background: transparent;
&:focus {
outline: none !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const Wrapper = styled.div`
border: solid 1px transparent;
outline: none !important;
color: ${(props) => props.theme.table.input.color};
background: transparent;
&:focus {
outline: none !important;
Expand Down
6 changes: 6 additions & 0 deletions packages/bruno-app/src/components/RequestPane/Script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ import { useDispatch } from 'react-redux';
import CodeEditor from 'components/CodeEditor';
import { updateRequestScript } from 'providers/ReduxStore/slices/collections';
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
import { useTheme } from 'providers/Theme';
import StyledWrapper from './StyledWrapper';

const Script = ({ item, collection }) => {
const dispatch = useDispatch();
const script = item.draft ? get(item, 'draft.request.script') : get(item, 'request.script');

const {
storedTheme
} = useTheme();

const onEdit = (value) => {
dispatch(
updateRequestScript({
Expand All @@ -27,6 +32,7 @@ const Script = ({ item, collection }) => {
<StyledWrapper className="w-full">
<CodeEditor
collection={collection} value={script || ''}
theme={storedTheme}
onEdit={onEdit}
mode='javascript'
onRun={onRun}
Expand Down
6 changes: 6 additions & 0 deletions packages/bruno-app/src/components/RequestPane/Tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ import { useDispatch } from 'react-redux';
import CodeEditor from 'components/CodeEditor';
import { updateRequestTests } from 'providers/ReduxStore/slices/collections';
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
import { useTheme } from 'providers/Theme';
import StyledWrapper from './StyledWrapper';

const Tests = ({ item, collection }) => {
const dispatch = useDispatch();
const tests = item.draft ? get(item, 'draft.request.tests') : get(item, 'request.tests');

const {
storedTheme
} = useTheme();

const onEdit = (value) => {
dispatch(
updateRequestTests({
Expand All @@ -27,6 +32,7 @@ const Tests = ({ item, collection }) => {
<StyledWrapper className="w-full">
<CodeEditor
collection={collection} value={tests || ''}
theme={storedTheme}
onEdit={onEdit}
mode='javascript'
onRun={onRun}
Expand Down
2 changes: 1 addition & 1 deletion packages/bruno-app/src/themes/dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const darkTheme = {
},
striped: '#2A2D2F',
input: {
color: '#555555'
color: '#ccc'
}
},

Expand Down

0 comments on commit 7839e93

Please sign in to comment.