Put default theme into companion object
This commit is contained in:
parent
afa854c55d
commit
7ab755c540
|
@ -15,11 +15,12 @@ case class Theme(styles: Map[String, fansi.Attrs], figletFonts: Map[String, Stri
|
|||
def extend(newFonts: Map[String, String])(implicit d: DummyImplicit) = copy(figletFonts = figletFonts ++ newFonts)
|
||||
def ++(newFonts: Map[String, String])(implicit d: DummyImplicit) = copy(figletFonts = figletFonts ++ newFonts)
|
||||
|
||||
given default: Theme = Theme(Map(
|
||||
object Theme:
|
||||
given default: Theme = Theme(Map(
|
||||
"titleLine" -> (fansi.Bold.On ++ fansi.Color.DarkGray),
|
||||
"code" -> fansi.Color.Yellow
|
||||
),
|
||||
Map("titleLine" -> "pagga")
|
||||
Map("titleLine" -> "smbraille")
|
||||
)
|
||||
|
||||
object Format:
|
||||
|
|
Loading…
Reference in a new issue