Skip to content

Commit f489c5b

Browse files
committed
fix: Use custom text color for ControlPadButton
Ref: issue #46
1 parent b3f3b53 commit f489c5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/github/umer0586/droidpad/ui/components/ControlPadButton.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fun ControlPadButton(
136136
BasicText(
137137
/*modifier = Modifier.fillMaxSize(),*/
138138
text = properties.text,
139-
style = TextStyle(textAlign = TextAlign.Center, fontWeight = FontWeight.Bold),
139+
style = TextStyle(textAlign = TextAlign.Center, fontWeight = FontWeight.Bold, color = Color(properties.textColor)),
140140
maxLines = 1,
141141
autoSize = TextAutoSize.StepBased(minFontSize = 6.sp, maxFontSize = 12.sp)
142142
)

0 commit comments

Comments
 (0)