Skip to content

Commit 5ac66a3

Browse files
committed
Fix: use consistent background for recent connections view
1 parent 0a3faba commit 5ac66a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import com.coder.gateway.icons.CoderIcons
55
import com.coder.gateway.models.RecentWorkspaceConnection
66
import com.coder.gateway.services.CoderRecentWorkspaceConnectionsService
77
import com.intellij.openapi.components.service
8+
import com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreenUIManager
89
import com.intellij.ui.dsl.builder.TopGap
910
import com.intellij.ui.dsl.builder.panel
1011
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
@@ -41,11 +42,16 @@ class CoderGatewayRecentWorkspaceConnectionsView : GatewayRecentConnections {
4142
}
4243
}
4344
row {
44-
scrollCell(recentConnectionsView).resizableColumn().horizontalAlign(HorizontalAlign.FILL).verticalAlign(VerticalAlign.FILL)
45+
scrollCell(recentConnectionsView).resizableColumn().horizontalAlign(HorizontalAlign.FILL).verticalAlign(VerticalAlign.FILL).applyToComponent {
46+
background = WelcomeScreenUIManager.getMainAssociatedComponentBackground()
47+
}
4548
cell()
4649
}.topGap(TopGap.NONE).resizableRow()
4750
}
51+
}.apply {
52+
background = WelcomeScreenUIManager.getMainAssociatedComponentBackground()
4853
}
54+
4955
recentConnectionsView.apply {
5056
isRootVisible = false
5157
showsRootHandles = false

0 commit comments

Comments
 (0)