summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-03-06 16:14:20 +0100
committerYorhel <git@yorhel.nl>2021-03-06 16:14:22 +0100
commit4cf49275519dd6950c60a60e9b7e09f7630b3f0d (patch)
tree35d54589dc0507a4ff7c2b7879ec5aec6421aa8e /elm
parent08ae3b6f10ca0ba31b76aa1f260c615ce211e808 (diff)
SVG platform icons
Still kind of experimental, let's see how people react. Icons contributed by eacil. Some are colored versions based on the SVG icons contributed by xy2, some are vectorized versions of old icons. These retain much of the legibility of the old png icons by virtue of not being monochrome. At least for the dark skins. I may experiment later to see if the monochrome icons may be a solution for light skins, now that I have the infrastructure in place anyway. Not sure I really want to maintain two icon sets, though. I used scour to optimize the SVGs for size, but they're still rather less efficient than the combined PNG sprites. Maybe I'll use an SVG merge trick later, but that tends to be less widely supported among browsers. Closes #30.
Diffstat (limited to 'elm')
-rw-r--r--elm/Lib/Html.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/Html.elm b/elm/Lib/Html.elm
index 01f5d844..e63bd3d9 100644
--- a/elm/Lib/Html.elm
+++ b/elm/Lib/Html.elm
@@ -205,7 +205,7 @@ langIcon : String -> Html m
langIcon l = abbr [ class "icons lang", class l, title (Maybe.withDefault "" <| lookup l T.languages) ] [ text " " ]
platformIcon : String -> Html m
-platformIcon l = abbr [ class "icons", class l, title (Maybe.withDefault "" <| lookup l T.platforms) ] [ text " " ]
+platformIcon l = abbr [ class "icons plat", class l, title (Maybe.withDefault "" <| lookup l T.platforms) ] [ text " " ]
releaseTypeIcon : String -> Html m
releaseTypeIcon t = abbr [ class ("icons rt"++t), title (Maybe.withDefault "" <| lookup t T.releaseTypes) ] [ text " " ]