test 4-direction text outline
This commit is contained in:
parent
90c705f790
commit
0ab84e1854
1 changed files with 11 additions and 8 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue