From ac0b69787dd05832aaf429ff9cde6b2b217e60b4 Mon Sep 17 00:00:00 2001 From: sanish chirayath Date: Wed, 31 Dec 2025 13:36:41 +0530 Subject: [PATCH] fix: use themes within protobuf section (#6575) * fix: use themes within protobuf section * chore: fix font weight for protobuf settings --------- Co-authored-by: Bijin A B --- .../Protobuf/StyledWrapper.js | 145 ++++++++++++++++++ .../CollectionSettings/Protobuf/index.js | 82 +++++----- 2 files changed, 186 insertions(+), 41 deletions(-) diff --git a/packages/bruno-app/src/components/CollectionSettings/Protobuf/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/Protobuf/StyledWrapper.js index 8ba4be3dc..e79566c8f 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Protobuf/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/Protobuf/StyledWrapper.js @@ -8,6 +8,151 @@ const StyledWrapper = styled.div` color: ${(props) => props.theme.colors.text.danger}; } } + + /* Section labels */ + label { + color: ${(props) => props.theme.text}; + } + + /* Tooltip icon */ + .tooltip-icon { + color: ${(props) => props.theme.colors.text.muted}; + cursor: pointer; + } + + /* Error messages */ + .error-message { + color: ${(props) => props.theme.colors.text.danger}; + background-color: ${(props) => props.theme.bg}; + border-radius: ${(props) => props.theme.border.radius.base}; + } + + /* Tables */ + table { + width: 100%; + border-collapse: collapse; + + thead { + th { + text-align: left; + font-size: ${(props) => props.theme.font.size.xs}; + font-weight: 500; + text-transform: uppercase; + letter-spacing: 0.05em; + color: ${(props) => props.theme.table.thead.color}; + border: 1px solid ${(props) => props.theme.table.border}; + padding: 0.5rem 0.75rem; + + &.text-right { + text-align: right; + } + } + } + + tbody { + td { + border: 1px solid ${(props) => props.theme.table.border}; + padding: 0.5rem 0.75rem; + + &.text-center { + text-align: center; + } + + &.text-right { + text-align: right; + } + } + } + } + + /* File/Directory icons */ + .file-icon, + .folder-icon { + color: ${(props) => props.theme.colors.text.muted}; + } + + /* File/Directory names */ + .file-name, + .directory-name { + font-weight: 500; + color: ${(props) => props.theme.text}; + } + + /* Path text */ + .path-text { + font-size: ${(props) => props.theme.font.size.xs}; + color: ${(props) => props.theme.colors.text.muted}; + font-family: monospace; + } + + /* Empty state */ + .empty-state { + .empty-icon { + color: ${(props) => props.theme.colors.text.muted}; + } + + .empty-text { + color: ${(props) => props.theme.colors.text.muted}; + } + } + + /* Invalid file indicator */ + .invalid-indicator { + color: ${(props) => props.theme.colors.text.danger}; + } + + /* Action buttons */ + .action-button { + padding: 0.25rem; + border-radius: ${(props) => props.theme.border.radius.base}; + transition: all 0.2s; + + &.replace-button { + color: ${(props) => props.theme.colors.text.danger}; + + &:hover { + color: ${(props) => props.theme.colors.text.danger}; + background-color: ${(props) => props.theme.colors.bg.danger}20; + } + } + + &.remove-button { + color: ${(props) => props.theme.colors.text.muted}; + + &:hover { + color: ${(props) => props.theme.text}; + background-color: ${(props) => props.theme.dropdown.hoverBg}; + } + } + } + + /* Checkbox */ + input[type='checkbox'] { + cursor: pointer; + accent-color: ${(props) => props.theme.colors.accent}; + border-color: ${(props) => props.theme.table.border}; + + &:focus { + outline: none; + border-color: ${(props) => props.theme.primary.solid}; + } + } + + /* Add button */ + .btn-add-param { + color: ${(props) => props.theme.textLink}; + padding-right: 0.5rem; + padding-top: 0.75rem; + padding-bottom: 0.75rem; + margin-top: 0.5rem; + user-select: none; + cursor: pointer; + transition: color 0.2s; + + &:hover { + color: ${(props) => props.theme.primary.solid}; + } + } `; export default StyledWrapper; diff --git a/packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js b/packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js index 577c5d7d0..0bc73f4f6 100644 --- a/packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/Protobuf/index.js @@ -113,12 +113,12 @@ const ProtobufSettings = ({ collection }) => {
-