Skip to content

Commit

Permalink
Merge pull request #98 from lukas-w/feature/new-icons-reduced
Browse files Browse the repository at this point in the history
Add more GNU/Linux distros and some projects
  • Loading branch information
Finii authored Nov 17, 2023
2 parents e50baf4 + 43d830a commit 6108b9c
Show file tree
Hide file tree
Showing 21 changed files with 192 additions and 59 deletions.
128 changes: 73 additions & 55 deletions README.md

Large diffs are not rendered by default.

Binary file modified assets/readme-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions icons.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,19 @@ offset name id
50 KDE Plasma kde-plasma
51 Kubuntu kubuntu
52 Kubuntu (inverse) kubuntu-inverse
53 Forgejo forgejo
54 FreeCAD freecad
55 Garuda Linux garuda
56 GIMP gimp
57 Gitea gitea
58 Hyperbola GNU/Linux-libre hyperbola
59 Inkscape inkscape
60 Kdenlive kdenlive
61 Krita krita
62 LXLE Linux lxle
63 MX Linux mxlinux
64 Parabola GNU/Linux-libre parabola
65 Puppy Linux puppy
66 QubesOS qubesos
67 Tails tails
68 Trisquel GNU/Linux trisquel
8 changes: 5 additions & 3 deletions templates/README.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Include an icon using the corresponding CSS class in an empty element:

Add `fl-fw` as class for a fixed width icon.

If you want to insert a glyph of this font on a GNU/Linux system press `Ctrl + Shift + u`, release the keys and then type the code point, for instance: `Ctrl + Shift + u` and `f31a` will insert the `Tux` glyph.

Available logos are:

{%- macro img(id) %}<img src="vectors/{{ id }}.svg" width="24">{% endmacro %}
Expand All @@ -41,11 +43,11 @@ Available logos are:
{%- set classW = maxIdLength + class("")|length %}
{%- set codeW = maxIdLength + code("")|length %}

| {{ "Distribution"|center(nameW) }} | {{ "CSS class"|center(classW) }} | {{ "Code"|center(codeW) }} | Code point | Image
| {{ "-".repeat(nameW) }} | {{ "-".repeat(classW) }} | {{ "-".repeat(codeW) }} | ---------- | -----------
| {{ "Distribution"|center(nameW) }} | {{ "CSS class"|center(classW) }} | {{ "Code"|center(codeW) }} | Code point | {{ "Image"|center(imgW) }} |
| {{ "-".repeat(nameW) }} | {{ "-".repeat(classW) }} | {{ "-".repeat(codeW) }} | :--------: | :{{ "-".repeat(imgW-2) }}: |
{%- for id in ids %}
{%- set icon=icons[id] %}
| {{ icon.name.padEnd(nameW) }} | {{ class(id).padEnd(classW) }} | {{ code(id).padEnd(codeW)|safe }} | `0x{{ icon.codepoint.toString(16) }}` | {{ img(id) }}
| {{ icon.name.padEnd(nameW) }} | {{ class(id).padEnd(classW) }} | {{ code(id).padEnd(codeW)|safe }} | `0x{{ icon.codepoint.toString(16) }}` | {{ img(id).padEnd(imgW)|safe }} |
{%- endfor %}

## Building ##
Expand Down
2 changes: 1 addition & 1 deletion templates/assets/readme-header.html.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link href="font-logos.css" rel="stylesheet">

{% set icons = uniqueIcons %} {# Don't include variants (...-inverse) #}
{% set rows = 2 %}
{% set rows = 4 %}
{% set n = icons|length %}
{% set nPerRow = (n / rows) | round(0, "ceil") %}
{% set paddingPx = 5 %}
Expand Down
4 changes: 4 additions & 0 deletions vectors/forgejo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions vectors/freecad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions vectors/garuda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions vectors/gimp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions vectors/gitea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions vectors/hyperbola.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions vectors/inkscape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions vectors/kdenlive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions vectors/krita.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions vectors/lxle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions vectors/mxlinux.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions vectors/parabola.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6108b9c

Please sign in to comment.