mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-05 08:34:38 +03:00
actually use the attribute!
This commit is contained in:
parent
6b7fc0e5ef
commit
d3ff15072d
@ -270,7 +270,7 @@ view { focusAndSelect, selected } attrs tabs =
|
||||
{ focusAndSelect = focusAndSelect
|
||||
, selected = selected
|
||||
, tabs = List.map (\(Tab t) -> t) tabs
|
||||
, tabStyles = tabStyles config.spacing
|
||||
, tabStyles = tabStyles config.spacing config.fadeToPanelBackgroundColor
|
||||
, tabListStyles = stylesTabsAligned config
|
||||
}
|
||||
in
|
||||
@ -369,15 +369,20 @@ maybeStyle styler maybeValue =
|
||||
Css.batch []
|
||||
|
||||
|
||||
tabStyles : Maybe Float -> Int -> Bool -> List Style
|
||||
tabStyles customSpacing index isSelected =
|
||||
tabStyles : Maybe Float -> Css.Color -> Int -> Bool -> List Style
|
||||
tabStyles customSpacing fadeToPanelBackgroundColor_ index isSelected =
|
||||
let
|
||||
stylesDynamic =
|
||||
if isSelected then
|
||||
[ Css.backgroundColor Colors.white
|
||||
, Css.borderBottom (Css.px 1)
|
||||
[ Css.borderBottom (Css.px 1)
|
||||
, Css.borderBottomStyle Css.solid
|
||||
, Css.borderBottomColor Colors.white
|
||||
, Css.backgroundColor Colors.white
|
||||
, Css.borderBottomColor fadeToPanelBackgroundColor_
|
||||
, Css.backgroundImage <|
|
||||
Css.linearGradient2 Css.toTop
|
||||
(Css.stop2 (withAlpha 1 fadeToPanelBackgroundColor_) (Css.pct 0))
|
||||
(Css.stop2 (withAlpha 0 fadeToPanelBackgroundColor_) (Css.pct 25))
|
||||
[ Css.stop2 (withAlpha 0 fadeToPanelBackgroundColor_) (Css.pct 100) ]
|
||||
]
|
||||
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user