1
Fork 0
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:
RGBCube 2022-11-18 20:08:11 +03:00
parent 8d0b07ecec
commit 7a2ae90fb3
2 changed files with 5 additions and 14 deletions

View file

@ -18,20 +18,11 @@ pub fn (p &PaintBrush) apply(msg string) string {
mut result := msg
// IS NOT IMPLEMENTED YET !!!
// 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) {
if fg := p.fg {
result = fg.apply(result)
}
bg := p.bg or { unsafe { nil } }
if !isnil(fg) {
result = bg.apply_bg(result)
if bg := p.bg {
result = bg.apply(result)
}
for style in p.styles {