Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829module Theme exposing (..)
import Html exposing (Html)import Json.Decode as Decodeimport Json.Encode as Encodeimport Material.Icons.Types exposing (Icon)
type alias Id = { id : String }
type alias Theme msg model = { id : String , title : String , icon : Icon msg , view : model -> Html msg }
idDecoder : Decode.Decoder IdidDecoder = Decode.map (\s -> { id = s }) Decode.string
encodeId : Id -> Encode.ValueencodeId { id } = Encode.string id