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,
|
||||
) {
|
||||
if (shadow) {
|
||||
val outline = style.copy(
|
||||
color = ColorProvider(day = Color(0xA0000000), night = Color(0xA0000000)),
|
||||
)
|
||||
Box {
|
||||
Text(
|
||||
text = text,
|
||||
style = style.copy(
|
||||
color = ColorProvider(day = Color(0x90000000), night = Color(0x90000000)),
|
||||
),
|
||||
maxLines = maxLines,
|
||||
modifier = GlanceModifier.padding(start = 1.dp, top = 1.dp),
|
||||
)
|
||||
Text(text = text, style = outline, maxLines = maxLines,
|
||||
modifier = GlanceModifier.padding(start = 1.dp))
|
||||
Text(text = text, style = outline, maxLines = maxLines,
|
||||
modifier = GlanceModifier.padding(end = 1.dp))
|
||||
Text(text = text, style = outline, maxLines = maxLines,
|
||||
modifier = GlanceModifier.padding(top = 1.dp))
|
||||
Text(text = text, style = outline, maxLines = maxLines,
|
||||
modifier = GlanceModifier.padding(bottom = 1.dp))
|
||||
Text(text = text, style = style, maxLines = maxLines)
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue