Package icyllis.modernui.markflow
Class MarkflowTheme.Builder
java.lang.Object
icyllis.modernui.markflow.MarkflowTheme.Builder
- Enclosing class:
MarkflowTheme
-
Method Summary
Modifier and TypeMethodDescriptionblockQuoteColor
(int blockQuoteColor) The color of the vertical stripe of blockquotes.blockQuoteMargin
(int blockQuoteMargin) Blockquote indentation in pixels.blockQuoteMarginDp
(int blockQuoteMarginDp) Blockquote indentation in density-independent pixels.blockQuoteTextColor
(int blockQuoteTextColor) The default text color in blockquotes.blockQuoteWidth
(int blockQuoteWidth) The width of the vertical stripe of blockquotes in pixels.blockQuoteWidthDp
(int blockQuoteWidthDp) The width of the vertical stripe of blockquotes in density-independent pixels.build()
Build an instance.bulletWidth
(int bulletWidth) The width of the bullet of list items in pixels.bulletWidthDp
(int bulletWidthDp) The width of the bullet of list items in density-independent pixels.codeBackgroundColor
(int codeBackgroundColor) The color of the background of inline code.codeBlockBackgroundColor
(int codeBlockBackgroundColor) The color of the background of code blocks.codeBlockMargin
(int codeBlockMargin) The padding of the text in code blocks in pixels.codeBlockMarginDp
(int codeBlockMarginDp) The padding of the text in code blocks in density-independent pixels.codeBlockTextColor
(int codeBlockTextColor) The color of the text in code blocks.codeBlockTextSize
(int codeBlockTextSize) The text size of the code block in pixels.codeBlockTextSizeMultiplier
(float codeBlockTextSizeMultiplier) The relative text size of the code blocks.codeBlockTypeface
(Typeface codeBlockTypeface) The typeface of the text in code blocks.codeTextColor
(int codeTextColor) The color of the inline code text.codeTextSize
(int codeTextSize) The text size of the inline code in pixels.codeTextSizeMultiplier
(float codeTextSizeMultiplier) The relative text size of the inline code.codeTypeface
(Typeface codeTypeface) The typeface of the inline code.headingBreakColor
(int headingBreakColor) The color of heading break.headingBreakHeight
(int headingBreakHeight) The thickness of heading break in pixels.headingBreakHeightDp
(int headingBreakHeightDp) The thickness of heading break in density-independent pixels.headingTextSizeMultipliers
(float... headingTextSizeMultipliers) The relative text size for headings at levels 1 to 6.headingTextSizes
(int... headingTextSizes) The text size for headings at levels 1 to 6, in pixels.headingTextStyle
(int headingTextStyle) The text style of all headings, possible values are defined inTypeface
.headingTypeface
(Typeface headingTypeface) The typeface of all headings.listItemColor
(int listItemColor) The color of the bullet/number of list items.listItemMargin
(int listItemMargin) List block indentation in pixels.listItemMarginDp
(int listItemMarginDp) List block indentation in density-independent pixels.thematicBreakColor
(int thematicBreakColor) The color of thematic break.thematicBreakHeight
(int thematicBreakHeight) The thickness of thematic break in pixels.thematicBreakHeightDp
(int thematicBreakHeightDp) The thickness of thematic break in density-independent pixels.
-
Method Details
-
blockQuoteTextColor
The default text color in blockquotes. If 0 is supplied, the main text color will be used. -
blockQuoteMargin
Blockquote indentation in pixels. -
blockQuoteMarginDp
Blockquote indentation in density-independent pixels. -
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
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
The color of the vertical stripe of blockquotes. -
listItemMargin
List block indentation in pixels. -
listItemMarginDp
List block indentation in density-independent pixels. -
listItemColor
The color of the bullet/number of list items. If 0 is supplied, then text color will be used. -
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
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
The color of the inline code text. If 0 is supplied, then main text color will be used. -
codeBlockTextColor
The color of the text in code blocks. If 0 is supplied, then code text color will be used. -
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
The padding of the text in code blocks in pixels. -
codeBlockMarginDp
The padding of the text in code blocks in density-independent pixels. -
codeTypeface
The typeface of the inline code. If null is supplied, then MONOSPACED will be used. -
codeBlockTypeface
The typeface of the text in code blocks. If null is supplied, then code typeface will be used. -
codeTextSize
The text size of the inline code in pixels. If 0 is supplied, then code text size multiplier will be used. -
codeTextSizeMultiplier
The relative text size of the inline code. ThecodeTextSize(int)
will override this value. If 0 is supplied, then code text size will be unchanged. -
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. ThecodeBlockTextSize(int)
will override this value. If 0 is supplied, then code text size will be used. -
headingBreakColor
The color of heading break. -
headingBreakHeight
The thickness of heading break in pixels. If 0 is supplied, then an internal strategy will be used. -
headingBreakHeightDp
The thickness of heading break in density-independent pixels. If 0 is supplied, then an internal strategy will be used. -
headingTypeface
The typeface of all headings. -
headingTextStyle
The text style of all headings, possible values are defined inTypeface
. -
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. TheheadingTextSizes(int...)
will override these values. If 0 is supplied, the default multiplier will be used. -
thematicBreakColor
The color of thematic break. -
thematicBreakHeight
The thickness of thematic break in pixels. If 0 is supplied, then an internal strategy will be used. -
thematicBreakHeightDp
The thickness of thematic break in density-independent pixels. If 0 is supplied, then an internal strategy will be used. -
build
Build an instance. This builder can be reused and the state will be preserved.
-