File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/org/futo/inputmethod/keyboard Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 60
60
<fraction name =" config_key_shifted_letter_hint_ratio_holo" >35%</fraction >
61
61
<fraction name =" config_key_shifted_letter_hint_ratio_lxx" >35%</fraction >
62
62
<fraction name =" config_language_on_spacebar_text_ratio" >33.735%</fraction >
63
- <dimen name =" config_key_hint_letter_padding" >2dp </dimen >
63
+ <dimen name =" config_key_hint_letter_padding" >2.5dp </dimen >
64
64
<dimen name =" config_key_shifted_letter_hint_padding" >2dp</dimen >
65
65
66
66
<!-- For 5-row keyboard -->
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package org.futo.inputmethod.keyboard
18
18
import android.graphics.Rect
19
19
import android.graphics.Typeface
20
20
import android.graphics.drawable.Drawable
21
+ import android.os.Build
21
22
import android.text.TextUtils
22
23
import androidx.compose.ui.graphics.Color
23
24
import androidx.compose.ui.graphics.toArgb
@@ -378,8 +379,17 @@ data class Key(
378
379
379
380
fun selectHintTypeface (provider : DynamicThemeProvider , params : KeyDrawParams ): Typeface {
380
381
return when {
381
- hasHintLabel || provider.hintHiVis -> Typeface .DEFAULT_BOLD
382
- else -> Typeface .DEFAULT_BOLD
382
+ hasHintLabel || provider.hintHiVis -> if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .P ) {
383
+ Typeface .create(Typeface .DEFAULT , 700 , false )
384
+ } else {
385
+ Typeface .DEFAULT_BOLD
386
+ }
387
+
388
+ else -> if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .P ) {
389
+ Typeface .create(Typeface .DEFAULT , 500 , false )
390
+ } else {
391
+ Typeface .DEFAULT
392
+ }
383
393
}
384
394
}
385
395
@@ -390,7 +400,7 @@ data class Key(
390
400
else -> style.foregroundColor
391
401
}
392
402
}.let {
393
- Color (it).copy(alpha = 0.5f ).toArgb()
403
+ Color (it).copy(alpha = 0.8f ).toArgb()
394
404
}
395
405
}
396
406
You can’t perform that action at this time.
0 commit comments