diff --git a/packages/bruno-app/src/components/ApiSpecPanel/FileEditor/CodeEditor/StyledWrapper.js b/packages/bruno-app/src/components/ApiSpecPanel/FileEditor/CodeEditor/StyledWrapper.js index 320a8f6c1..57be41098 100644 --- a/packages/bruno-app/src/components/ApiSpecPanel/FileEditor/CodeEditor/StyledWrapper.js +++ b/packages/bruno-app/src/components/ApiSpecPanel/FileEditor/CodeEditor/StyledWrapper.js @@ -55,10 +55,10 @@ const StyledWrapper = styled.div` } .cm-variable-valid { - color: green; + color: ${(props) => props.theme.codemirror.variable.valid}; } .cm-variable-invalid { - color: red; + color: ${(props) => props.theme.codemirror.variable.invalid}; } `; diff --git a/packages/bruno-app/src/components/CodeEditor/StyledWrapper.js b/packages/bruno-app/src/components/CodeEditor/StyledWrapper.js index c587661a7..314eaf371 100644 --- a/packages/bruno-app/src/components/CodeEditor/StyledWrapper.js +++ b/packages/bruno-app/src/components/CodeEditor/StyledWrapper.js @@ -36,12 +36,12 @@ const StyledWrapper = styled.div` /* Style line numbers when there's a lint issue */ .CodeMirror-lint-line-error .CodeMirror-linenumber { - color: #d32f2f !important; + color: ${(props) => props.theme.colors.text.danger} !important; text-decoration: underline; } .CodeMirror-lint-line-warning .CodeMirror-linenumber { - color: #f57c00 !important; + color: ${(props) => props.theme.colors.text.warning} !important; text-decoration: underline; } @@ -138,10 +138,10 @@ const StyledWrapper = styled.div` /* Variable validation colors */ .cm-variable-valid { - color: #5fad89 !important; /* Soft sage */ + color: ${(props) => props.theme.codemirror.variable.valid} !important; } .cm-variable-invalid { - color: #d17b7b !important; /* Soft coral */ + color: ${(props) => props.theme.codemirror.variable.invalid} !important; } .CodeMirror-search-hint { diff --git a/packages/bruno-app/src/components/EditableTable/StyledWrapper.js b/packages/bruno-app/src/components/EditableTable/StyledWrapper.js index 98b307d97..f980560ed 100644 --- a/packages/bruno-app/src/components/EditableTable/StyledWrapper.js +++ b/packages/bruno-app/src/components/EditableTable/StyledWrapper.js @@ -83,7 +83,6 @@ const StyledWrapper = styled.div` } .tooltip-mod { - font-size: 11px !important; max-width: 200px !important; } diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js index b356ab017..4b062d3d3 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js @@ -76,7 +76,6 @@ const Wrapper = styled.div` } .tooltip-mod { - font-size: 11px !important; max-width: 200px !important; } diff --git a/packages/bruno-app/src/components/FilePickerEditor/StyledWrapper.js b/packages/bruno-app/src/components/FilePickerEditor/StyledWrapper.js index 418b3ca9c..959f06f32 100644 --- a/packages/bruno-app/src/components/FilePickerEditor/StyledWrapper.js +++ b/packages/bruno-app/src/components/FilePickerEditor/StyledWrapper.js @@ -4,6 +4,8 @@ const StyledWrapper = styled.div` display: flex; align-items: center; width: 100%; + overflow: hidden; + min-width: 0; .file-picker-btn { display: flex; @@ -18,6 +20,9 @@ const StyledWrapper = styled.div` transition: color 0.15s ease; font-size: 12px; white-space: nowrap; + overflow: hidden; + min-width: 0; + max-width: 100%; &:hover { color: ${(props) => props.theme.text} !important; @@ -30,6 +35,7 @@ const StyledWrapper = styled.div` &.icon-only { padding: 4px; + flex-shrink: 0; } &.icon-right { @@ -39,6 +45,9 @@ const StyledWrapper = styled.div` span { line-height: 1; + overflow: hidden; + text-overflow: ellipsis; + min-width: 0; } .label { diff --git a/packages/bruno-app/src/components/ManageWorkspace/index.js b/packages/bruno-app/src/components/ManageWorkspace/index.js index f0cd0cd4c..277df57d0 100644 --- a/packages/bruno-app/src/components/ManageWorkspace/index.js +++ b/packages/bruno-app/src/components/ManageWorkspace/index.js @@ -14,6 +14,7 @@ import DeleteWorkspace from './DeleteWorkspace'; import StyledWrapper from './StyledWrapper'; import MenuDropdown from 'ui/MenuDropdown/index'; import Button from 'ui/Button'; +import { getRevealInFolderLabel } from 'utils/common/platform'; const ManageWorkspace = () => { const dispatch = useDispatch(); @@ -133,7 +134,7 @@ const ManageWorkspace = () => { onClick={() => handleShowInFolder(workspace)} > - Show in folder + {getRevealInFolderLabel()} )} {!isDefault && ( diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/StyledWrapper.js index a9173ed0d..6b6ef3620 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/StyledWrapper.js @@ -19,18 +19,18 @@ const StyledWrapper = styled.div` border: none !important; border-bottom: none !important; margin-right: 0; - + &:hover { background-color: ${(props) => rgba(props.theme.primary.solid, 0.1)}; } - + &.active { background-color: ${(props) => { return props.theme.mode === 'dark' ? rgba(props.theme.primary.solid, 0.2) : rgba(props.theme.primary.solid, 0.1); }}; - color: ${(props) => props.theme.primary.solid} !important; + color: ${(props) => props.theme.primary.text} !important; border-bottom: none !important; font-weight: normal !important; } @@ -57,7 +57,7 @@ const StyledWrapper = styled.div` padding: 6px 10px; } } - + .additional-parameter-sends-in-selector { select { height: 32px; @@ -65,14 +65,14 @@ const StyledWrapper = styled.div` border: 1px solid ${(props) => props.theme.input.border}; border-radius: 4px; padding: 0 8px; - + &:focus { outline: none; border-color: ${(props) => props.theme.primary.solid}; } } } - + .add-additional-param-actions { &:hover { color: ${(props) => props.theme.primary.solid}; diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js index 02560b8d1..b2f9adbb2 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/StyledWrapper.js @@ -7,7 +7,7 @@ const Wrapper = styled.div` } .oauth2-icon { - color: ${(props) => props.theme.primary.solid}; + color: ${(props) => props.theme.primary.text}; } label { diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js index fb40602d5..4ed2520f5 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/StyledWrapper.js @@ -7,7 +7,7 @@ const Wrapper = styled.div` } .oauth2-icon { - color: ${(props) => props.theme.primary.solid}; + color: ${(props) => props.theme.primary.text}; } label { diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/GrantTypeSelector/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/GrantTypeSelector/StyledWrapper.js index dea907702..b53987535 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/GrantTypeSelector/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/GrantTypeSelector/StyledWrapper.js @@ -7,7 +7,7 @@ const Wrapper = styled.div` } .oauth2-icon { - color: ${(props) => props.theme.primary.solid}; + color: ${(props) => props.theme.primary.text}; } font-size: ${(props) => props.theme.font.size.base}; diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js index be76824c8..851594cac 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/StyledWrapper.js @@ -7,7 +7,7 @@ const Wrapper = styled.div` } .oauth2-icon { - color: ${(props) => props.theme.primary.solid}; + color: ${(props) => props.theme.primary.text}; } label { @@ -62,7 +62,7 @@ const Wrapper = styled.div` padding: 0.2rem 0.6rem !important; } } - + .checkbox-label { color: ${(props) => props.theme.colors.text.primary}; user-select: none; diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js index 033c74e8b..1591a5be6 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Oauth2ActionButtons/index.js @@ -133,7 +133,7 @@ const Oauth2ActionButtons = ({ item, request, collection, url: accessTokenUrl, c }; return ( -
+
diff --git a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js index 0e295e055..77648f6c6 100644 --- a/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js +++ b/packages/bruno-app/src/components/Sidebar/ImportCollectionLocation/index.js @@ -163,7 +163,7 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, rawData, format }) => return ( props.theme.tabs.secondary.inactive.color}; + transition: all 0.15s ease; + + &:hover { + background: ${(props) => props.theme.tabs.secondary.inactive.bg}; + } + + &.active { + background: ${(props) => props.theme.tabs.secondary.active.bg}; + color: ${(props) => props.theme.tabs.secondary.active.color}; + } + } +`; + +export default StyledWrapper; diff --git a/packages/bruno-app/src/components/Tabs/index.js b/packages/bruno-app/src/components/Tabs/index.js index 97d5219b0..15f4890be 100644 --- a/packages/bruno-app/src/components/Tabs/index.js +++ b/packages/bruno-app/src/components/Tabs/index.js @@ -1,42 +1,29 @@ import React, { createContext, useContext } from 'react'; -import { useTheme } from 'providers/Theme'; +import classnames from 'classnames'; +import StyledWrapper from './StyledWrapper'; const TabsContext = createContext(); export const Tabs = ({ value, onValueChange, children, className = '' }) => { return ( -
{children}
+ {children}
); }; export const TabsList = ({ children, className = '' }) => { - const { theme } = useTheme(); - - return ( -
- {children} -
- ); + return
{children}
; }; export const TabsTrigger = ({ value: triggerValue, children, className = '' }) => { const { value, onValueChange } = useContext(TabsContext); - const { theme } = useTheme(); const isActive = value === triggerValue; return ( diff --git a/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js b/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js index c726b83b7..fb9a1d2e7 100644 --- a/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js +++ b/packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/EnvironmentVariables/StyledWrapper.js @@ -75,7 +75,6 @@ const Wrapper = styled.div` } .tooltip-mod { - font-size: 11px !important; max-width: 200px !important; } diff --git a/packages/bruno-app/src/components/WorkspaceHome/index.js b/packages/bruno-app/src/components/WorkspaceHome/index.js index 690f376a5..db27824b0 100644 --- a/packages/bruno-app/src/components/WorkspaceHome/index.js +++ b/packages/bruno-app/src/components/WorkspaceHome/index.js @@ -10,6 +10,7 @@ import WorkspaceEnvironments from './WorkspaceEnvironments'; import WorkspaceTabs from 'components/WorkspaceTabs'; import StyledWrapper from './StyledWrapper'; import Dropdown from 'components/Dropdown'; +import { getRevealInFolderLabel } from 'utils/common/platform'; const WorkspaceHome = () => { const dispatch = useDispatch(); @@ -225,7 +226,7 @@ const WorkspaceHome = () => {
- Show in Folder + {getRevealInFolderLabel()}
diff --git a/packages/bruno-app/src/globalStyles.js b/packages/bruno-app/src/globalStyles.js index 31421964e..ac675304d 100644 --- a/packages/bruno-app/src/globalStyles.js +++ b/packages/bruno-app/src/globalStyles.js @@ -19,6 +19,18 @@ const GlobalStyle = createGlobalStyle` color: ${(props) => props.theme.colors.text.muted}; } + .tooltip-mod { + background-color: ${(props) => props.theme.infoTip.bg} !important; + color: ${(props) => props.theme.text} !important; + border: 1px solid ${(props) => props.theme.infoTip.border} !important; + box-shadow: ${(props) => props.theme.infoTip.boxShadow} !important; + font-size: ${(props) => props.theme.font.size.xs} !important; + padding: 4px 8px !important; + border-radius: 4px !important; + opacity: 1 !important; + z-index: 9999 !important; + } + .btn { text-align: center; white-space: nowrap; diff --git a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js index f7c45c024..e78be36e9 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-frappe.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-frappe.js @@ -370,7 +370,7 @@ const catppuccinFrappeTheme = { color: colors.TEXT }, inactive: { - bg: colors.SURFACE1, + bg: colors.SURFACE0, color: colors.SUBTEXT0 } } diff --git a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js index 05167715a..3afad323e 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-macchiato.js @@ -370,7 +370,7 @@ const catppuccinMacchiatoTheme = { color: colors.TEXT }, inactive: { - bg: colors.SURFACE1, + bg: colors.SURFACE0, color: colors.SUBTEXT0 } } diff --git a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js index 43779aba1..2a9cfc837 100644 --- a/packages/bruno-app/src/themes/dark/catppuccin-mocha.js +++ b/packages/bruno-app/src/themes/dark/catppuccin-mocha.js @@ -370,7 +370,7 @@ const catppuccinMochaTheme = { color: colors.TEXT }, inactive: { - bg: colors.SURFACE1, + bg: colors.SURFACE0, color: colors.SUBTEXT0 } } diff --git a/packages/bruno-app/src/themes/dark/dark-monochrome.js b/packages/bruno-app/src/themes/dark/dark-monochrome.js index 0b7b61a98..6a5d40756 100644 --- a/packages/bruno-app/src/themes/dark/dark-monochrome.js +++ b/packages/bruno-app/src/themes/dark/dark-monochrome.js @@ -353,12 +353,12 @@ const darkMonochromeTheme = { }, secondary: { active: { - bg: '#2D2D2D', + bg: '#3F3F3F', color: '#CCCCCC' }, inactive: { bg: '#3F3F3F', - color: '#CCCCCC' + color: '#999999' } } }, diff --git a/packages/bruno-app/src/themes/dark/dark-pastel.js b/packages/bruno-app/src/themes/dark/dark-pastel.js index 5b131e74f..8b4e9c77b 100644 --- a/packages/bruno-app/src/themes/dark/dark-pastel.js +++ b/packages/bruno-app/src/themes/dark/dark-pastel.js @@ -374,7 +374,7 @@ const darkPastelTheme = { color: colors.TEXT }, inactive: { - bg: colors.GRAY_4, + bg: colors.GRAY_3, color: colors.TEXT_MUTED } } diff --git a/packages/bruno-app/src/themes/dark/dark.js b/packages/bruno-app/src/themes/dark/dark.js index bd5415716..858ac1ca3 100644 --- a/packages/bruno-app/src/themes/dark/dark.js +++ b/packages/bruno-app/src/themes/dark/dark.js @@ -398,12 +398,12 @@ const darkTheme = { }, secondary: { active: { - bg: '#2D2D2D', - color: '#CCCCCC' + bg: palette.background.SURFACE0, + color: palette.text.BASE }, inactive: { - bg: '#3F3F3F', - color: '#CCCCCC' + bg: palette.background.SURFACE0, + color: palette.text.SUBTEXT1 } } }, diff --git a/packages/bruno-app/src/themes/dark/nord.js b/packages/bruno-app/src/themes/dark/nord.js index b094afa0e..60221478a 100644 --- a/packages/bruno-app/src/themes/dark/nord.js +++ b/packages/bruno-app/src/themes/dark/nord.js @@ -373,7 +373,7 @@ const nordTheme = { color: colors.NORD4 }, inactive: { - bg: colors.NORD3, + bg: colors.NORD2, color: colors.NORD4 } } diff --git a/packages/bruno-app/src/themes/dark/vscode.js b/packages/bruno-app/src/themes/dark/vscode.js index 214f4fa6c..eecf21c4f 100644 --- a/packages/bruno-app/src/themes/dark/vscode.js +++ b/packages/bruno-app/src/themes/dark/vscode.js @@ -79,7 +79,7 @@ const vscodeDarkTheme = { primary: { solid: colors.BRAND, - text: colors.TEXT_LINK, + text: colors.BRAND_TEXT, strong: '#0098ff', subtle: '#005a9e' }, @@ -376,7 +376,7 @@ const vscodeDarkTheme = { color: colors.TEXT }, inactive: { - bg: colors.GRAY_4, + bg: colors.GRAY_3, color: colors.TEXT_MUTED } } diff --git a/packages/bruno-app/src/themes/light/catppuccin-latte.js b/packages/bruno-app/src/themes/light/catppuccin-latte.js index 5e1bea75f..19c47f591 100644 --- a/packages/bruno-app/src/themes/light/catppuccin-latte.js +++ b/packages/bruno-app/src/themes/light/catppuccin-latte.js @@ -363,7 +363,7 @@ const catppuccinLatteTheme = { }, secondary: { active: { - bg: colors.BASE, + bg: colors.SURFACE0, color: colors.TEXT }, inactive: { diff --git a/packages/bruno-app/src/themes/light/light-monochrome.js b/packages/bruno-app/src/themes/light/light-monochrome.js index d51b8fde4..da19c5d57 100644 --- a/packages/bruno-app/src/themes/light/light-monochrome.js +++ b/packages/bruno-app/src/themes/light/light-monochrome.js @@ -351,7 +351,7 @@ const lightMonochromeTheme = { }, secondary: { active: { - bg: '#FFFFFF', + bg: '#ECECEE', color: '#343434' }, inactive: { diff --git a/packages/bruno-app/src/themes/light/light-pastel.js b/packages/bruno-app/src/themes/light/light-pastel.js index 1583bbe94..52bc933a7 100644 --- a/packages/bruno-app/src/themes/light/light-pastel.js +++ b/packages/bruno-app/src/themes/light/light-pastel.js @@ -367,7 +367,7 @@ const lightPastelTheme = { }, secondary: { active: { - bg: colors.WHITE, + bg: colors.GRAY_2, color: colors.TEXT }, inactive: { diff --git a/packages/bruno-app/src/themes/light/light.js b/packages/bruno-app/src/themes/light/light.js index 713059278..283d8df4c 100644 --- a/packages/bruno-app/src/themes/light/light.js +++ b/packages/bruno-app/src/themes/light/light.js @@ -387,12 +387,12 @@ const lightTheme = { }, secondary: { active: { - bg: palette.background.BASE, + bg: palette.background.SURFACE1, color: palette.text.BASE }, inactive: { - bg: palette.background.SURFACE1, - color: palette.text.BASE + bg: palette.background.SURFACE0, + color: palette.text.SUBTEXT1 } } }, diff --git a/packages/bruno-app/src/themes/light/vscode.js b/packages/bruno-app/src/themes/light/vscode.js index 03b60a392..b7687c7a4 100644 --- a/packages/bruno-app/src/themes/light/vscode.js +++ b/packages/bruno-app/src/themes/light/vscode.js @@ -371,7 +371,7 @@ const vscodeLightTheme = { }, secondary: { active: { - bg: colors.WHITE, + bg: colors.GRAY_2, color: colors.TEXT }, inactive: { diff --git a/packages/bruno-app/src/utils/common/platform.js b/packages/bruno-app/src/utils/common/platform.js index ee48e8a17..687b19c3d 100644 --- a/packages/bruno-app/src/utils/common/platform.js +++ b/packages/bruno-app/src/utils/common/platform.js @@ -40,6 +40,12 @@ export const isLinuxOS = () => { return osFamily.includes('linux') || osFamily.includes('ubuntu') || osFamily.includes('debian') || osFamily.includes('fedora') || osFamily.includes('centos') || osFamily.includes('arch'); }; +export const getRevealInFolderLabel = () => { + if (isMacOS()) return 'Reveal in Finder'; + if (isWindowsOS()) return 'Reveal in File Explorer'; + return 'Reveal in File Manager'; +}; + export const getAppInstallDate = () => { let dateString = localStorage.getItem('bruno.installedOn');