cleanup unused classes
This commit is contained in:
parent
a4b6457ca7
commit
6ecbeeccc5
6 changed files with 26 additions and 61 deletions
|
|
@ -75,18 +75,25 @@ class GetTheme {
|
|||
|
||||
return mapOf(
|
||||
"--vscode-editor-foreground" to defaultForegroundHex,
|
||||
"--vscode-sideBar-background" to defaultBackgroundHex,
|
||||
"--vscode-input-background" to secondaryDarkHex,
|
||||
"--vscode-editor-background" to defaultBackgroundHex,
|
||||
|
||||
"--vscode-button-background" to defaultBackgroundHex,
|
||||
"--vscode-button-foreground" to defaultForegroundHex,
|
||||
|
||||
"--vscode-list-activeSelectionBackground" to defaultBackgroundHex,
|
||||
"--vscode-focusBorder" to highlightHex,
|
||||
|
||||
"--vscode-quickInputList-focusForeground" to defaultForegroundHex,
|
||||
"--vscode-quickInput-background" to secondaryDarkHex,
|
||||
"--vscode-input-border" to "#80808080",
|
||||
|
||||
"--vscode-badge-background" to highlightHex,
|
||||
"--vscode-badge-foreground" to defaultForegroundHex,
|
||||
|
||||
"--vscode-input-background" to secondaryDarkHex,
|
||||
"--vscode-input-border" to "#80808080",
|
||||
"--vscode-sideBar-background" to defaultBackgroundHex,
|
||||
"--vscode-sideBar-border" to "#80808080",
|
||||
"--vscode-focusBorder" to highlightHex,
|
||||
|
||||
"--vscode-commandCenter-activeBorder" to highlightHex,
|
||||
"--vscode-commandCenter-inactiveBorder" to "#80808080"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export default function AddFileCombobox({
|
|||
className={({ active }) =>
|
||||
`relative flex w-full cursor-pointer px-2 py-1 text-left text-xs ${
|
||||
active
|
||||
? "bg-vsc-list-active-background text-vsc-list-active-foreground"
|
||||
? "bg-list-active text-list-active-foreground"
|
||||
: ""
|
||||
}`
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ export default function AddFileCombobox({
|
|||
</Combobox.Option>
|
||||
))
|
||||
) : (
|
||||
<div className="text-vsc-list-active-foreground0 px-2 py-1 text-xs">
|
||||
<div className="text-list-active-foreground px-2 py-1 text-xs">
|
||||
No results
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const HighlightOverlay = (props: HighlightOverlayProps) => {
|
|||
const { isCurrent, top, left, width, height } = props;
|
||||
return (
|
||||
<div
|
||||
className={isCurrent ? "bg-vsc-find-match-selected" : "bg-blue-200/30"} // bg-vsc-find-match can"t get to work
|
||||
className={isCurrent ? "bg-find-match-selected" : "bg-blue-200/30"} // bg-vsc-find-match can"t get to work
|
||||
key={`highlight-${top}-${left}`}
|
||||
style={{
|
||||
position: "absolute",
|
||||
|
|
|
|||
|
|
@ -4,10 +4,6 @@ import { getFontSize, isJetBrains } from "../util";
|
|||
export const VSC_INPUT_BACKGROUND_VAR = "--vscode-input-background";
|
||||
export const VSC_BACKGROUND_VAR = "--vscode-sideBar-background";
|
||||
export const VSC_FOREGROUND_VAR = "--vscode-editor-foreground";
|
||||
export const VSC_FOREGROUND_MUTED_VAR = "--vscode-foreground-muted";
|
||||
export const VSC_DESCRIPTION_FOREGROUND = "--vscode-descriptionForeground";
|
||||
export const VSC_INPUT_PLACEHOLDER_FOREGROUND =
|
||||
"--vscode-input-placeholderForeground";
|
||||
export const VSC_BUTTON_BACKGROUND_VAR = "--vscode-button-background";
|
||||
export const VSC_BUTTON_FOREGROUND_VAR = "--vscode-button-foreground";
|
||||
export const VSC_EDITOR_BACKGROUND_VAR = "--vscode-editor-background";
|
||||
|
|
@ -21,11 +17,6 @@ export const VSC_INPUT_BORDER_VAR = "--vscode-input-border";
|
|||
export const VSC_INPUT_BORDER_FOCUS_VAR = "--vscode-focusBorder";
|
||||
export const VSC_BADGE_BACKGROUND_VAR = "--vscode-badge-background";
|
||||
export const VSC_BADGE_FOREGROUND_VAR = "--vscode-badge-foreground";
|
||||
export const VSC_SIDEBAR_BORDER_VAR = "--vscode-sideBar-border";
|
||||
export const VSC_DIFF_REMOVED_LINE_BACKGROUND_VAR =
|
||||
"--vscode-diffEditor-removedLineBackground";
|
||||
export const VSC_DIFF_INSERTED_LINE_BACKGROUND_VAR =
|
||||
"--vscode-diffEditor-insertedLineBackground";
|
||||
export const VSC_COMMAND_CENTER_ACTIVE_BORDER_VAR =
|
||||
"--vscode-commandCenter-activeBorder";
|
||||
export const VSC_COMMAND_CENTER_INACTIVE_BORDER_VAR =
|
||||
|
|
@ -35,9 +26,6 @@ export const VSC_THEME_COLOR_VARS = [
|
|||
VSC_INPUT_BACKGROUND_VAR,
|
||||
VSC_BACKGROUND_VAR,
|
||||
VSC_FOREGROUND_VAR,
|
||||
VSC_FOREGROUND_MUTED_VAR,
|
||||
VSC_DESCRIPTION_FOREGROUND,
|
||||
VSC_INPUT_PLACEHOLDER_FOREGROUND,
|
||||
VSC_BUTTON_BACKGROUND_VAR,
|
||||
VSC_BUTTON_FOREGROUND_VAR,
|
||||
VSC_EDITOR_BACKGROUND_VAR,
|
||||
|
|
@ -48,10 +36,7 @@ export const VSC_THEME_COLOR_VARS = [
|
|||
VSC_INPUT_BORDER_VAR,
|
||||
VSC_INPUT_BORDER_FOCUS_VAR,
|
||||
VSC_BADGE_BACKGROUND_VAR,
|
||||
VSC_SIDEBAR_BORDER_VAR,
|
||||
VSC_BADGE_FOREGROUND_VAR,
|
||||
VSC_DIFF_REMOVED_LINE_BACKGROUND_VAR,
|
||||
VSC_DIFF_INSERTED_LINE_BACKGROUND_VAR,
|
||||
VSC_COMMAND_CENTER_ACTIVE_BORDER_VAR,
|
||||
VSC_COMMAND_CENTER_INACTIVE_BORDER_VAR,
|
||||
];
|
||||
|
|
@ -77,8 +62,9 @@ export const vscCommandCenterActiveBorder = `var(${VSC_COMMAND_CENTER_ACTIVE_BOR
|
|||
export const vscCommandCenterInactiveBorder = `var(${VSC_COMMAND_CENTER_INACTIVE_BORDER_VAR}, #1bbe84)`;
|
||||
|
||||
if (typeof document !== "undefined") {
|
||||
const jetbrains = isJetBrains();
|
||||
for (const colorVar of VSC_THEME_COLOR_VARS) {
|
||||
if (isJetBrains()) {
|
||||
if (jetbrains) {
|
||||
const cached = localStorage.getItem(colorVar);
|
||||
if (cached) {
|
||||
document.body.style.setProperty(colorVar, cached);
|
||||
|
|
@ -162,13 +148,6 @@ export const Button = styled.button`
|
|||
}
|
||||
`;
|
||||
|
||||
type NumberInputProps = {
|
||||
value: number;
|
||||
onChange: (value: number) => void;
|
||||
max?: number;
|
||||
min?: number;
|
||||
};
|
||||
|
||||
export const SecondaryButton = styled.button`
|
||||
padding: 6px 12px;
|
||||
margin: 8px 0;
|
||||
|
|
|
|||
|
|
@ -3,14 +3,7 @@
|
|||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
--secondary-dark: rgb(37, 37, 38);
|
||||
--vsc-background: rgb(30, 30, 30);
|
||||
--button-color: rgb(113, 28, 59);
|
||||
--button-color-hover: rgba(113, 28, 59, 0.667);
|
||||
--def-border-radius: 5px;
|
||||
--vscode-editor-background: rgb(30, 30, 30);
|
||||
--vscode-editor-foreground: rgb(197, 200, 198);
|
||||
--vscode-textBlockQuote-background: rgba(255, 255, 255, 1);
|
||||
--example-var: rgb(30, 30, 30);
|
||||
}
|
||||
|
||||
html,
|
||||
|
|
|
|||
|
|
@ -26,36 +26,22 @@ module.exports = {
|
|||
},
|
||||
colors: {
|
||||
lightgray: "#999998",
|
||||
"vsc-background": "rgb(var(--vsc-background) / <alpha-value>)",
|
||||
"secondary-dark": "rgb(var(--secondary-dark) / <alpha-value>)",
|
||||
"vsc-background": "var(--vsc-background)", // "rgb(var(--vsc-background) / <alpha-value>)",
|
||||
"vsc-input-background": "var(--vscode-input-background, rgb(45 45 45))",
|
||||
"vsc-quick-input-background":
|
||||
"var(--vscode-quickInput-background, var(--vscode-input-background, rgb(45 45 45)))",
|
||||
"vsc-background": "var(--vscode-sideBar-background, rgb(30 30 30))",
|
||||
"vsc-foreground": "var(--vscode-editor-foreground, #fff)",
|
||||
"vsc-button-background": "var(--vscode-button-background, #1bbe84)",
|
||||
"vsc-button-foreground": "var(--vscode-button-foreground, #ffffff)",
|
||||
"vsc-editor-background":
|
||||
"var(--vscode-editor-background, var(--vscode-sideBar-background, rgb(30 30 30)))",
|
||||
"vsc-list-active-background":
|
||||
"var(--vscode-list-activeSelectionBackground, #1bbe84)",
|
||||
"vsc-focus-border": "var(--vscode-focus-border, #1bbe84)",
|
||||
"vsc-list-active-foreground":
|
||||
"var(--vscode-quickInputList-focusForeground, var(--vscode-editor-foreground))",
|
||||
"vsc-input-border": "var(--vscode-input-border, #999998)",
|
||||
"vsc-input-border-focus": "var(--vscode-focusBorder, #999998)",
|
||||
"vsc-badge-background": "var(--vscode-badge-background, #1bbe84)",
|
||||
"vsc-badge-foreground": "var(--vscode-badge-foreground, #fff)",
|
||||
"vsc-sidebar-border": "var(--vscode-sideBar-border, transparent)",
|
||||
"vsc-find-match":
|
||||
"var(--vscode-editor-findMatchBackground, rgba(255, 255, 0, 0.6))",
|
||||
"vsc-find-match-selected":
|
||||
"var(--vscode-editor-findMatchHighlightBackground, rgba(255, 223, 0, 0.8))",
|
||||
"vsc-foreground-muted": "var(--vscode-foreground-muted, #999)",
|
||||
"vsc-description-foreground":
|
||||
"var(--vscode-descriptionForeground, #999)",
|
||||
"vsc-input-placeholder-foreground":
|
||||
"var(--vscode-input-placeholderForeground, #999)",
|
||||
|
||||
// I've moved a few over to the non-vsc-specific approach
|
||||
// TODO move the rest
|
||||
"find-match-selected":
|
||||
"var(--vscode-editor-findMatchHighlightBackground, rgba(255, 223, 0))",
|
||||
"list-active": "var(--vscode-list-activeSelectionBackground, #1bbe84)",
|
||||
"list-active-foreground":
|
||||
"var(--vscode-quickInputList-focusForeground, var(--vscode-editor-foreground))",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue