From 34cbc3e5a0e6e17b4f7cc0109b97ef642a0de9aa Mon Sep 17 00:00:00 2001 From: Maksim Zuev Date: Thu, 8 Aug 2024 13:24:28 +0200 Subject: [PATCH] [debugger] IDEA-356958 Replace icon with debugger sync GitOrigin-RevId: d4a874a863f03b79c1ba1788ba0a681474f1fcb7 --- .../debugger/impl/hotswap/JvmHotSwapUiExtension.kt | 4 ++-- .../resources/icons/actions/debuggerSync.svg | 13 +++++++++++++ .../resources/icons/actions/debuggerSync_dark.svg | 13 +++++++++++++ .../resources/icons/actions/hot_swap.svg | 6 ------ .../resources/icons/actions/hot_swap_dark.svg | 6 ------ .../impl/hotswap/HotSwapFloatingToolbarProvider.kt | 2 +- .../src/icons/PlatformDebuggerImplIcons.java | 2 +- 7 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 platform/xdebugger-impl/resources/icons/actions/debuggerSync.svg create mode 100644 platform/xdebugger-impl/resources/icons/actions/debuggerSync_dark.svg delete mode 100644 platform/xdebugger-impl/resources/icons/actions/hot_swap.svg delete mode 100644 platform/xdebugger-impl/resources/icons/actions/hot_swap_dark.svg diff --git a/java/debugger/impl/src/com/intellij/debugger/impl/hotswap/JvmHotSwapUiExtension.kt b/java/debugger/impl/src/com/intellij/debugger/impl/hotswap/JvmHotSwapUiExtension.kt index fa3b2e226110..7db58cdb1348 100644 --- a/java/debugger/impl/src/com/intellij/debugger/impl/hotswap/JvmHotSwapUiExtension.kt +++ b/java/debugger/impl/src/com/intellij/debugger/impl/hotswap/JvmHotSwapUiExtension.kt @@ -1,14 +1,14 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.debugger.impl.hotswap -import com.intellij.icons.AllIcons import com.intellij.util.PlatformUtils import com.intellij.xdebugger.impl.hotswap.HotSwapUiExtension +import icons.PlatformDebuggerImplIcons import javax.swing.Icon private class JvmHotSwapUiExtension : HotSwapUiExtension { override fun isApplicable(): Boolean = PlatformUtils.isIntelliJ() override val hotSwapIcon: Icon - get() = AllIcons.Actions.Rebuild + get() = PlatformDebuggerImplIcons.Actions.DebuggerSync } diff --git a/platform/xdebugger-impl/resources/icons/actions/debuggerSync.svg b/platform/xdebugger-impl/resources/icons/actions/debuggerSync.svg new file mode 100644 index 000000000000..776d5986b2a4 --- /dev/null +++ b/platform/xdebugger-impl/resources/icons/actions/debuggerSync.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/platform/xdebugger-impl/resources/icons/actions/debuggerSync_dark.svg b/platform/xdebugger-impl/resources/icons/actions/debuggerSync_dark.svg new file mode 100644 index 000000000000..bdcd7dc72be0 --- /dev/null +++ b/platform/xdebugger-impl/resources/icons/actions/debuggerSync_dark.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/platform/xdebugger-impl/resources/icons/actions/hot_swap.svg b/platform/xdebugger-impl/resources/icons/actions/hot_swap.svg deleted file mode 100644 index 370460f4e8a3..000000000000 --- a/platform/xdebugger-impl/resources/icons/actions/hot_swap.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/platform/xdebugger-impl/resources/icons/actions/hot_swap_dark.svg b/platform/xdebugger-impl/resources/icons/actions/hot_swap_dark.svg deleted file mode 100644 index be425826164b..000000000000 --- a/platform/xdebugger-impl/resources/icons/actions/hot_swap_dark.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/hotswap/HotSwapFloatingToolbarProvider.kt b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/hotswap/HotSwapFloatingToolbarProvider.kt index ec7ad2444a38..35fb73a8e865 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/hotswap/HotSwapFloatingToolbarProvider.kt +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/hotswap/HotSwapFloatingToolbarProvider.kt @@ -25,7 +25,7 @@ import javax.swing.JComponent import javax.swing.JPanel private val hotSwapIcon: Icon by lazy { - HotSwapUiExtension.computeSafeIfAvailable { it.hotSwapIcon } ?: PlatformDebuggerImplIcons.Actions.Hot_swap + HotSwapUiExtension.computeSafeIfAvailable { it.hotSwapIcon } ?: PlatformDebuggerImplIcons.Actions.DebuggerSync } private fun createHelpTooltip(): HelpTooltip = diff --git a/platform/xdebugger-impl/src/icons/PlatformDebuggerImplIcons.java b/platform/xdebugger-impl/src/icons/PlatformDebuggerImplIcons.java index 62cc510a0598..682c85682565 100644 --- a/platform/xdebugger-impl/src/icons/PlatformDebuggerImplIcons.java +++ b/platform/xdebugger-impl/src/icons/PlatformDebuggerImplIcons.java @@ -17,7 +17,7 @@ public final class PlatformDebuggerImplIcons { } public static final class Actions { - /** 16x16 */ public static final @NotNull Icon Hot_swap = load("icons/actions/hot_swap.svg", -216570490, 2); + /** 16x16 */ public static final @NotNull Icon DebuggerSync = load("icons/actions/debuggerSync.svg", -370007676, 2); } public static final class MemoryView {