Fix PR Comment

This commit is contained in:
michel.onwordi 2018-01-09 15:59:15 +01:00
parent 40f42c5b8e
commit cc535f0c50
2 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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,