Package-level declarations

Types

Link copied to clipboard
class BridgePainterHintsProvider : PalettePainterHintsProvider

Provide the default PainterHints to use in the IDE.

Link copied to clipboard
Link copied to clipboard
interface ToolWindowScope

Properties

Link copied to clipboard
val JBValue.dp: Dp
Link copied to clipboard
val LocalComponent: ProvidableCompositionLocal<JComponent>

Functions

Link copied to clipboard
fun ToolWindow.addComposeTab(tabDisplayName: String, isLockable: Boolean = true, isCloseable: Boolean = false, content: @Composable ToolWindowScope.() -> Unit)
Link copied to clipboard
fun bridgePainterProvider(path: String): ResourcePainterProvider
fun bridgePainterProvider(iconKey: IconKey): ResourcePainterProvider

ResourcePainterProvider to resolve resources in Intellij Module and Bridge module.

Link copied to clipboard
fun List<Color>.createVerticalBrush(startY: Float = 0.0f, endY: Float = Float.POSITIVE_INFINITY, tileMode: TileMode = TileMode.Clamp): Brush
Link copied to clipboard
fun JewelComposePanel(content: @Composable () -> Unit): JComponent
Link copied to clipboard
fun JewelToolWindowComposePanel(content: @Composable () -> Unit): JComponent
Link copied to clipboard
@Composable
fun Typography.medium(): TextStyle

The text style to use for medium text. Smaller than regular.

Link copied to clipboard
fun ThemeIconData.Companion.readFromLaF(): ThemeIconData
Link copied to clipboard
@Composable
fun Typography.regular(): TextStyle

The text style to use for regular text. Identical to JewelTheme.defaultTextStyle.

Link copied to clipboard
fun retrieveArcAsCornerSize(key: String): CornerSize
Link copied to clipboard
fun retrieveArcAsCornerSizeOrDefault(key: String, default: CornerSize): CornerSize
Link copied to clipboard
fun retrieveArcAsCornerSizeWithFallbacks(vararg keys: String): CornerSize
Link copied to clipboard
fun retrieveColor(key: String, default: Color): Color
fun retrieveColor(key: String, isDark: Boolean, default: Color, defaultDark: Color): Color
Link copied to clipboard
fun retrieveColorOrNull(key: String): Color?
Link copied to clipboard
Link copied to clipboard
fun retrieveColorsOrUnspecified(vararg keys: String): List<Color>
Link copied to clipboard
fun retrieveEditorColorScheme(): EditorColorsScheme
Link copied to clipboard
fun retrieveInsetsAsPaddingValues(key: String, default: PaddingValues? = null): PaddingValues
Link copied to clipboard
fun retrieveIntAsDp(key: String, default: Dp? = null): Dp
Link copied to clipboard
Link copied to clipboard
fun retrieveTextStyle(fontKey: String, colorKey: String? = null): TextStyle
fun retrieveTextStyle(key: String, color: Color = Color.Unspecified, lineHeight: TextUnit = TextUnit.Unspecified, bold: Boolean = false, fontStyle: FontStyle = FontStyle.Normal, size: TextUnit = TextUnit.Unspecified): TextStyle
Link copied to clipboard
@Composable
fun Typography.small(): TextStyle

The text style to use for small text. Smaller than medium. Should be avoided when running in the New UI, in favor of medium, unless it's absolutely necessary.

Link copied to clipboard
fun Color.toComposeColor(): Color
Link copied to clipboard
Link copied to clipboard
fun JBDimension.toDpSize(): DpSize

Converts a JBDimension to DpSize, in a scaling-aware way. This means that the resulting DpSize will be constructed by first obtaining the unscaled values. This avoids double scaling.

fun Dimension.toDpSize(): DpSize

Converts a Dimension to DpSize. If the receiver is a JBDimension instance, this function delegates to the specific toDpSize for it, which is scaling-aware.

Link copied to clipboard
fun JBInsets.toPaddingValues(): PaddingValues

Converts a JBInsets to PaddingValues, in a scaling-aware way. This means that the resulting PaddingValues will be constructed from the JBInsets.getUnscaled values, treated as Dp. This avoids double scaling.

fun Insets.toPaddingValues(): PaddingValues

Converts a Insets to PaddingValues. If the receiver is a JBInsets instance, this function delegates to the specific toPaddingValues for it, which is scaling-aware.