Tweak documentation and tests for RGB support

This commit is contained in:
Jasper Van der Jeugt 2018-08-25 15:37:05 +02:00
parent 785237b257
commit 1c9bf825a0
5 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,8 @@
# Changelog
- master
* Add RGB colour support for themes (contribution by Hamza Haiken)
- 0.7.2.0 (2018-05-08)
* GHC 8.4 compatibility

View File

@ -14,7 +14,7 @@ Features:
- Supports [smart slide splitting](#input-format).
- Slides can be split up into [multiple fragments](#fragmented-slides)
- There is a [live reload](#running) mode.
- [Theming](#theming) support.
- [Theming](#theming) support including 24-bit RGB.
- [Auto advancing](#auto-advancing) with configurable delay.
- Optionally [re-wrapping](#line-wrapping) text to terminal width with proper
indentation.
@ -410,9 +410,11 @@ The accepted styles are:
`vividBlue`, `vividCyan`, `vividGreen`, `vividMagenta`, `vividRed`,
`vividWhite`, `vividYellow`
Also accepted are:
`rgb#RrGgBb`, `onRgb#RrGgBb`, where `Rr` `Gg` and `Bb` are hexadecimal bytes (e.g. `rgb#f08000` for orange).
Also accepted are styles of the form `rgb#RrGgBb` and `onRgb#RrGgBb`, where `Rr`
`Gg` and `Bb` are hexadecimal bytes (e.g. `rgb#f08000` for an orange foreground,
and `onRgb#101060` for a deep purple background). Naturally, your terminal
needs to support 24-bit RGB for this to work. When creating portable
presentations, it might be better to stick with the named colours listed above.
### Syntax Highlighting

View File

@ -1,4 +1,4 @@
resolver: nightly-2018-05-06
resolver: lts-11.7
packages:
- '.'
flags:

View File

@ -2,10 +2,11 @@
patat:
theme:
bulletListMarkers: '-+'
emph: [onRgb#ff8800, underline]
emph: [onVividRed, underline]
strong: [rgb#f08000, onRgb#101060]
...
- This is a simple list.
* With _nested_ items.
* One or two.
* One or two **bold**.
- The list theming is customized a bit.

View File

@ -1,5 +1,5 @@
 - This is a simple list.
  + With nested items.
  + One or two.
  + With nested items.
  + One or two bold.
 - The list theming is customized a bit.