From 2ba6e4823dfaa089bff76a35ccbfa854da33fcd1 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sun, 23 Oct 2022 05:32:47 +0530 Subject: [PATCH] feat: dark-mode (response status and support modal) --- .../src/components/BrunoSupport/StyledWrapper.js | 2 +- .../src/components/BrunoSupport/index.js | 11 +++++------ .../src/components/Dropdown/StyledWrapper.js | 4 ++++ .../Environments/EnvironmentSelector/index.js | 2 +- .../src/components/ResponsePane/Overlay/index.js | 2 +- .../ResponsePane/Placeholder/StyledWrapper.js | 4 ++++ .../components/ResponsePane/Placeholder/index.js | 2 +- .../ResponsePane/ResponseSize/StyledWrapper.js | 2 +- .../ResponsePane/ResponseTime/StyledWrapper.js | 2 +- .../ResponsePane/StatusCode/StyledWrapper.js | 8 ++++++++ .../components/ResponsePane/StatusCode/index.js | 15 ++++++++------- .../components/Sidebar/TitleBar/StyledWrapper.js | 2 +- packages/bruno-app/src/themes/dark.js | 7 ++++++- packages/bruno-app/src/themes/light.js | 7 ++++++- 14 files changed, 48 insertions(+), 22 deletions(-) diff --git a/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js b/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js index b919eda20..0d62440d7 100644 --- a/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js +++ b/packages/bruno-app/src/components/BrunoSupport/StyledWrapper.js @@ -1,7 +1,7 @@ import styled from 'styled-components'; const StyledWrapper = styled.div` - color: var(--color-text); + color: ${(props) => props.theme.text}; .collection-options { svg { position: relative; diff --git a/packages/bruno-app/src/components/BrunoSupport/index.js b/packages/bruno-app/src/components/BrunoSupport/index.js index 95d4c5cbd..d3c3ebb85 100644 --- a/packages/bruno-app/src/components/BrunoSupport/index.js +++ b/packages/bruno-app/src/components/BrunoSupport/index.js @@ -1,8 +1,7 @@ import React from 'react'; import Modal from 'components/Modal/index'; -import { IconSpeakerphone, IconBrandTwitter } from '@tabler/icons'; +import { IconSpeakerphone, IconBrandTwitter, IconBrandGithub } from '@tabler/icons'; import StyledWrapper from './StyledWrapper'; -import GithubSvg from 'assets/github.svg'; const BrunoSupport = ({ onClose }) => { return ( @@ -10,19 +9,19 @@ const BrunoSupport = ({ onClose }) => {
- + Report Issues
- - + + Github
- + Twitter diff --git a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js index 05de1d1c2..cdfa51377 100644 --- a/packages/bruno-app/src/components/Dropdown/StyledWrapper.js +++ b/packages/bruno-app/src/components/Dropdown/StyledWrapper.js @@ -40,6 +40,10 @@ const Wrapper = styled.div` &:hover { background-color: ${(props) => props.theme.dropdown.hoverBg}; } + + &.border-top { + border-top: solid 1px ${(props) => props.theme.dropdown.seperator}; + } } } } diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js index 9cc749166..311648cc1 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js @@ -65,7 +65,7 @@ const EnvironmentSelector = ({ collection }) => { > No Environment
-
setOpenSettingsModal(true)}> +
setOpenSettingsModal(true)}>
diff --git a/packages/bruno-app/src/components/ResponsePane/Overlay/index.js b/packages/bruno-app/src/components/ResponsePane/Overlay/index.js index 21e2d31ac..8145a2b50 100644 --- a/packages/bruno-app/src/components/ResponsePane/Overlay/index.js +++ b/packages/bruno-app/src/components/ResponsePane/Overlay/index.js @@ -23,7 +23,7 @@ const ResponseLoadingOverlay = ({ item, collection }) => {