mirror of
https://github.com/RGBCube/color.v
synced 2025-08-01 10:27:45 +00:00
Turns out it is implemented (and reformat)
This commit is contained in:
parent
8d0b07ecec
commit
7a2ae90fb3
2 changed files with 5 additions and 14 deletions
|
@ -18,20 +18,11 @@ pub fn (p &PaintBrush) apply(msg string) string {
|
||||||
|
|
||||||
mut result := msg
|
mut result := msg
|
||||||
|
|
||||||
// IS NOT IMPLEMENTED YET !!!
|
if fg := p.fg {
|
||||||
// if fg := p.fg {
|
|
||||||
// result = fg.apply(result)
|
|
||||||
// }
|
|
||||||
// if bg := p.bg {
|
|
||||||
// result = bg.apply(result)
|
|
||||||
// }
|
|
||||||
fg := p.fg or { unsafe { nil } }
|
|
||||||
if !isnil(fg) {
|
|
||||||
result = fg.apply(result)
|
result = fg.apply(result)
|
||||||
}
|
}
|
||||||
bg := p.bg or { unsafe { nil } }
|
if bg := p.bg {
|
||||||
if !isnil(fg) {
|
result = bg.apply(result)
|
||||||
result = bg.apply_bg(result)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for style in p.styles {
|
for style in p.styles {
|
||||||
|
|
|
@ -8,8 +8,8 @@ pub const (
|
||||||
dim = Style.dim
|
dim = Style.dim
|
||||||
italic = Style.italic
|
italic = Style.italic
|
||||||
underline = Style.underline
|
underline = Style.underline
|
||||||
slow_blink = Style.slow_blink
|
slow_blink = Style.slow_blink
|
||||||
rapid_blink = Style.rapid_blink
|
rapid_blink = Style.rapid_blink
|
||||||
inverse = Style.inverse
|
inverse = Style.inverse
|
||||||
hidden = Style.hidden
|
hidden = Style.hidden
|
||||||
strikethrough = Style.strikethrough
|
strikethrough = Style.strikethrough
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue