test 4-direction text outline

This commit is contained in:
Damocles 2026-04-22 23:14:13 +02:00
parent 90c705f790
commit 0ab84e1854

View file

@ -111,15 +111,18 @@ class ClockWidget : GlanceAppWidget() {
maxLines: Int = Int.MAX_VALUE, maxLines: Int = Int.MAX_VALUE,
) { ) {
if (shadow) { if (shadow) {
val outline = style.copy(
color = ColorProvider(day = Color(0xA0000000), night = Color(0xA0000000)),
)
Box { Box {
Text( Text(text = text, style = outline, maxLines = maxLines,
text = text, modifier = GlanceModifier.padding(start = 1.dp))
style = style.copy( Text(text = text, style = outline, maxLines = maxLines,
color = ColorProvider(day = Color(0x90000000), night = Color(0x90000000)), modifier = GlanceModifier.padding(end = 1.dp))
), Text(text = text, style = outline, maxLines = maxLines,
maxLines = maxLines, modifier = GlanceModifier.padding(top = 1.dp))
modifier = GlanceModifier.padding(start = 1.dp, top = 1.dp), Text(text = text, style = outline, maxLines = maxLines,
) modifier = GlanceModifier.padding(bottom = 1.dp))
Text(text = text, style = style, maxLines = maxLines) Text(text = text, style = style, maxLines = maxLines)
} }
} else { } else {