diff --git a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js index ee857ac61..05de1d1c2 100644 --- a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js +++ b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js @@ -33,6 +33,10 @@ const Wrapper = styled.div` padding: 0.35rem 0.6rem; cursor: pointer; + .icon { + color: ${(props) => props.theme.dropdown.iconColor}; + } + &:hover { background-color: ${(props) => props.theme.dropdown.hoverBg}; } diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js b/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js index a0f5681f5..4db3ada01 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSelector/StyledWrapper.js @@ -2,7 +2,7 @@ import styled from 'styled-components'; const Wrapper = styled.div` .current-enviroment { - background: #efefef; + background-color: ${(props) => props.theme.sidebar.workspace.bg}; border-radius: 15px; .caret { diff --git a/packages/bruno-app/src/components/Icons/Send/index.js b/packages/bruno-app/src/components/Icons/Send/index.js new file mode 100644 index 000000000..15b4fa8c9 --- /dev/null +++ b/packages/bruno-app/src/components/Icons/Send/index.js @@ -0,0 +1,17 @@ +import React from 'react'; + +const SendIcon = ({color, width}) => { + return ( + + + + + ); +} + +export default SendIcon; diff --git a/packages/bruno-app/src/components/RequestPane/QueryParams/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/QueryParams/StyledWrapper.js index b0f26f0b3..ba312fc77 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryParams/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/QueryParams/StyledWrapper.js @@ -32,6 +32,7 @@ const Wrapper = styled.div` width: 100%; border: solid 1px transparent; outline: none !important; + background-color: inherit; &:focus { outline: none !important; diff --git a/packages/bruno-app/src/components/RequestPane/QueryUrl/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/QueryUrl/StyledWrapper.js index a5abce2b7..7ec35f33e 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryUrl/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/QueryUrl/StyledWrapper.js @@ -4,18 +4,18 @@ const Wrapper = styled.div` height: 2.3rem; div.method-selector-container { - background-color: var(--color-sidebar-background); + background-color: ${(props) => props.theme.requestTabPanel.url.bg}; border-top-left-radius: 3px; border-bottom-left-radius: 3px; } div.input-container { - background-color: var(--color-sidebar-background); + background-color: ${(props) => props.theme.requestTabPanel.url.bg}; border-top-right-radius: 3px; border-bottom-right-radius: 3px; input { - background-color: var(--color-sidebar-background); + background-color: ${(props) => props.theme.requestTabPanel.url.bg}; outline: none; box-shadow: none; diff --git a/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js b/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js index 8487417ad..3fe81acd7 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js +++ b/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js @@ -3,10 +3,12 @@ import get from 'lodash/get'; import { useDispatch } from 'react-redux'; import { requestUrlChanged, updateRequestMethod } from 'providers/ReduxStore/slices/collections'; import HttpMethodSelector from './HttpMethodSelector'; +import { useTheme } from 'providers/Theme'; +import SendIcon from 'components/Icons/Send'; import StyledWrapper from './StyledWrapper'; -import SendSvg from 'assets/send.svg'; const QueryUrl = ({ item, collection, handleRun }) => { + const { theme } = useTheme(); const dispatch = useDispatch(); const method = item.draft ? get(item, 'draft.request.method') : get(item, 'request.method'); let url = item.draft ? get(item, 'draft.request.url') : get(item, 'request.url'); @@ -48,7 +50,7 @@ const QueryUrl = ({ item, collection, handleRun }) => { onChange={(event) => onUrlChange(event.target.value)} />
- +
diff --git a/packages/bruno-app/src/components/RequestPane/RequestHeaders/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/RequestHeaders/StyledWrapper.js index 3f36e4843..ef62c4a2b 100644 --- a/packages/bruno-app/src/components/RequestPane/RequestHeaders/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/RequestHeaders/StyledWrapper.js @@ -31,6 +31,7 @@ const Wrapper = styled.div` width: 100%; border: solid 1px transparent; outline: none !important; + background-color: inherit; &:focus { outline: none !important; diff --git a/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js b/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js index 12c5a7a6c..0b40c4fcb 100644 --- a/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js +++ b/packages/bruno-app/src/components/Workspaces/WorkspaceSelector/index.js @@ -49,14 +49,14 @@ const WorkspaceSelector = () => {
} placement="bottom-end">
setOpenSwitchWorkspaceModal(true)}> -
+
Switch Workspace
setOpenWorkspacesModal(true)}> -
+
Configure Workspaces diff --git a/packages/bruno-app/src/themes/dark.js b/packages/bruno-app/src/themes/dark.js index d5a17fd2d..1f5c58795 100644 --- a/packages/bruno-app/src/themes/dark.js +++ b/packages/bruno-app/src/themes/dark.js @@ -38,6 +38,7 @@ const darkTheme = { dropdown: { color: "rgb(204, 204, 204)", + iconColor: "rgb(204, 204, 204)", bg: 'rgb(48, 48, 49)', hoverBg: '#0F395E', shadow: 'rgb(0 0 0 / 36%) 0px 2px 8px', @@ -52,6 +53,19 @@ const darkTheme = { } }, + requestTabPanel: { + url: { + bg: '#3D3D3D', + icon: 'rgb(204, 204, 204)' + } + }, + + collection: { + environment: { + bg: '#3D3D3D' + } + }, + 'primary-text': '#ffffff', 'secondary-text': '#929292', 'sidebar-collection-item-active-background': '#e1e1e1', diff --git a/packages/bruno-app/src/themes/light.js b/packages/bruno-app/src/themes/light.js index 7ee9a1a9e..b7ecbdee5 100644 --- a/packages/bruno-app/src/themes/light.js +++ b/packages/bruno-app/src/themes/light.js @@ -38,6 +38,7 @@ const lightTheme = { dropdown: { color: "rgb(48 48 48)", + iconColor: "rgb(75, 85, 99)", bg: 'rgb(48, 48, 49)', hoverBg: '#e9e9e9', shadow: 'rgb(50 50 93 / 25%) 0px 6px 12px -2px, rgb(0 0 0 / 30%) 0px 3px 7px -3px', @@ -52,6 +53,18 @@ const lightTheme = { } }, + requestTabPanel: { + url: { + bg: '#f3f3f3', + icon: '#515151' + } + }, + + collection: { + environment: { + bg: '#efefef' + } + }, 'primary-text': 'rgb(52 52 52)', 'secondary-text': '#929292',