git.iko.soy/typeable/elm-ui
on master help sign in
higher contrast on test results viewer
commit3afcd91db1e60ba8171b0ed709d58bcd878698e7 authorMatthew Griffith <mdg.griffith@gmail.com> dateSat 29 Sep 2018, 13:02 (8 years ago) parentfb68f5b
2 files changed+9−4
tests/Tests/Palette.elm+5−1 tests/src/Testable/Runner.elm+4−3
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)
22
33{-| -}
44
@@ -9,6 +9,10 @@ rgba r g b a =
99 Element.rgba (r / 255) (g / 255) (b / 255) a
1010
1111
12+black =
13+ Element.rgb 0 0 0
14+
15+
1216darkGrey =
1317 Element.rgb 0.8 0.8 0.8
1418
tests/src/Testable/Runner.elm+4−3
@@ -34,6 +34,7 @@ palette =
3434 { white = Element.rgb 1 1 1
3535 , red = Element.rgb 1 0 0
3636 , green = Element.rgb 0 1 0
37+ , black = Element.rgb 0 0 0
3738 , lightGrey = Element.rgb 0.7 0.7 0.7
3839 }
3940
@@ -342,7 +343,7 @@ viewResult testable =
342343 ( label, Nothing ) ->
343344 Element.el
344345 [ Background.color palette.green
345− , Font.color palette.white
346+ , Font.color palette.black
346347 , Element.paddingXY 20 10
347348 , Element.alignLeft
348349 , Border.rounded 3
@@ -353,7 +354,7 @@ viewResult testable =
353354 ( label, Just ({ given, description } as reason) ) ->
354355 Element.column
355356 [ Background.color palette.red
356− , Font.color palette.white
357+ , Font.color palette.black
357358 , Element.paddingXY 20 10
358359 , Element.alignLeft
359360 , Element.width Element.shrink
@@ -382,7 +383,7 @@ viewResult testable =
382383 [ Element.alignLeft
383384 , Element.spacing 20
384385 , Background.color palette.green
385− , Font.color palette.white
386+ , Font.color palette.black
386387 , Element.paddingXY 20 10
387388 , Element.alignLeft
388389 , Border.rounded 3