Skip to content

Commit

Permalink
view Volume slider track
Browse files Browse the repository at this point in the history
  • Loading branch information
cbossut committed Jan 24, 2020
1 parent 4dd090e commit 95d49e9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Editor/Common.elm
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,17 @@ viewContentButton w msg =

viewVolumeSlider : Wheeled x -> (Float -> msg) -> Element msg
viewVolumeSlider w msgF =
Input.slider []
Input.slider
[ behindContent <|
el
[ width fill
, height <| px 2
, centerY
, Bg.color <| rgb 0 0 0
, Border.rounded 2
]
Element.none
]
{ label = Input.labelAbove [] <| text "Volume"
, onChange = msgF
, value = w.wheel.volume
Expand Down

0 comments on commit 95d49e9

Please sign in to comment.