mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] IJPL-158332 Use hot swap icon
GitOrigin-RevId: 4b1251b680d36cc1c942fffa8ace930a17ffe9e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d254beda2b
commit
a8b02f1e8a
@@ -0,0 +1,6 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M5.22126 4.03931L4.77143 3.60747L4.44767 4.1404L4.87499 4.4C4.44767 4.1404 4.44762 4.14048 4.44756 4.14057L4.44741 4.14082L4.44699 4.14152L4.44563 4.14377L4.44092 4.1516L4.42381 4.18029C4.40911 4.20509 4.38796 4.2411 4.36128 4.28737C4.30794 4.37988 4.2324 4.51355 4.14208 4.68081C3.96165 5.01492 3.72107 5.48509 3.48016 6.0303C3.00591 7.10353 2.5 8.53361 2.5 9.8C2.5 12.5705 5.05519 14.5 8 14.5C10.9448 14.5 13.5 12.5705 13.5 9.8C13.5 7.87757 12.3167 5.81392 11.2177 4.29417C10.658 3.52025 10.0993 2.85969 9.68097 2.39277C9.47153 2.15903 9.29659 1.9731 9.17337 1.84498C9.11175 1.7809 9.06301 1.73123 9.02932 1.69723L8.99031 1.6581L8.97976 1.64763L8.97681 1.64471L8.97593 1.64384L8.97564 1.64356C8.97553 1.64345 8.97544 1.64337 8.625 2L8.97544 1.64337L8.46192 1.13875L8.16843 1.79617L6.5833 5.34686L5.22126 4.03931Z"
|
||||
stroke="#DB3B4B"/>
|
||||
<path d="M6 12C6.01294 10.9811 7.06359 9.84265 7.99986 9C8.93613 9.84265 9.98706 10.9811 10 12" stroke="#DB3B4B" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M5.22126 4.03931L4.77143 3.60747L4.44767 4.1404L4.87499 4.4C4.44767 4.1404 4.44762 4.14048 4.44756 4.14057L4.44741 4.14082L4.44699 4.14152L4.44563 4.14377L4.44092 4.1516L4.42381 4.18029C4.40911 4.20509 4.38796 4.2411 4.36128 4.28737C4.30794 4.37988 4.2324 4.51355 4.14208 4.68081C3.96165 5.01492 3.72107 5.48509 3.48016 6.0303C3.00591 7.10353 2.5 8.53361 2.5 9.8C2.5 12.5705 5.05519 14.5 8 14.5C10.9448 14.5 13.5 12.5705 13.5 9.8C13.5 7.87757 12.3167 5.81392 11.2177 4.29417C10.658 3.52025 10.0993 2.85969 9.68097 2.39277C9.47153 2.15903 9.29659 1.9731 9.17337 1.84498C9.11175 1.7809 9.06301 1.73123 9.02932 1.69723L8.99031 1.6581L8.97976 1.64763L8.97681 1.64471L8.97593 1.64384L8.97564 1.64356C8.97553 1.64345 8.97544 1.64337 8.625 2L8.97544 1.64337L8.46192 1.13875L8.16843 1.79617L6.5833 5.34686L5.22126 4.03931Z"
|
||||
stroke="#DB5C5C"/>
|
||||
<path d="M6 12C6.01294 10.9811 7.06359 9.84265 7.99986 9C8.93613 9.84265 9.98706 10.9811 10 12" stroke="#DB5C5C" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
+2
-2
@@ -1,7 +1,6 @@
|
||||
// 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.xdebugger.impl.hotswap
|
||||
|
||||
import com.intellij.icons.AllIcons
|
||||
import com.intellij.openapi.Disposable
|
||||
import com.intellij.openapi.actionSystem.*
|
||||
import com.intellij.openapi.actionSystem.ex.CustomComponentAction
|
||||
@@ -15,6 +14,7 @@ import com.intellij.ui.AnimatedIcon
|
||||
import com.intellij.ui.components.JBLabel
|
||||
import com.intellij.util.ui.JBUI
|
||||
import com.intellij.xdebugger.XDebuggerBundle
|
||||
import icons.PlatformDebuggerImplIcons
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.CoroutineStart
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
@@ -61,7 +61,7 @@ private class HotSwapToolbarComponent(action: AnAction, presentation: Presentati
|
||||
|
||||
fun update(inProgress: Boolean, presentation: Presentation) {
|
||||
presentation.isEnabled = !inProgress
|
||||
presentation.icon = if (inProgress) AnimatedIcon.Default.INSTANCE else AllIcons.Actions.Rebuild
|
||||
presentation.icon = if (inProgress) AnimatedIcon.Default.INSTANCE else PlatformDebuggerImplIcons.Actions.Hot_swap
|
||||
// Force animation in the disabled state
|
||||
presentation.disabledIcon = presentation.icon
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ public final class PlatformDebuggerImplIcons {
|
||||
/** 16x16 */ public static final @NotNull Icon Force_run_to_cursor = load("icons/actions/force_run_to_cursor.svg", -1320997109, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon Force_step_into = load("icons/actions/force_step_into.svg", 155614706, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon Force_step_over = load("icons/actions/force_step_over.svg", 795507244, 2);
|
||||
/** 16x16 */ public static final @NotNull Icon Hot_swap = load("icons/actions/hot_swap.svg", -216570490, 2);
|
||||
}
|
||||
|
||||
public static final class MemoryView {
|
||||
|
||||
Reference in New Issue
Block a user