mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 07:09:01 +01:00
fix: fixed dark mode issues
This commit is contained in:
parent
11c60273b4
commit
7839e93a57
@ -30,6 +30,7 @@ const Wrapper = styled.div`
|
|||||||
border: solid 1px transparent;
|
border: solid 1px transparent;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
color: ${(props) => props.theme.table.input.color};
|
color: ${(props) => props.theme.table.input.color};
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
@ -30,6 +30,8 @@ const Wrapper = styled.div`
|
|||||||
border: solid 1px transparent;
|
border: solid 1px transparent;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
color: ${(props) => props.theme.table.input.color};
|
color: ${(props) => props.theme.table.input.color};
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
|
@ -4,12 +4,17 @@ import { useDispatch } from 'react-redux';
|
|||||||
import CodeEditor from 'components/CodeEditor';
|
import CodeEditor from 'components/CodeEditor';
|
||||||
import { updateRequestScript } from 'providers/ReduxStore/slices/collections';
|
import { updateRequestScript } from 'providers/ReduxStore/slices/collections';
|
||||||
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
|
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
|
||||||
|
import { useTheme } from 'providers/Theme';
|
||||||
import StyledWrapper from './StyledWrapper';
|
import StyledWrapper from './StyledWrapper';
|
||||||
|
|
||||||
const Script = ({ item, collection }) => {
|
const Script = ({ item, collection }) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const script = item.draft ? get(item, 'draft.request.script') : get(item, 'request.script');
|
const script = item.draft ? get(item, 'draft.request.script') : get(item, 'request.script');
|
||||||
|
|
||||||
|
const {
|
||||||
|
storedTheme
|
||||||
|
} = useTheme();
|
||||||
|
|
||||||
const onEdit = (value) => {
|
const onEdit = (value) => {
|
||||||
dispatch(
|
dispatch(
|
||||||
updateRequestScript({
|
updateRequestScript({
|
||||||
@ -27,6 +32,7 @@ const Script = ({ item, collection }) => {
|
|||||||
<StyledWrapper className="w-full">
|
<StyledWrapper className="w-full">
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
collection={collection} value={script || ''}
|
collection={collection} value={script || ''}
|
||||||
|
theme={storedTheme}
|
||||||
onEdit={onEdit}
|
onEdit={onEdit}
|
||||||
mode='javascript'
|
mode='javascript'
|
||||||
onRun={onRun}
|
onRun={onRun}
|
||||||
|
@ -4,12 +4,17 @@ import { useDispatch } from 'react-redux';
|
|||||||
import CodeEditor from 'components/CodeEditor';
|
import CodeEditor from 'components/CodeEditor';
|
||||||
import { updateRequestTests } from 'providers/ReduxStore/slices/collections';
|
import { updateRequestTests } from 'providers/ReduxStore/slices/collections';
|
||||||
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
|
import { sendRequest, saveRequest } from 'providers/ReduxStore/slices/collections/actions';
|
||||||
|
import { useTheme } from 'providers/Theme';
|
||||||
import StyledWrapper from './StyledWrapper';
|
import StyledWrapper from './StyledWrapper';
|
||||||
|
|
||||||
const Tests = ({ item, collection }) => {
|
const Tests = ({ item, collection }) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const tests = item.draft ? get(item, 'draft.request.tests') : get(item, 'request.tests');
|
const tests = item.draft ? get(item, 'draft.request.tests') : get(item, 'request.tests');
|
||||||
|
|
||||||
|
const {
|
||||||
|
storedTheme
|
||||||
|
} = useTheme();
|
||||||
|
|
||||||
const onEdit = (value) => {
|
const onEdit = (value) => {
|
||||||
dispatch(
|
dispatch(
|
||||||
updateRequestTests({
|
updateRequestTests({
|
||||||
@ -27,6 +32,7 @@ const Tests = ({ item, collection }) => {
|
|||||||
<StyledWrapper className="w-full">
|
<StyledWrapper className="w-full">
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
collection={collection} value={tests || ''}
|
collection={collection} value={tests || ''}
|
||||||
|
theme={storedTheme}
|
||||||
onEdit={onEdit}
|
onEdit={onEdit}
|
||||||
mode='javascript'
|
mode='javascript'
|
||||||
onRun={onRun}
|
onRun={onRun}
|
||||||
|
@ -215,7 +215,7 @@ const darkTheme = {
|
|||||||
},
|
},
|
||||||
striped: '#2A2D2F',
|
striped: '#2A2D2F',
|
||||||
input: {
|
input: {
|
||||||
color: '#555555'
|
color: '#ccc'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user