Update default style
This commit is contained in:
1 parent
ca842a016c
commit
936f7a41e6
9 files changed
+5
-10
No files matched your search
@@ -48,7 +48,7 @@ Box(
|
||||
shape = CornerShape.large,
|
||||
innerRefraction = InnerRefraction(
|
||||
height = RefractionValue(8.dp),
|
||||
amount = RefractionValue.Full
|
||||
amount = RefractionValue.Full // or any negative value like RefractionValue((-16).dp)
|
||||
),
|
||||
material = GlassMaterial(
|
||||
blurRadius = 8.dp,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -60,8 +60,7 @@ fun ConfigurationBottomSheet(
|
||||
material = GlassMaterial(
|
||||
blurRadius = 8.dp,
|
||||
tint = surface.copy(alpha = 0.6f),
|
||||
whitePoint = if (isDark) -0.25f else 0.25f,
|
||||
chromaMultiplier = 1.5f
|
||||
whitePoint = if (isDark) -0.25f else 0.25f
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -25,7 +25,6 @@ import com.kyant.expressa.prelude.*
|
||||
import com.kyant.expressa.ui.LocalTextStyle
|
||||
import com.kyant.expressa.ui.ProvideTextStyle
|
||||
import com.kyant.expressa.ui.Text
|
||||
import com.kyant.liquidglass.GlassMaterial
|
||||
import com.kyant.liquidglass.LiquidGlassProviderState
|
||||
import com.kyant.liquidglass.LiquidGlassStyle
|
||||
import com.kyant.liquidglass.liquidGlass
|
||||
@@ -49,10 +48,7 @@ fun <T : Comparable<T>> SliderChip(
|
||||
modifier
|
||||
.liquidGlass(
|
||||
providerState,
|
||||
LiquidGlassStyle(
|
||||
CornerShape.extraLarge,
|
||||
material = GlassMaterial(chromaMultiplier = 1.5f)
|
||||
)
|
||||
LiquidGlassStyle(CornerShape.extraLarge)
|
||||
)
|
||||
.clip(CornerShape.full)
|
||||
.background(surfaceBright.copy(alpha = 0.85f))
|
||||
|
||||
Binary file not shown.
@@ -13,7 +13,7 @@ data class GlassMaterial(
|
||||
val tint: Color = Color.Unspecified,
|
||||
@param:FloatRange(from = -1.0, to = 1.0) val contrast: Float = 0f,
|
||||
@param:FloatRange(from = -1.0, to = 1.0) val whitePoint: Float = 0f,
|
||||
@param:FloatRange(from = 0.5, to = 2.0) val chromaMultiplier: Float = 1f
|
||||
@param:FloatRange(from = 0.0, to = 2.0) val chromaMultiplier: Float = 1.5f
|
||||
) {
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -26,7 +26,7 @@ data class InnerRefraction(
|
||||
InnerRefraction(
|
||||
height = RefractionValue(8.dp),
|
||||
amount = RefractionValue((-16).dp),
|
||||
eccentricFactor = 0.25f
|
||||
eccentricFactor = 1f
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user