Created
July 5, 2014 04:34
-
-
Save JoeyEremondi/9b4ebf3d26d561ba4c92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Graphics.Input (Input, input, dropDown) | |
import Text | |
main : Signal Element | |
main = lift display style.signal | |
style : Input String | |
style = input <| snd <| head colorOptions | |
display : String -> Element | |
display s = | |
let msg = toText "Choose a style for the following text: " in | |
flow down [ dropDown style.handle colorOptions, plainText s] | |
colorOptions : [(String, String)] | |
colorOptions = [ ("black" , "black.jpg") | |
, ("orange", "orange.jpg") | |
, ("grid", "grid.jpg") | |
, ("stripes", "stripes.jpg") | |
, ("camo", "camo.jpg") | |
, ("brick", "brick.jpg") | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment