Skip to content

Commit

Permalink
Tweak to style
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 11, 2024
1 parent 522fadf commit 6fe3243
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/core/yossarian.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ object Yossarian:

given Debug[Style] = style =>
Map
(t"Bo" -> Bit.Bold(style),
t"F" -> Bit.Faint(style),
t"I" -> Bit.Italic(style),
t"S" -> Bit.Strike(style),
t"Bl" -> Bit.Blink(style),
t"U" -> Bit.Underline(style),
t"C" -> Bit.Conceal(style),
t"R" -> Bit.Reverse(style))
.map { (key, value) => if value then key else t"!$key" }
.join(t"[", t" ", t" ${Foreground(style).inspect} ${Background(style).inspect}]")
(t"Bo" -> Bit.Bold(style),
t"F" -> Bit.Faint(style),
t"I" -> Bit.Italic(style),
t"S" -> Bit.Strike(style),
t"Bl" -> Bit.Blink(style),
t"U" -> Bit.Underline(style),
t"C" -> Bit.Conceal(style),
t"R" -> Bit.Reverse(style))
. map { (key, value) => if value then key else t"!$key" }
. join(t"[", t" ", t" ${Foreground(style).inspect} ${Background(style).inspect}]")

enum Bit:
case Bold, Faint, Italic, Strike, Blink, Underline, Conceal, Reverse
Expand Down

0 comments on commit 6fe3243

Please sign in to comment.