Skip to content

Commit 8ba9a1e

Browse files
committed
chore: icons
1 parent fada753 commit 8ba9a1e

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/main/kotlin/com/ashotn/opencode/relay/actions/RenameSessionAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RenameSessionAction(
3434
e.presentation.text = "Renaming…"
3535
return
3636
}
37-
e.presentation.icon = AllIcons.Actions.Edit
37+
e.presentation.icon = AllIcons.Actions.InlayRenameInNoCodeFiles
3838
e.applyStrings(ActionStrings.RENAME_SESSION, selectedSession() != null)
3939
}
4040

src/main/kotlin/com/ashotn/opencode/relay/actions/ToggleSessionsSectionAction.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ package com.ashotn.opencode.relay.actions
33
import com.ashotn.opencode.relay.settings.OpenCodeSettings
44
import com.ashotn.opencode.relay.settings.OpenCodeSettingsChangedListener
55
import com.ashotn.opencode.relay.settings.snapshot
6+
import com.intellij.icons.AllIcons
67
import com.intellij.openapi.actionSystem.ActionUpdateThread
78
import com.intellij.openapi.actionSystem.AnActionEvent
89
import com.intellij.openapi.actionSystem.ToggleAction
910
import com.intellij.openapi.project.Project
1011

11-
class ToggleSessionsSectionAction(private val project: Project) : ToggleAction("Sessions", "Show or hide the sessions section above the inline terminal", null) {
12+
class ToggleSessionsSectionAction(private val project: Project) :
13+
ToggleAction("Sessions", "Show or hide the sessions section above the inline terminal", null) {
1214

1315
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
1416

1517
override fun update(e: AnActionEvent) {
1618
super.update(e)
19+
e.presentation.icon = AllIcons.Actions.Preview
1720
val settings = OpenCodeSettings.getInstance(project)
1821
e.presentation.isEnabled = settings.inlineTerminalEnabled
1922
e.presentation.description = if (settings.inlineTerminalEnabled) {

src/main/kotlin/com/ashotn/opencode/relay/toolwindow/PendingFilesPanel.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import com.intellij.openapi.actionSystem.ActionPlaces
2121
import com.intellij.openapi.actionSystem.ActionUpdateThread
2222
import com.intellij.openapi.actionSystem.DefaultActionGroup
2323
import com.intellij.diff.DiffContentFactory
24+
import com.intellij.icons.AllIcons
2425
import com.intellij.diff.editor.DiffEditorTabFilesManager
2526
import com.intellij.diff.editor.SimpleDiffVirtualFile
2627
import com.intellij.diff.requests.SimpleDiffRequest
@@ -246,6 +247,10 @@ class PendingFilesPanel(private val project: Project, parentDisposable: Disposab
246247
}
247248

248249
val jumpToSourceAction = object : AnAction("Jump to Source") {
250+
init {
251+
templatePresentation.icon = AllIcons.Actions.EditSource
252+
}
253+
249254
override fun getActionUpdateThread() = ActionUpdateThread.EDT
250255
override fun update(e: AnActionEvent) {
251256
e.presentation.isEnabled = fileList.selectedValue?.isDeleted == false
@@ -259,6 +264,10 @@ class PendingFilesPanel(private val project: Project, parentDisposable: Disposab
259264
}
260265

261266
val openDiffAction = object : AnAction("Open Diff") {
267+
init {
268+
templatePresentation.icon = AllIcons.Actions.Diff
269+
}
270+
262271
override fun getActionUpdateThread() = ActionUpdateThread.EDT
263272
override fun update(e: AnActionEvent) {
264273
e.presentation.isEnabled = fileList.selectedValue?.isDeleted == false

0 commit comments

Comments
 (0)