<text>
ContentWallpaper
Text display with M3 typography presets, expressions, and styling.
Example
<text style="displayLarge" color="#FFF">{dt:time:HH:mm}</text>Attributes
| Name | Type | Default | Description |
|---|---|---|---|
style | String | bodyMedium | M3 typography preset. |
color | Color | — | Text color |
fontSize | Sp | — | Font size |
fontFamily | String | — | Font reference: a <fonts> alias, bundled family, system family, or provider:family (e.g. local:MyFont) |
fontWeight | String | — | Font weight (numeric ladder; named weights like bold, light also accepted). |
letterSpacingWallpaper only | Sp | — | Letter spacing |
lineHeightWallpaper only | Sp | — | Line height |
maxLines | Int | — | Maximum number of lines |
align | String | start | Text alignment. |
rasterize | Boolean | true | Widgets: text in a font launchers can't use (bundled, imported, downloaded or device fonts) is drawn as an image so the font shows. false keeps it as plain text in the launcher's font. |
opacityWallpaper only | Float | 1.0 | Opacity (0.0–1.0) |
rotateWallpaper only | Float | — | Rotation in degrees, clockwise around the element's centre. Takes expressions, e.g. "{dt:minuteAngle}" for a clock hand. |
scaleWallpaper only | String | — | Uniform scale factor, or 'sx,sy' for axis-specific |
offsetWallpaper only | String | — | Translation 'x,y' in dp or % (e.g. '8dp,-4dp' or '10%,0%') |
blurWallpaper only | Dp | — | Blur radius (Dp) applied to the element and its children |
clipToBoundsWallpaper only | Boolean | false | Clip children that draw outside this element's bounds |
requiredWidthWallpaper only | Dp | — | Width that ignores the parent's constraints (Compose requiredWidth); use with a clipped parent |
requiredHeightWallpaper only | Dp | — | Height that ignores the parent's constraints (Compose requiredHeight); use with a clipped parent |
animateWallpaper only | String | — | Animation preset shorthand, e.g. "pulse:2s", "breathe:4s", "spin:8s", "bob:3s:8dp", "sway:4s:6", "fade:3s:0.3:1", "shimmer:2s". Reads the shared animation clock so all animated elements stay phase-locked. |
refreshWallpaper only | String | — | Update rate for this element and its children, independent of the root updateFrequency: "frame" re-evaluates every animation frame (a sweeping second hand bound to {dt:secondAngleSmooth}); "500ms", "1s", "1m" run their own tick. |
transitionWallpaper only | String | — | One-shot animation played when the content changes: "<preset>[:duration][:delay]", e.g. "fade:300ms" or "flipTop:300ms". The change is detected on transitionKey, or on the text for <text>. |
transitionKeyWallpaper only | String | — | Expression whose value triggers the transition when it changes, e.g. "{dt:minute}" |
overlayVisible | Boolean | false | Keep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it) |