Fix PR Comment
This commit is contained in:
parent
40f42c5b8e
commit
cc535f0c50
@ -347,8 +347,8 @@ public class SpannableTheme {
|
||||
|
||||
paint.setFakeBoldText(true);
|
||||
|
||||
final float textSize = headingTypeConfig.getTextSize() > 0 ?
|
||||
headingTypeConfig.getTextSize() : HEADING_SCALES[level - 1];
|
||||
final float textSize = headingTypeConfig.getTextScale() > 0 ?
|
||||
headingTypeConfig.getTextScale() : HEADING_SCALES[level - 1];
|
||||
paint.setTextSize(paint.getTextSize() * textSize);
|
||||
|
||||
final int textColor = headingTypeConfig.getTextColor();
|
||||
|
@ -43,13 +43,13 @@ class HeadingConfig @JvmOverloads constructor(
|
||||
*
|
||||
* Can set text size, text color and font (typeface)
|
||||
*
|
||||
* @property textSize Text size for heading
|
||||
* @property textScale Text scale for heading
|
||||
* @property textColor Text color for heading
|
||||
* @property typeface Text size for heading
|
||||
* @property typeface Typeface for heading
|
||||
*/
|
||||
class HeadingTypeConfig @JvmOverloads constructor(
|
||||
//Standard sizes available at #SpannableTheme.java:HEADING_SIZES
|
||||
val textSize: Float = -1F,
|
||||
val textScale: Float = -1F,
|
||||
|
||||
@ColorInt val textColor: Int = -1,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user