Changesets · Branches · Tags · Compare
| Changeset | 579e987b4d402c1e2d5c39a009d645e8a7701a0f3a25a9869e665a1cc1f5113c |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-07-02 10:53 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-07-02 10:53 -07:00 |
| Parents | be090b2db173, d66b7a6a5649 |
9 files changed
added extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/Icons.kt +10 −0
| @@ -0,0 +1,10 @@ | ||
| 1 | +package com.github.continuedev.continueintellijextension | |
| 2 | + | |
| 3 | +import com.intellij.openapi.util.IconLoader | |
| 4 | + | |
| 5 | +object Icons { | |
| 6 | + @JvmField | |
| 7 | + val Continue = IconLoader.getIcon("/icons/continue.svg", javaClass) | |
| 8 | + @JvmField | |
| 9 | + val Close = IconLoader.getIcon("/icons/close.svg", javaClass) | |
| 10 | +} | |
| No newline at the end of the file |
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteSpinnerWidgetFactory.kt +2 −1
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | package com.github.continuedev.continueintellijextension.autocomplete |
| 2 | 2 | |
| 3 | +import com.github.continuedev.continueintellijextension.Icons | |
| 3 | 4 | import com.github.continuedev.continueintellijextension.activities.ContinuePluginDisposable |
| 4 | 5 | import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings |
| 5 | 6 | import com.intellij.openapi.Disposable |
| @@ -50,7 +51,7 @@ | ||
| 50 | 51 | } |
| 51 | 52 | |
| 52 | 53 | override fun getIcon(): Icon = if (isLoading) animatedIcon else |
| 53 | - IconLoader.getIcon("/icons/continue.svg", javaClass) | |
| 54 | + Icons.Continue | |
| 54 | 55 | |
| 55 | 56 | fun setLoading(loading: Boolean) { |
| 56 | 57 | isLoading = loading |
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +1 −2
| @@ -529,10 +529,9 @@ | ||
| 529 | 529 | } |
| 530 | 530 | |
| 531 | 531 | val deferred = CompletableDeferred<String?>() |
| 532 | - val icon = IconLoader.getIcon("/icons/continue.svg", javaClass) | |
| 533 | 532 | |
| 534 | 533 | val notification = NotificationGroupManager.getInstance().getNotificationGroup("Continue") |
| 535 | - .createNotification(message, notificationType).setIcon(icon) | |
| 534 | + .createNotification(message, notificationType).setIcon(Icons.Continue) | |
| 536 | 535 | |
| 537 | 536 | val buttonTexts = otherParams.filterIsInstance<String>().toTypedArray() |
| 538 | 537 | buttonTexts.forEach { buttonText -> |
modified extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditPanel.kt +2 −2
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | package com.github.continuedev.continueintellijextension.editor |
| 2 | 2 | |
| 3 | +import com.github.continuedev.continueintellijextension.Icons | |
| 3 | 4 | import com.github.continuedev.continueintellijextension.`continue`.GetTheme |
| 4 | 5 | import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings |
| 5 | 6 | import com.github.continuedev.continueintellijextension.services.ContinuePluginService |
| @@ -357,8 +358,7 @@ | ||
| 357 | 358 | } |
| 358 | 359 | |
| 359 | 360 | private fun createCloseButton(): JComponent { |
| 360 | - val closeIcon = IconLoader.getIcon("/icons/close.svg", javaClass) | |
| 361 | - return JLabel(closeIcon).apply { | |
| 361 | + return JLabel(Icons.Close).apply { | |
| 362 | 362 | background = Color(0, 0, 0, 0) |
| 363 | 363 | border = JBUI.Borders.empty(2, 6, 2, 0) |
| 364 | 364 | toolTipText = "`esc` to cancel" |
deleted extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/listeners/VirtualFileListener.kt +0 −0
modified extensions/intellij/src/main/resources/META-INF/plugin.xml +1 −1
| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | <extensions defaultExtensionNs="com.intellij"> |
| 20 | 20 | <editorFactoryListener |
| 21 | 21 | implementation="com.github.continuedev.continueintellijextension.autocomplete.AutocompleteEditorListener"/> |
| 22 | - <toolWindow id="Continue" anchor="right" icon="/tool-window-icon.svg" | |
| 22 | + <toolWindow id="Continue" anchor="right" icon="com.github.continuedev.continueintellijextension.Icons.Continue" | |
| 23 | 23 | factoryClass="com.github.continuedev.continueintellijextension.toolWindow.ContinuePluginToolWindowFactory"/> |
| 24 | 24 | <projectService id="ContinuePluginService" |
| 25 | 25 | serviceImplementation="com.github.continuedev.continueintellijextension.services.ContinuePluginService"/> |
added extensions/intellij/src/main/resources/icons/continue_dark.svg +4 −0
| @@ -0,0 +1,4 @@ | ||
| 1 | +<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| 2 | + <path d="M10.4742 1.6668L9.77141 2.88516L11.5477 5.95951C11.5607 5.98283 11.5685 6.01135 11.5685 6.03728C11.5685 6.0632 11.5607 6.09172 11.5477 6.11505L9.77141 9.19199L10.4742 10.4104L13 6.03728L10.4742 1.66421V1.6668ZM9.4991 2.72702L10.2019 1.50867H8.79634L8.09357 2.72702H9.5017H9.4991ZM8.09097 3.0433L9.73249 5.88173H11.138L9.4991 3.0433H8.09097ZM9.4991 9.03645L11.138 6.19542H9.73249L8.09097 9.03645H9.4991ZM8.09097 9.35273L8.79374 10.5659H10.1993L9.4965 9.35273H8.08837H8.09097ZM3.32716 10.8666C3.29864 10.8666 3.27271 10.8588 3.24939 10.8458C3.22599 10.8329 3.20527 10.8122 3.19227 10.7889L1.41332 7.71183H0.00777705L2.53362 12.0824H7.58267L6.87991 10.8666H3.32976H3.32716ZM7.15222 10.7085L7.85498 11.9242L8.55775 10.7059L7.85498 9.48755L7.15222 10.7059V10.7085ZM7.58267 9.33201H4.30484L3.60207 10.5503H6.87991L7.58267 9.33201ZM4.02992 9.17647L2.38841 6.33536L1.68562 7.55376L3.32716 10.3948L4.02992 9.17647ZM0.00518489 7.39562H1.41073L2.1135 6.17729H0.71055L0.00518489 7.39562ZM3.18454 1.29611C3.19746 1.27278 3.21826 1.25205 3.24159 1.23908C3.26491 1.22612 3.29344 1.21834 3.31936 1.21834H6.87471L7.57747 0H2.52582L0 4.37305H1.40555L3.17934 1.29871L3.18454 1.29611ZM2.1135 5.90506L1.41073 4.68673H0.00518489L0.707957 5.90506H2.1135ZM3.32196 1.69013L1.68303 4.52859L2.38581 5.74699L4.02472 2.90848L3.32196 1.69013ZM6.87731 1.532H3.59427L4.29704 2.75034H7.58007L6.87731 1.532ZM7.85498 2.5922L8.55515 1.37647L7.85498 0.158126L7.15222 1.37388L7.85498 2.5922Z" | |
| 3 | + fill="#CED0D6"/> | |
| 4 | +</svg> |
deleted extensions/intellij/src/main/resources/tool-window-icon.svg +0 −3
| @@ -1,3 +0,0 @@ | ||
| 1 | -<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| 2 | -<path d="M10.4742 1.6668L9.77141 2.88516L11.5477 5.95951C11.5607 5.98283 11.5685 6.01135 11.5685 6.03728C11.5685 6.0632 11.5607 6.09172 11.5477 6.11505L9.77141 9.19199L10.4742 10.4104L13 6.03728L10.4742 1.66421V1.6668ZM9.4991 2.72702L10.2019 1.50867H8.79634L8.09357 2.72702H9.5017H9.4991ZM8.09097 3.0433L9.73249 5.88173H11.138L9.4991 3.0433H8.09097ZM9.4991 9.03645L11.138 6.19542H9.73249L8.09097 9.03645H9.4991ZM8.09097 9.35273L8.79374 10.5659H10.1993L9.4965 9.35273H8.08837H8.09097ZM3.32716 10.8666C3.29864 10.8666 3.27271 10.8588 3.24939 10.8458C3.22599 10.8329 3.20527 10.8122 3.19227 10.7889L1.41332 7.71183H0.00777705L2.53362 12.0824H7.58267L6.87991 10.8666H3.32976H3.32716ZM7.15222 10.7085L7.85498 11.9242L8.55775 10.7059L7.85498 9.48755L7.15222 10.7059V10.7085ZM7.58267 9.33201H4.30484L3.60207 10.5503H6.87991L7.58267 9.33201ZM4.02992 9.17647L2.38841 6.33536L1.68562 7.55376L3.32716 10.3948L4.02992 9.17647ZM0.00518489 7.39562H1.41073L2.1135 6.17729H0.71055L0.00518489 7.39562ZM3.18454 1.29611C3.19746 1.27278 3.21826 1.25205 3.24159 1.23908C3.26491 1.22612 3.29344 1.21834 3.31936 1.21834H6.87471L7.57747 0H2.52582L0 4.37305H1.40555L3.17934 1.29871L3.18454 1.29611ZM2.1135 5.90506L1.41073 4.68673H0.00518489L0.707957 5.90506H2.1135ZM3.32196 1.69013L1.68303 4.52859L2.38581 5.74699L4.02472 2.90848L3.32196 1.69013ZM6.87731 1.532H3.59427L4.29704 2.75034H7.58007L6.87731 1.532ZM7.85498 2.5922L8.55515 1.37647L7.85498 0.158126L7.15222 1.37388L7.85498 2.5922Z" fill="#6C707E"/> | |
| 3 | -</svg> |
deleted extensions/intellij/src/main/resources/tool-window-icon_dark.svg +0 −3
| @@ -1,3 +0,0 @@ | ||
| 1 | -<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| 2 | -<path d="M10.4742 1.6668L9.77141 2.88516L11.5477 5.95951C11.5607 5.98283 11.5685 6.01135 11.5685 6.03728C11.5685 6.0632 11.5607 6.09172 11.5477 6.11505L9.77141 9.19199L10.4742 10.4104L13 6.03728L10.4742 1.66421V1.6668ZM9.4991 2.72702L10.2019 1.50867H8.79634L8.09357 2.72702H9.5017H9.4991ZM8.09097 3.0433L9.73249 5.88173H11.138L9.4991 3.0433H8.09097ZM9.4991 9.03645L11.138 6.19542H9.73249L8.09097 9.03645H9.4991ZM8.09097 9.35273L8.79374 10.5659H10.1993L9.4965 9.35273H8.08837H8.09097ZM3.32716 10.8666C3.29864 10.8666 3.27271 10.8588 3.24939 10.8458C3.22599 10.8329 3.20527 10.8122 3.19227 10.7889L1.41332 7.71183H0.00777705L2.53362 12.0824H7.58267L6.87991 10.8666H3.32976H3.32716ZM7.15222 10.7085L7.85498 11.9242L8.55775 10.7059L7.85498 9.48755L7.15222 10.7059V10.7085ZM7.58267 9.33201H4.30484L3.60207 10.5503H6.87991L7.58267 9.33201ZM4.02992 9.17647L2.38841 6.33536L1.68562 7.55376L3.32716 10.3948L4.02992 9.17647ZM0.00518489 7.39562H1.41073L2.1135 6.17729H0.71055L0.00518489 7.39562ZM3.18454 1.29611C3.19746 1.27278 3.21826 1.25205 3.24159 1.23908C3.26491 1.22612 3.29344 1.21834 3.31936 1.21834H6.87471L7.57747 0H2.52582L0 4.37305H1.40555L3.17934 1.29871L3.18454 1.29611ZM2.1135 5.90506L1.41073 4.68673H0.00518489L0.707957 5.90506H2.1135ZM3.32196 1.69013L1.68303 4.52859L2.38581 5.74699L4.02472 2.90848L3.32196 1.69013ZM6.87731 1.532H3.59427L4.29704 2.75034H7.58007L6.87731 1.532ZM7.85498 2.5922L8.55515 1.37647L7.85498 0.158126L7.15222 1.37388L7.85498 2.5922Z" fill="#CED0D6"/> | |
| 3 | -</svg> |