Fix RIDER-43771 (Wrong text color for unfocused stack)

GitOrigin-RevId: d0d1eb59e6bdc23bbb90d4c906050b155d948927
This commit is contained in:
Ilya usov
2020-06-10 19:25:29 +03:00
committed by intellij-monorepo-bot
parent fecc1be202
commit 74f17ceed6
2 changed files with 7 additions and 2 deletions
@@ -211,6 +211,8 @@ public class XDebuggerFramesList extends DebuggerFramesList {
}
else if (Registry.is("debugger.new.debug.tool.window.view")){
setBackground(UIUtil.getListSelectionBackground(hasFocus));
setForeground(UIUtil.getListSelectionForeground(hasFocus));
mySelectionForeground = getForeground();
}
stackFrame.customizePresentation(this);
@@ -129,6 +129,11 @@ class XDebuggerThreadsList(private val renderer: ListCellRenderer<StackInfo>) :
hasFocus: Boolean
) {
val stack = value ?: return
if (selected) {
background = UIUtil.getListSelectionBackground(hasFocus)
foreground = UIUtil.getListSelectionForeground(hasFocus)
mySelectionForeground = foreground
}
when (stack.kind) {
StackInfo.StackKind.ExecutionStack -> {
append(stack.toString())
@@ -137,8 +142,6 @@ class XDebuggerThreadsList(private val renderer: ListCellRenderer<StackInfo>) :
StackInfo.StackKind.Error,
StackInfo.StackKind.Loading -> append(stack.toString())
}
if (selected)
background = UIUtil.getListSelectionBackground(hasFocus)
}
}
}