git.iko.soy/typeable/elm-ui
on master help sign in
higher contrast on test results viewer
3afcd91Matthew Griffith
tests/Tests/Palette.elm+5−1
@@ -1,4 +1,4 @@
1−module Tests.Palette exposing (..)
1+module Tests.Palette exposing (black, blue, darkCharcoal, darkGrey, green, grey, lightGrey, red, rgba, white)
2
2
3{-| -}
3{-| -}
4
4
@@ -9,6 +9,10 @@ rgba r g b a =
9 Element.rgba (r / 255) (g / 255) (b / 255) a
9 Element.rgba (r / 255) (g / 255) (b / 255) a
10
10
11
11
12+black =
13+ Element.rgb 0 0 0
14+
15+
12darkGrey =
16darkGrey =
13 Element.rgb 0.8 0.8 0.8
17 Element.rgb 0.8 0.8 0.8
14
18
tests/src/Testable/Runner.elm+4−3
@@ -34,6 +34,7 @@ palette =
34 { white = Element.rgb 1 1 1
34 { white = Element.rgb 1 1 1
35 , red = Element.rgb 1 0 0
35 , red = Element.rgb 1 0 0
36 , green = Element.rgb 0 1 0
36 , green = Element.rgb 0 1 0
37+ , black = Element.rgb 0 0 0
37 , lightGrey = Element.rgb 0.7 0.7 0.7
38 , lightGrey = Element.rgb 0.7 0.7 0.7
38 }
39 }
39
40
@@ -342,7 +343,7 @@ viewResult testable =
342 ( label, Nothing ) ->
343 ( label, Nothing ) ->
343 Element.el
344 Element.el
344 [ Background.color palette.green
345 [ Background.color palette.green
345− , Font.color palette.white
346+ , Font.color palette.black
346 , Element.paddingXY 20 10
347 , Element.paddingXY 20 10
347 , Element.alignLeft
348 , Element.alignLeft
348 , Border.rounded 3
349 , Border.rounded 3
@@ -353,7 +354,7 @@ viewResult testable =
353 ( label, Just ({ given, description } as reason) ) ->
354 ( label, Just ({ given, description } as reason) ) ->
354 Element.column
355 Element.column
355 [ Background.color palette.red
356 [ Background.color palette.red
356− , Font.color palette.white
357+ , Font.color palette.black
357 , Element.paddingXY 20 10
358 , Element.paddingXY 20 10
358 , Element.alignLeft
359 , Element.alignLeft
359 , Element.width Element.shrink
360 , Element.width Element.shrink
@@ -382,7 +383,7 @@ viewResult testable =
382 [ Element.alignLeft
383 [ Element.alignLeft
383 , Element.spacing 20
384 , Element.spacing 20
384 , Background.color palette.green
385 , Background.color palette.green
385− , Font.color palette.white
386+ , Font.color palette.black
386 , Element.paddingXY 20 10
387 , Element.paddingXY 20 10
387 , Element.alignLeft
388 , Element.alignLeft
388 , Border.rounded 3
389 , Border.rounded 3