All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.huanshankeji.compose.foundation.ext.BackgroundAndBorder.kt Maven / Gradle / Ivy

Go to download

Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML

The newest version!
package com.huanshankeji.compose.foundation.ext

import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import com.huanshankeji.compose.foundation.BorderStroke
import com.huanshankeji.compose.ui.Modifier
import com.huanshankeji.compose.ui.graphics.Color

/** The border is not on top of the background. */
@Stable
expect fun Modifier.roundedCornerBackgroundAndOuterBorder(
    border: BorderStroke, cornerRadius: Dp, backgroundColor: Color
): Modifier

@Stable
expect fun Modifier.roundedCornerBackgroundAndOuterBorder(
    border: BorderStroke, cornerRadiusPercent: Int, backgroundColor: Color
): Modifier

@Stable
expect fun Modifier.roundedCornerBackgroundAndOuterBorder(
    width: Dp, borderColor: Color, cornerRadius: Dp, backgroundColor: Color
): Modifier

@Stable
expect fun Modifier.roundedCornerBackgroundAndOuterBorder(
    width: Dp, borderColor: Color, cornerRadiusPercent: Int, backgroundColor: Color
): Modifier

/*
/** The border is on top of the background. */
@Stable
expect fun Modifier.roundedCornerBackgroundAndOuterBorder()
*/





© 2015 - 2025 Weber Informatics LLC | Privacy Policy