mirror of
https://github.com/Orasund/elm-ui-widgets.git
synced 2024-11-22 13:14:10 +03:00
Refactor ProgressIndicatorStyle record from icon to containerFunction
This commit is contained in:
parent
b1d75d259b
commit
d0178f37f6
@ -286,7 +286,7 @@ sortTable =
|
|||||||
|
|
||||||
progressIndicatorStyle : ProgressIndicatorStyle msg
|
progressIndicatorStyle : ProgressIndicatorStyle msg
|
||||||
progressIndicatorStyle =
|
progressIndicatorStyle =
|
||||||
{ icon =
|
{ containerFunction =
|
||||||
\maybeProgress ->
|
\maybeProgress ->
|
||||||
case maybeProgress of
|
case maybeProgress of
|
||||||
Nothing ->
|
Nothing ->
|
||||||
|
@ -9,4 +9,4 @@ circularProgressIndicator :
|
|||||||
-> Maybe Float
|
-> Maybe Float
|
||||||
-> Element msg
|
-> Element msg
|
||||||
circularProgressIndicator style maybeProgress =
|
circularProgressIndicator style maybeProgress =
|
||||||
style.icon maybeProgress
|
style.containerFunction maybeProgress
|
||||||
|
@ -136,5 +136,5 @@ type alias LayoutStyle msg =
|
|||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
type alias ProgressIndicatorStyle msg =
|
type alias ProgressIndicatorStyle msg =
|
||||||
{ icon : Maybe Float -> Element msg
|
{ containerFunction : Maybe Float -> Element msg
|
||||||
}
|
}
|
||||||
|
@ -1313,7 +1313,7 @@ determinateCircularIcon color attribs progress =
|
|||||||
|
|
||||||
progressIndicator : Palette -> ProgressIndicatorStyle msg
|
progressIndicator : Palette -> ProgressIndicatorStyle msg
|
||||||
progressIndicator palette =
|
progressIndicator palette =
|
||||||
{ icon =
|
{ containerFunction =
|
||||||
\maybeProgress ->
|
\maybeProgress ->
|
||||||
case maybeProgress of
|
case maybeProgress of
|
||||||
Nothing ->
|
Nothing ->
|
||||||
|
@ -352,7 +352,7 @@ progressIndicator string =
|
|||||||
-}
|
-}
|
||||||
progressIndicator : String -> ProgressIndicatorStyle msg
|
progressIndicator : String -> ProgressIndicatorStyle msg
|
||||||
progressIndicator string =
|
progressIndicator string =
|
||||||
{ icon = (\_ -> icon <| string ++ ":icon")
|
{ containerFunction = (\_ -> icon <| string ++ ":icon")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user