@@ -5,8 +5,10 @@ import com.coder.gateway.sdk.v2.models.WorkspaceAgent
5
5
import com.coder.gateway.sdk.v2.models.WorkspaceAgentLifecycleState
6
6
import com.coder.gateway.sdk.v2.models.WorkspaceAgentStatus
7
7
import com.coder.gateway.sdk.v2.models.WorkspaceStatus
8
- import com.jetbrains.toolbox.gateway.states.Color
9
- import com.jetbrains.toolbox.gateway.states.CustomRemoteEnvironmentState
8
+ import com.jetbrains.toolbox.api.core.ui.color.Color
9
+ import com.jetbrains.toolbox.api.core.ui.color.StateColor
10
+ import com.jetbrains.toolbox.api.core.ui.color.ThemeColor
11
+ import com.jetbrains.toolbox.api.remoteDev.states.CustomRemoteEnvironmentState
10
12
11
13
/* *
12
14
* WorkspaceAndAgentStatus represents the combined status of a single agent and
@@ -60,10 +62,16 @@ enum class WorkspaceAndAgentStatus(val label: String, val description: String) {
60
62
// TODO@JB: Is there a set of default colors we could use?
61
63
return CustomRemoteEnvironmentState (
62
64
label,
63
- Color (200 , 200 , 200 , 200 ), // darkThemeColor
64
- Color (104 , 112 , 128 , 255 ), // lightThemeColor
65
- Color (224 , 224 , 240 , 26 ), // darkThemeBackgroundColor
66
- Color (224 , 224 , 245 , 250 ), // lightThemeBackgroundColor
65
+ StateColor (
66
+ ThemeColor (
67
+ Color (0.407f , 0.439f , 0.502f , 1.0f ), // lightThemeColor
68
+ Color (0.784f , 0.784f , 0.784f , 0.784f ), // darkThemeColor
69
+ ),
70
+ ThemeColor (
71
+ Color (0.878f , 0.878f , 0.941f , 0.102f ), // darkThemeBackgroundColor
72
+ Color (0.878f , 0.878f , 0.961f , 0.980f ), // lightThemeBackgroundColor
73
+ )
74
+ ),
67
75
ready(), // reachable
68
76
// TODO@JB: How does this work? Would like a spinner for pending states.
69
77
null , // iconId
0 commit comments