diff options
author | Yorhel <git@yorhel.nl> | 2021-03-06 16:14:20 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-03-06 16:14:22 +0100 |
commit | 4cf49275519dd6950c60a60e9b7e09f7630b3f0d (patch) | |
tree | 35d54589dc0507a4ff7c2b7879ec5aec6421aa8e /lib/VNWeb/Misc | |
parent | 08ae3b6f10ca0ba31b76aa1f260c615ce211e808 (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 'lib/VNWeb/Misc')
-rw-r--r-- | lib/VNWeb/Misc/HomePage.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Misc/HomePage.pm b/lib/VNWeb/Misc/HomePage.pm index c591568a..b3495643 100644 --- a/lib/VNWeb/Misc/HomePage.pm +++ b/lib/VNWeb/Misc/HomePage.pm @@ -189,7 +189,7 @@ sub releases_ { span_ sub { rdate_ $_->{released}; txt_ ' '; - abbr_ class => "icons $_", title => $PLATFORM{$_}, '' for $_->{plat}->@*; + abbr_ class => "icons plat $_", title => $PLATFORM{$_}, '' for $_->{plat}->@*; abbr_ class => "icons lang $_", title => $LANGUAGE{$_}, '' for $_->{lang}->@*; txt_ ' '; a_ href => "/$_->{id}", title => $_->{original}||$_->{title}, $_->{title}; |