Skip to content

Commit

Permalink
rtfeldman#446 remove unused styles / colours
Browse files Browse the repository at this point in the history
  • Loading branch information
frankschmitt committed Oct 27, 2020
1 parent 39abf19 commit bc970d2
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions elm/src/Console/Text.elm
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,6 @@ plain =


-- FOREGROUND COLORS --


default : String -> Text
default =
Text { foreground = Default, background = Default, style = Normal, modifiers = [] }


red : String -> Text
red =
Text { foreground = Red, background = Default, style = Normal, modifiers = [] }
Expand All @@ -104,41 +97,6 @@ yellow =
Text { foreground = Yellow, background = Default, style = Normal, modifiers = [] }


black : String -> Text
black =
Text { foreground = Black, background = Default, style = Normal, modifiers = [] }


blue : String -> Text
blue =
Text { foreground = Blue, background = Default, style = Normal, modifiers = [] }


magenta : String -> Text
magenta =
Text { foreground = Magenta, background = Default, style = Normal, modifiers = [] }


cyan : String -> Text
cyan =
Text { foreground = Cyan, background = Default, style = Normal, modifiers = [] }


white : String -> Text
white =
Text { foreground = White, background = Default, style = Normal, modifiers = [] }


inverted : Text -> Text
inverted txt =
case txt of
Text styles str ->
Text { styles | modifiers = Inverted :: styles.modifiers } str

Texts texts ->
Texts (List.map inverted texts)


dark : Text -> Text
dark txt =
case txt of
Expand All @@ -153,16 +111,6 @@ dark txt =
-- STYLES --


bold : Text -> Text
bold txt =
case txt of
Text styles str ->
Text { styles | style = Bold } str

Texts texts ->
Texts (List.map dark texts)


underline : Text -> Text
underline txt =
case txt of
Expand Down

0 comments on commit bc970d2

Please sign in to comment.