add(examples/styles): text and color styling possiblities
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 39s

This also contains some minor refactoring to improve the readability
and understandability of the library (i.e. renaming of Style.Attributes
to Style.Emphasis).
This commit is contained in:
2025-02-21 19:13:11 +01:00
parent c0c0590bb9
commit 7b005ea4b1
6 changed files with 181 additions and 18 deletions

View File

@@ -90,19 +90,12 @@ the primary use-case for myself to create this library in the first place.
- [x] horizontal
- [x] padding
- [x] gap
- [x] sizing (removed - for now at least)
- width
- height
- options
- fit
- grow
- fixed
- percent
- [x] Border
- [x] sides
- [x] corners
- [x] separators
- [x] Rectangle
- [x] min size
- [ ] User control
- [x] event loop handling
- [x] mouse support
@@ -124,7 +117,7 @@ the primary use-case for myself to create this library in the first place.
- [ ] image support through kitty protocol (**later**)
- [ ] Inline rendering (**later**)
- [ ] Examples
- [ ] Layouts
- [x] Layouts
- [x] vertical
- [x] horizontal
- [x] grid
@@ -138,6 +131,21 @@ the primary use-case for myself to create this library in the first place.
- [x] mouse scrolling aware of mouse position (i.e. through multiple different scrollable `Container`)
- [ ] Styles
- [ ] Text styles
- [ ] Colors
- [x] forground
- [x] background
- [ ] underline
- [ ] Emphasis
- [x] none
- [x] bold
- [x] dim
- [x] italic
- [x] underline
- [x] blink
- [x] invert
- [x] hidden
- [x] strikethrough
- [ ] combinations
- [x] Color palette
- [ ] Error Handling
- [ ] log and show error's without crashing the application