Class MarkflowTheme.Builder

java.lang.Object
icyllis.modernui.markflow.MarkflowTheme.Builder
Enclosing class:
MarkflowTheme

public static final class MarkflowTheme.Builder extends Object
  • Method Details

    • blockQuoteTextColor

      @NonNull public MarkflowTheme.Builder blockQuoteTextColor(@ColorInt int blockQuoteTextColor)
      The default text color in blockquotes. If 0 is supplied, the main text color will be used.
    • blockQuoteMargin

      @NonNull public MarkflowTheme.Builder blockQuoteMargin(int blockQuoteMargin)
      Blockquote indentation in pixels.
    • blockQuoteMarginDp

      @NonNull public MarkflowTheme.Builder blockQuoteMarginDp(int blockQuoteMarginDp)
      Blockquote indentation in density-independent pixels.
    • blockQuoteWidth

      @NonNull public MarkflowTheme.Builder blockQuoteWidth(int blockQuoteWidth)
      The width of the vertical stripe of blockquotes in pixels. If 0 is supplied, then 1/4 of block margin will be used.
    • blockQuoteWidthDp

      @NonNull public MarkflowTheme.Builder blockQuoteWidthDp(int blockQuoteWidthDp)
      The width of the vertical stripe of blockquotes in density-independent pixels. If 0 is supplied, then 1/4 of block margin will be used.
    • blockQuoteColor

      @NonNull public MarkflowTheme.Builder blockQuoteColor(@ColorInt int blockQuoteColor)
      The color of the vertical stripe of blockquotes.
    • listItemMargin

      @NonNull public MarkflowTheme.Builder listItemMargin(int listItemMargin)
      List block indentation in pixels.
    • listItemMarginDp

      @NonNull public MarkflowTheme.Builder listItemMarginDp(int listItemMarginDp)
      List block indentation in density-independent pixels.
    • listItemColor

      @NonNull public MarkflowTheme.Builder listItemColor(@ColorInt int listItemColor)
      The color of the bullet/number of list items. If 0 is supplied, then text color will be used.
    • bulletWidth

      @NonNull public MarkflowTheme.Builder bulletWidth(int bulletWidth)
      The width of the bullet of list items in pixels. If 0 is supplied, then 1/4 of line height will be used.
    • bulletWidthDp

      @NonNull public MarkflowTheme.Builder bulletWidthDp(int bulletWidthDp)
      The width of the bullet of list items in density-independent pixels. If 0 is supplied, then 1/4 of line height will be used.
    • codeTextColor

      @NonNull public MarkflowTheme.Builder codeTextColor(@ColorInt int codeTextColor)
      The color of the inline code text. If 0 is supplied, then main text color will be used.
    • codeBlockTextColor

      @NonNull public MarkflowTheme.Builder codeBlockTextColor(@ColorInt int codeBlockTextColor)
      The color of the text in code blocks. If 0 is supplied, then code text color will be used.
    • codeBackgroundColor

      @NonNull public MarkflowTheme.Builder codeBackgroundColor(@ColorInt int codeBackgroundColor)
      The color of the background of inline code. If 0 is supplied, then 0.12 alpha of text color will be used.
    • codeBlockBackgroundColor

      @NonNull public MarkflowTheme.Builder codeBlockBackgroundColor(@ColorInt int codeBlockBackgroundColor)
      The color of the background of code blocks. If 0 is supplied, then 0.12 alpha of text color will be used.
    • codeBlockMargin

      @NonNull public MarkflowTheme.Builder codeBlockMargin(int codeBlockMargin)
      The padding of the text in code blocks in pixels.
    • codeBlockMarginDp

      @NonNull public MarkflowTheme.Builder codeBlockMarginDp(int codeBlockMarginDp)
      The padding of the text in code blocks in density-independent pixels.
    • codeTypeface

      @NonNull public MarkflowTheme.Builder codeTypeface(@Nullable Typeface codeTypeface)
      The typeface of the inline code. If null is supplied, then MONOSPACED will be used.
    • codeBlockTypeface

      @NonNull public MarkflowTheme.Builder codeBlockTypeface(@Nullable Typeface codeBlockTypeface)
      The typeface of the text in code blocks. If null is supplied, then code typeface will be used.
    • codeTextSize

      @NonNull public MarkflowTheme.Builder codeTextSize(int codeTextSize)
      The text size of the inline code in pixels. If 0 is supplied, then code text size multiplier will be used.
    • codeTextSizeMultiplier

      @NonNull public MarkflowTheme.Builder codeTextSizeMultiplier(float codeTextSizeMultiplier)
      The relative text size of the inline code. The codeTextSize(int) will override this value. If 0 is supplied, then code text size will be unchanged.
    • codeBlockTextSize

      @NonNull public MarkflowTheme.Builder codeBlockTextSize(int codeBlockTextSize)
      The text size of the code block in pixels. If 0 is supplied, then code block text size multiplier will be used.
    • codeBlockTextSizeMultiplier

      @NonNull public MarkflowTheme.Builder codeBlockTextSizeMultiplier(float codeBlockTextSizeMultiplier)
      The relative text size of the code blocks. The codeBlockTextSize(int) will override this value. If 0 is supplied, then code text size will be used.
    • headingBreakColor

      @NonNull public MarkflowTheme.Builder headingBreakColor(@ColorInt int headingBreakColor)
      The color of heading break.
    • headingBreakHeight

      @NonNull public MarkflowTheme.Builder headingBreakHeight(int headingBreakHeight)
      The thickness of heading break in pixels. If 0 is supplied, then an internal strategy will be used.
    • headingBreakHeightDp

      @NonNull public MarkflowTheme.Builder headingBreakHeightDp(int headingBreakHeightDp)
      The thickness of heading break in density-independent pixels. If 0 is supplied, then an internal strategy will be used.
    • headingTypeface

      @NonNull public MarkflowTheme.Builder headingTypeface(@Nullable Typeface headingTypeface)
      The typeface of all headings.
    • headingTextStyle

      @NonNull public MarkflowTheme.Builder headingTextStyle(int headingTextStyle)
      The text style of all headings, possible values are defined in Typeface.
    • headingTextSizes

      @NonNull public MarkflowTheme.Builder headingTextSizes(@Nullable int... headingTextSizes)
      The text size for headings at levels 1 to 6, in pixels. If 0 is supplied, the corresponding multiplier will be used.
    • headingTextSizeMultipliers

      @NonNull public MarkflowTheme.Builder headingTextSizeMultipliers(@Nullable float... headingTextSizeMultipliers)
      The relative text size for headings at levels 1 to 6. The headingTextSizes(int...) will override these values. If 0 is supplied, the default multiplier will be used.
    • thematicBreakColor

      @NonNull public MarkflowTheme.Builder thematicBreakColor(@ColorInt int thematicBreakColor)
      The color of thematic break.
    • thematicBreakHeight

      @NonNull public MarkflowTheme.Builder thematicBreakHeight(int thematicBreakHeight)
      The thickness of thematic break in pixels. If 0 is supplied, then an internal strategy will be used.
    • thematicBreakHeightDp

      @NonNull public MarkflowTheme.Builder thematicBreakHeightDp(int thematicBreakHeightDp)
      The thickness of thematic break in density-independent pixels. If 0 is supplied, then an internal strategy will be used.
    • build

      @NonNull public MarkflowTheme build()
      Build an instance. This builder can be reused and the state will be preserved.