From 902d9ff968f083b678a6599bb785ebfe9affad88 Mon Sep 17 00:00:00 2001 From: Abhishek S Lal Date: Fri, 2 Jan 2026 20:57:20 +0530 Subject: [PATCH] refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency (#6629) * refactor: update color references in OAuth2 components to use theme.primary.text for improved consistency * refactor: update modal size in ImportCollectionLocation component for improved consistency * refactor: set isActiveTab prop in QueryResponse component and update active color in StyledWrapper for consistency --- .../Auth/OAuth2/AdditionalParams/StyledWrapper.js | 12 ++++++------ .../Auth/OAuth2/AuthorizationCode/StyledWrapper.js | 2 +- .../Auth/OAuth2/ClientCredentials/StyledWrapper.js | 2 +- .../Auth/OAuth2/GrantTypeSelector/StyledWrapper.js | 2 +- .../Auth/OAuth2/Implicit/StyledWrapper.js | 4 ++-- .../Auth/OAuth2/Oauth2ActionButtons/index.js | 3 ++- .../Auth/OAuth2/PasswordCredentials/StyledWrapper.js | 2 +- .../GrpcQueryUrl/ProtoFileDropdown/index.js | 4 ++-- .../components/ResponsePane/QueryResponse/index.js | 1 + .../QueryResultTypeSelector/StyledWrapper.js | 2 +- .../Timeline/TimelineItem/StyledWrapper.js | 4 ++-- .../Sidebar/ImportCollectionLocation/index.js | 2 +- packages/bruno-app/src/themes/dark/vscode.js | 2 +- 13 files changed, 22 insertions(+), 20 deletions(-) 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 ( -
+