Swap order of TextSticker arguments
This commit is contained in:
parent
a74bb1039b
commit
a5345d5dc6
|
@ -88,5 +88,5 @@ update msg model = case Debug.log "UPDATE" (msg, model) of
|
|||
{ model | windowW = w, windowH = h }
|
||||
|> withoutCmd
|
||||
(Click x y, {stickers}) ->
|
||||
{ model | stickers = (Sticker (TextSticker "<3" "red") "Into This" x y ) :: stickers }
|
||||
{ model | stickers = (Sticker (TextSticker "red" "<3" ) "Into This" x y ) :: stickers }
|
||||
|> withoutCmd
|
|
@ -14,7 +14,7 @@ type alias Sticker =
|
|||
}
|
||||
|
||||
type StickerContent
|
||||
= TextSticker String {- Text -} String {- Color -}
|
||||
= TextSticker String {- Color -} String {- Text -}
|
||||
|
||||
viewSticker : Sticker -> Svg msg
|
||||
viewSticker sticker =
|
||||
|
@ -24,7 +24,7 @@ viewSticker sticker =
|
|||
, y <| fromInt (sticker.y + 100)
|
||||
]
|
||||
in case sticker.content of
|
||||
TextSticker textContent color ->
|
||||
TextSticker color textContent ->
|
||||
text_
|
||||
( fill color
|
||||
:: fontSize "200px"
|
||||
|
|
Loading…
Reference in a new issue