Delegate Border Painter
class DelegateBorderPainter(displayName: String, delegate: StandardBorderPainter, topMask: Long, midMask: Long, bottomMask: Long, transform: (AuroraColorScheme) -> AuroraColorScheme) : StandardBorderPainter
Content copied to clipboard
Delegate border painter that allows tweaking the visual appearance of borders.
Mask is an 8-digit hexadecimal number applied on a color painted by the delegate. Can be used to apply custom translucency. For example, value 0x80FFFFFF will result in 50% translucency of the original border color.
Author
Kirill Grouchnikov
Constructors
Link copied to clipboard
fun DelegateBorderPainter(displayName: String, delegate: StandardBorderPainter, topMask: Long = 4294967295, midMask: Long = 4294967295, bottomMask: Long = 4294967295, transform: (AuroraColorScheme) -> AuroraColorScheme = { it })
Content copied to clipboard
Functions
Link copied to clipboard
open override fun getBottomBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the bottom portion of the border. Override to provide different visual.
Link copied to clipboard
open override fun getMidBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the middle portion of the border. Override to provide different visual.
Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Link copied to clipboard
open override fun getTopBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the top portion of the border. Override to provide different visual.
Link copied to clipboard
open override fun paintBorder(drawScope: DrawScope, size: Size, outline: Outline, outlineInner: Outline?, borderScheme: AuroraColorScheme, alpha: Float)
Content copied to clipboard