From 27820f60c7da0697a93eca82818f40037593b3ee Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 7 Feb 2025 18:35:14 -0800 Subject: [PATCH 1/3] tutorial card updates --- gui/src/components/mainInput/TutorialCard.tsx | 66 ++++++++++--------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/gui/src/components/mainInput/TutorialCard.tsx b/gui/src/components/mainInput/TutorialCard.tsx index 3eb0da2ef..99d5eb774 100644 --- a/gui/src/components/mainInput/TutorialCard.tsx +++ b/gui/src/components/mainInput/TutorialCard.tsx @@ -16,41 +16,34 @@ interface TutorialCardProps { onClose: () => void; } -const TutorialCardDiv = styled.div` - border: 1px solid ${lightGray}; - border-radius: ${defaultBorderRadius}; - background-color: ${vscBackground}; - padding: 1rem 2.5rem 1rem 2rem; - margin: 1rem; - max-width: 28rem; - position: relative; -`; - const CloseButton = styled.button` border: none; background-color: ${vscBackground}; color: ${lightGray}; position: absolute; - top: 0.4rem; - right: 0.5rem; - padding: 0.25rem; - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; `; export function TutorialCard({ onClose }: TutorialCardProps) { const ideMessenger = useContext(IdeMessengerContext); + const jetbrains = isJetBrains(); return ( - - - - +
+
+

+
+ +
+
    - {!isJetBrains() && ( + {!jetbrains && (
  • @@ -67,27 +60,36 @@ export function TutorialCard({ onClose }: TutorialCardProps) {
  • )}
  • - +
    + +
    - Highlight code and press {getMetaKeyLabel()} + I to - quickly make natural language edits + Highlight code and press {getMetaKeyLabel()} +{" "} + I to quickly make natural language edits
  • - +
    + +
    - Highlight code and press {getMetaKeyLabel()} + L to - add it to the chat window + Highlight code and press {getMetaKeyLabel()} +{" "} + {jetbrains ? "J" : "L"} to add it to the chat window
  • - +
    + +
    - Click the gear icon in the bottom right to configure Continue + Click the gear icon at the top of the chat window to configure + Continue
  • - +
    + +
- +
); } From 4de76dddc1eb86f50d190614e5c540059e6831b0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 9 Feb 2025 23:45:03 -0800 Subject: [PATCH 2/3] use theme colors for jetbrains inline edit --- .../continueintellijextension/editor/InlineEditAction.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt index 9f314ede6..c623afd07 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt @@ -451,8 +451,8 @@ class CustomPanel( val rightButton = CustomButton("⏎ Enter") { onEnter() } .apply { - background = JBColor(0x999998.toInt(), 0x999998.toInt()) - foreground = JBColor(0xF5F5F5.toInt(), 0xF5F5F5.toInt()) + background = globalScheme.defaultForeground + foreground = globalScheme.defaultBackground border = EmptyBorder(2, 6, 2, 6) } From 72a565129c66b3bde5a43a218262b16e892d3907 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 10 Feb 2025 00:53:29 -0800 Subject: [PATCH 3/3] cleanup --- gui/src/components/mainInput/TutorialCard.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gui/src/components/mainInput/TutorialCard.tsx b/gui/src/components/mainInput/TutorialCard.tsx index 99d5eb774..5f6a2c47c 100644 --- a/gui/src/components/mainInput/TutorialCard.tsx +++ b/gui/src/components/mainInput/TutorialCard.tsx @@ -6,8 +6,7 @@ import { PencilSquareIcon, XMarkIcon, } from "@heroicons/react/24/outline"; -import styled from "styled-components"; -import { defaultBorderRadius, lightGray, vscBackground } from ".."; +import { lightGray } from ".."; import { getMetaKeyLabel, isJetBrains } from "../../util"; import { useContext } from "react"; import { IdeMessengerContext } from "../../context/IdeMessenger"; @@ -16,13 +15,6 @@ interface TutorialCardProps { onClose: () => void; } -const CloseButton = styled.button` - border: none; - background-color: ${vscBackground}; - color: ${lightGray}; - position: absolute; -`; - export function TutorialCard({ onClose }: TutorialCardProps) { const ideMessenger = useContext(IdeMessengerContext); const jetbrains = isJetBrains();