report builder appearance - ajtruckle/meeting-schedule-assistant-support GitHub Wiki
Appearance
Every block can have its own look: font, size, style, alignment, colours and spacing. You set it in the block's Appearance (a page in Heading, Text and Field editors; a tab in Records, Table and Group editors).
The settings
Text page
- Font and Size: pick from the list; (Default) uses the inherited value.
- Bold, Italic, Underline: each box has three states. Grey (indeterminate) = leave as inherited. Ticked = on. Unticked = off. Because of the "off" state, a block can switch off bold that its container turned on.
- Alignment: left, centre, right or justified.
- Banner: shows the text on a coloured band across the page (Heading and Text only).
Colours page
- Text colour and Background colour, each for light and for dark appearance. A colour left on (Default) is not set. Clear removes it.
- If you set only a light colour, the dark appearance uses the colour the block inherits (or the normal dark text colour). Set both when the look matters in dark mode.
Layout page
- Line spacing, Space above, Space below, and Page break before or after the block.
The little preview shows the effect in light and dark appearance, including what the block inherits.
Light and dark
MSA's reports follow its light or dark appearance. A report always has light colours and may also have dark ones. Colours you choose for "light" are used in light appearance; those you choose for "dark" are used in dark appearance. The preview in the Report Builder shows the current appearance.
Inheritance: where a block's look comes from
A look is passed down the report, like a style cascade. From top to bottom:
- The Report row (the font, size, colours and so on of the whole report).
- A container (Group, Records, Columns, Column, Paragraph, If and Else).
- The block itself.
A block uses its own setting when it has one. Otherwise it uses the nearest container's setting, and otherwise the report's. In the editors, the text next to a setting, for example (default: Segoe UI) or (default: 11pt), tells you what you get if you leave it alone, and the preview shows the effective result.
Passed down (inherited): font, size, bold, italic, underline, alignment, line spacing, text colour.
Not passed down (belong to the block's own box): background colour, banner, space above and below, page breaks. A container's background still shows behind its contents.
Practical uses:
- Set the font once on the Report row and everything follows.
- Put several blocks in a Group and give the Group a colour.
- Give a Records block a smaller font so everything inside it is smaller.
Exceptions
- Headings keep their own line height and weight unless you change them on the heading.
- A heading's size is relative: Level 1 is 175 %, Level 2 140 % and Level 3 115 % of the inherited size.
- Table cell alignment is chosen per column in the Table block.
- Table style (striped, compact, borders), page orientation and margin are set on the Report row only.
Printing and PDF
The Report row's orientation and margin are written into the report. Paper size and scale are still set separately, in PDF settings (right-click in the preview). Making the paper size part of the Report row is planned.
Navigation
- Parent topic: Report Builder
- Next topic: Blocks