Skip to content

Instantly share code, notes, and snippets.

@JoeyEremondi
Created July 5, 2014 04:34
Show Gist options
  • Save JoeyEremondi/9b4ebf3d26d561ba4c92 to your computer and use it in GitHub Desktop.
Save JoeyEremondi/9b4ebf3d26d561ba4c92 to your computer and use it in GitHub Desktop.
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