Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Sep 6, 2023
1 parent 6de2fd7 commit ffcec5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ internal fun <T : InteractiveComponentState> retrieveIcon(
baseIconPath: String,
iconData: IntelliJThemeIconData,
svgLoader: SvgLoader,
prefixTokensProvider: (state: T) -> String = { "" },
suffixTokensProvider: (state: T) -> String = { "" },
): PainterProvider<T> =
IntelliJResourcePainterProvider.stateful(
basePath = iconData.iconOverrides[baseIconPath] ?: baseIconPath,
svgLoader,
prefixTokensProvider,
suffixTokensProvider,
)
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ class IntelliJResourcePainterProvider<T> @InternalJewelApi constructor(
fun <T : InteractiveComponentState> stateful(
basePath: String,
svgLoader: SvgLoader,
pathPatcher: ResourcePathPatcher<T> = StatefulResourcePathPatcher(),
prefixTokensProvider: (state: T) -> String = { "" },
suffixTokensProvider: (state: T) -> String = { "" },
pathPatcher: ResourcePathPatcher<T> = StatefulResourcePathPatcher(
prefixTokensProvider,
suffixTokensProvider,
),
) =
IntelliJResourcePainterProvider(basePath, svgLoader, pathPatcher, IntelliJIconMapper)
}
Expand Down

0 comments on commit ffcec5e

Please sign in to comment.