File tree 3 files changed +17
-5
lines changed
src/main/kotlin/com/coder/toolbox
3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 5
5
### Added
6
6
7
7
- initial support for JetBrains Toolbox 2.6.0.38311 with the possibility to manage the workspaces - i.e. start, stop,
8
- update and delete actions and also quick shortcuts to templates, web terminal and dashboard.
8
+ update and delete actions and also quick shortcuts to templates, web terminal and dashboard.
9
+ - support for light & dark themes
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import com.coder.toolbox.views.NewEnvironmentPage
17
17
import com.coder.toolbox.views.SignInPage
18
18
import com.coder.toolbox.views.TokenPage
19
19
import com.jetbrains.toolbox.api.core.ui.icons.SvgIcon
20
+ import com.jetbrains.toolbox.api.core.ui.icons.SvgIcon.IconType
20
21
import com.jetbrains.toolbox.api.core.util.LoadableState
21
22
import com.jetbrains.toolbox.api.remoteDev.ProviderVisibilityState
22
23
import com.jetbrains.toolbox.api.remoteDev.RemoteProvider
@@ -181,10 +182,16 @@ class CoderRemoteProvider(
181
182
}
182
183
183
184
override val svgIcon: SvgIcon =
184
- SvgIcon (this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf())
185
+ SvgIcon (
186
+ this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf(),
187
+ type = IconType .Masked
188
+ )
185
189
186
190
override val noEnvironmentsSvgIcon: SvgIcon ? =
187
- SvgIcon (this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf())
191
+ SvgIcon (
192
+ this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf(),
193
+ type = IconType .Masked
194
+ )
188
195
189
196
/* *
190
197
* TODO@JB: It would be nice to show "loading workspaces" at first but it
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.coder.toolbox.views
2
2
3
3
import com.coder.toolbox.CoderToolboxContext
4
4
import com.jetbrains.toolbox.api.core.ui.icons.SvgIcon
5
+ import com.jetbrains.toolbox.api.core.ui.icons.SvgIcon.IconType
5
6
import com.jetbrains.toolbox.api.localization.LocalizableString
6
7
import com.jetbrains.toolbox.api.ui.actions.RunnableActionDescription
7
8
import com.jetbrains.toolbox.api.ui.components.UiField
@@ -46,9 +47,12 @@ abstract class CoderPage(
46
47
* This seems to only work on the first page.
47
48
*/
48
49
override val svgIcon: SvgIcon ? = if (showIcon) {
49
- SvgIcon (this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf())
50
+ SvgIcon (
51
+ this ::class .java.getResourceAsStream(" /icon.svg" )?.readAllBytes() ? : byteArrayOf(),
52
+ type = IconType .Masked
53
+ )
50
54
} else {
51
- SvgIcon (byteArrayOf())
55
+ SvgIcon (byteArrayOf(), type = IconType . Masked )
52
56
}
53
57
54
58
/* *
You can’t perform that action at this time.
0 commit comments