File tree Expand file tree Collapse file tree
src/main/kotlin/tribixbite/cleverkeys Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -547,8 +547,7 @@ private fun MappingListItem(
547547 // Use AndroidView with special font for icon characters when useKeyFont is true
548548 if (mapping.useKeyFont) {
549549 // Show icon using special font via AndroidView
550- // Keyboard uses sublabelTextSize=0.22 vs labelTextSize=0.33 (ratio ~0.67)
551- // Icon font glyphs are visually larger, so use ~8sp to match 13sp text visually
550+ // Use smaller size (10sp) to approximate keyboard sublabel appearance
552551 Row (verticalAlignment = Alignment .CenterVertically ) {
553552 Text (
554553 text = " \" " ,
@@ -559,7 +558,7 @@ private fun MappingListItem(
559558 factory = { ctx ->
560559 android.widget.TextView (ctx).apply {
561560 typeface = Theme .getKeyFont(ctx)
562- textSize = 8f // Match keyboard sublabel ratio (0.22/0.33 of main text )
561+ setTextSize(android.util. TypedValue . COMPLEX_UNIT_SP , 10f )
563562 setTextColor(android.graphics.Color .WHITE )
564563 text = mapping.displayText
565564 }
Original file line number Diff line number Diff line change @@ -326,13 +326,12 @@ private fun LabelConfirmationDialog(
326326 }
327327 isIconMode -> {
328328 // Icon mode with default label - render with special font
329- // Keyboard uses sublabelTextSize=0.22 vs labelTextSize=0.33 (ratio ~0.67)
330- // 18sp text * 0.67 ≈ 12sp for icon to match keyboard proportions
329+ // Use 14sp to be visible in preview while smaller than 18sp text
331330 AndroidView (
332331 factory = { ctx ->
333332 android.widget.TextView (ctx).apply {
334333 typeface = Theme .getKeyFont(ctx)
335- textSize = 12f
334+ setTextSize(android.util. TypedValue . COMPLEX_UNIT_SP , 14f )
336335 setTextColor(android.graphics.Color .WHITE )
337336 text = defaultLabel
338337 }
You can’t perform that action at this time.
0 commit comments