Shapes
class Shapes
Glimmer surfaces can use different shapes. Shapes contains different levels of roundedness for different components.
| See also | |
|---|---|
surface |
Summary
Public functions |
|
|---|---|
Shapes |
Returns a copy of this Shapes, optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
Shape |
a shape with 4 fully rounded corners. |
Shape |
a shape with 4 same-sized corners whose size are bigger than |
Shape |
a shape with 4 same-sized corners whose size are smaller than |
Public constructors
Shapes
Shapes(
small: Shape = RoundedCornerShape(24.dp),
medium: Shape = RoundedCornerShape(40.dp),
large: Shape = CircleShape
)
Public functions
Public properties
large
val large: Shape
a shape with 4 fully rounded corners. This shape is used for components such as buttons.
medium
val medium: Shape
a shape with 4 same-sized corners whose size are bigger than small and smaller than large. This is the most commonly used shape, and is used in surface by default.
small
val small: Shape
a shape with 4 same-sized corners whose size are smaller than medium. This shape is used for components such as cards.