Markwon/docs/docs/theme.md
2018-08-21 16:48:42 +03:00

3.1 KiB

Theme

Here is the list of properties that can be configured via SpannableTheme#builder factory method. If you wish to control what is out of this list, you can use SpannableFactory abstraction which lets you to gather full control of Spans that are used to display markdown.

  • factory methods

Controls the color of a link

* TextPaint#linkColor will be used to determine linkColor of a context

Block margin

Starting margin before text content for the:

  • lists
  • blockquotes
  • task lists

Block quote

Customizations for the blockquote stripe

Quote

Stripe width

Width of a blockquote stripe

Stripe color

Color of a blockquote stripe

List

List item color

Controls the color of a list item. For ordered list: leading number, for unordered list: bullet.

  • UL
  1. OL

Bullet item stroke width

Border width of a bullet list item (level 2)

  • First
    • Second
      • Third

Bullet width

The width of the bullet item

  • First
    • Second
      • Third

Code

Inline code text color

The color of the code content

Inline code background color

The color of background of a code content

Block code text color

The color of code block text

Block code background color

The color of background of code block text

Block code leading margin

Leading margin for the block code content

Code typeface

Typeface of code content

Code text size

Text size of code content