Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse background colors on interactive session #178165

Merged
merged 2 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions build/lib/stylelint/vscode-known-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@
"--vscode-inputValidation-warningBackground",
"--vscode-inputValidation-warningBorder",
"--vscode-inputValidation-warningForeground",
"--vscode-interactive-responseActiveBackground",
"--vscode-interactive-responseBackground",
"--vscode-interactive-responseBorder",
"--vscode-interactive-requestBackground",
"--vscode-interactive-requestBorder",
"--vscode-interactiveEditor-border",
"--vscode-interactiveEditor-shadow",
"--vscode-interactiveEditorInput-background",
Expand Down Expand Up @@ -729,4 +728,4 @@
"--z-index-run-button-container",
"--zoom-factor"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

.interactive-list .monaco-list-row:not(:first-of-type) .interactive-item-container {
border-top: 1px solid var(--vscode-interactive-responseBorder);
}

.interactive-list .monaco-list-row .monaco-tl-twistie {
/* Hide twisties */
display: none !important;
Expand Down Expand Up @@ -96,7 +92,7 @@
.interactive-list .interactive-item-container .value table,
.interactive-list .interactive-item-container .value table td,
.interactive-list .interactive-item-container .value table th {
border: 1px solid var(--vscode-interactive-responseBorder);
border: 1px solid var(--vscode-interactive-requestBorder);
border-collapse: collapse;
padding: 4px 6px;
}
Expand All @@ -114,9 +110,10 @@
overflow: hidden;
}

.interactive-list .monaco-list-row .interactive-response,
.interactive-list .monaco-list-row .interactive-welcome {
background-color: var(--vscode-interactive-responseBackground);
.interactive-list .monaco-list-row .interactive-request {
background-color: var(--vscode-interactive-requestBackground);
border-bottom: 1px solid var(--vscode-interactive-requestBorder);
border-top: 1px solid var(--vscode-interactive-requestBorder);
}

.interactive-list .monaco-list-row .value {
Expand Down Expand Up @@ -218,7 +215,7 @@
right: 10px;
height: 26px;
background-color: var(--vscode-interactive-result-editor-background-color);
border: 1px solid var(--vscode-interactive-responseBorder);
border: 1px solid var(--vscode-interactive-requestBorder);
z-index: 100;
}

Expand Down Expand Up @@ -282,7 +279,7 @@
padding: 12px 0px;
display: flex;
flex-direction: column;
border-top: solid 1px var(--vscode-interactive-responseBorder);
border-top: solid 1px var(--vscode-interactive-requestBorder);
}

.interactive-session .interactive-session-followups {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@ import { localize } from 'vs/nls';
import { registerColor } from 'vs/platform/theme/common/colorRegistry';


export const interactiveResponseBackground = registerColor(
'interactive.responseBackground',
export const interactiveRequestBackground = registerColor(
'interactive.requestBackground',
{ dark: new Color(new RGBA(255, 255, 255, 0.03)), light: new Color(new RGBA(0, 0, 0, 0.03)), hcDark: null, hcLight: null, },
localize('interactive.responseBackground', 'The resting background color of an interactive response.')
localize('interactive.requestBackground', 'The background color of an interactive request.')
);

export const interactiveResponseActiveBackground = registerColor(
'interactive.responseActiveBackground',
export const interactiveRequestBorder = registerColor(
'interactive.requestBorder',
{ dark: new Color(new RGBA(255, 255, 255, 0.10)), light: new Color(new RGBA(0, 0, 0, 0.10)), hcDark: null, hcLight: null, },
localize('interactive.responseActiveBackground', 'The active background color of an interactive response. Used when the response shows a fade out animation on load.')
);

export const interactiveResponseBorder = registerColor(
'interactive.responseBorder',
{ dark: new Color(new RGBA(255, 255, 255, 0.10)), light: new Color(new RGBA(0, 0, 0, 0.10)), hcDark: null, hcLight: null, },
localize('interactive.responseBorder', 'The border color of an interactive response.')
localize('interactive.requestBorder', 'The border color of an interactive request.')
);