mirror of
https://github.com/jaspervdj/patat.git
synced 2024-12-02 06:37:32 +03:00
Tweak documentation and tests for RGB support
This commit is contained in:
parent
785237b257
commit
1c9bf825a0
@ -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
|
||||
|
||||
|
10
README.md
10
README.md
@ -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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
resolver: nightly-2018-05-06
|
||||
resolver: lts-11.7
|
||||
packages:
|
||||
- '.'
|
||||
flags:
|
||||
|
@ -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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
[35m - [0m[mThis is a simple list.[0m
|
||||
[m [0m[35m + [0m[mWith [0m[4;48;2;255;136;0mnested[0m[m items.[0m
|
||||
[m [0m[35m + [0m[mOne or two.[0m
|
||||
[m [0m[35m + [0m[mWith [0m[4;101mnested[0m[m items.[0m
|
||||
[m [0m[35m + [0m[mOne or two [0m[48;2;16;16;96;38;2;240;128;0mbold[0m[m.[0m
|
||||
|
||||
[35m - [0m[mThe list theming is customized a bit.[0m
|
||||
|
Loading…
Reference in New Issue
Block a user