🚧 update background color

This commit is contained in:
Nate Sesti 2023-12-11 17:18:33 -08:00
parent 4ddec0b6ad
commit 1611dcc8a9
7 changed files with 30 additions and 15 deletions

View file

@ -100,7 +100,7 @@ function App() {
return (
<SearchContext.Provider value={[miniSearch, firstResults]}>
<RouterProvider router={router} />;
<RouterProvider router={router} />
</SearchContext.Provider>
);
}

View file

@ -8,7 +8,12 @@ import { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Outlet, useLocation, useNavigate } from "react-router-dom";
import styled from "styled-components";
import { defaultBorderRadius, secondaryDark, vscForeground } from ".";
import {
defaultBorderRadius,
secondaryDark,
vscBackground,
vscForeground,
} from ".";
import useHistory from "../hooks/useHistory";
import { defaultModelSelector } from "../redux/selectors/modelSelectors";
import {
@ -32,6 +37,7 @@ const LayoutTopDiv = styled.div`
border-radius: ${defaultBorderRadius};
scrollbar-base-color: transparent;
scrollbar-width: thin;
background-color: ${vscBackground};
& * {
::-webkit-scrollbar {

View file

@ -4,13 +4,13 @@ import { getFontSize } from "../util";
export const defaultBorderRadius = "5px";
export const lightGray = "#646464";
export const vscBackgroundTransparent = "#1e1e1ede";
export const buttonColor = "#1bbe84";
export const buttonColorHover = "#1bbe84a8";
export const secondaryDark =
"var(--vscode-list-hoverBackground, rgb(45 45 45))";
export const vscBackground = "var(--vscode-editor-background, rgb(30 30 30))";
// export const vscBackground = "var(--vscode-editor-background, rgb(30 30 30))";
export const vscBackground = "var(--vscode-sideBar-background, rgb(30 30 30))";
export const vscForeground = "var(--vscode-editor-foreground, #fff)";
if (typeof document !== "undefined") {

View file

@ -71,8 +71,6 @@ import CodeSnippetPreview from "../markdown/CodeSnippetPreview";
import StyledMarkdownPreview from "../markdown/StyledMarkdownPreview";
import PillButton from "./PillButton";
const SEARCH_INDEX_NAME = "continue_context_items";
const ICONS_FOR_DROPDOWN: { [key: string]: any } = {
file: FolderIcon,
terminal: CommandLineIcon,
@ -365,8 +363,8 @@ interface ComboBoxProps {
onToggleAddContext?: () => void;
isMainInput: boolean;
isLastUserInput: boolean;
value?: string;
active?: boolean;
isToggleOpen?: boolean;
index?: number;
onDelete?: () => void;
@ -1141,8 +1139,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
width: "fit-content",
}}
>
{props.active ? "Using" : "Used"} {selectedContextItems.length}{" "}
context item
{active ? "Using" : "Used"} {selectedContextItems.length} context
item
{selectedContextItems.length === 1 ? "" : "s"}
</div>
)
@ -1195,10 +1193,10 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
ref={divRef}
>
<GradientBorder
loading={props.active}
loading={active}
isFirst={false}
isLast={false}
borderColor={props.active ? undefined : vscBackground}
borderColor={active ? undefined : vscBackground}
borderRadius={defaultBorderRadius}
>
<MainTextInput

View file

@ -110,6 +110,7 @@ function useChatHandler(dispatch: Dispatch) {
dispatch(resubmitAtIndex({ index, content: input }));
} else {
newHistory = [...history, historyItem];
console.log("Submitting message");
dispatch(submitMessage(message));
}

View file

@ -19,8 +19,18 @@ body,
#root {
height: 100%;
background-color: var(--vscode-editor-background);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
}
body {

View file

@ -431,7 +431,7 @@ function GUI(props: GUIProps) {
<ComboBox
isMainInput={false}
value={item.message.content}
active={active && isLastUserInput(index)}
isLastUserInput={isLastUserInput(index)}
onEnter={(e, value) => {
if (value) {
dispatch(resubmitAtIndex({ index, content: value }));
@ -516,7 +516,7 @@ function GUI(props: GUIProps) {
</StopButton>
) : (
<ComboBox
active={false}
isLastUserInput={false}
isMainInput={true}
ref={mainTextInputRef}
onEnter={(e, _) => {