Skip to content

Commit

Permalink
Add SimpleIcons icon pack. Fixes #103
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 5, 2020
1 parent 25392fe commit 19f54a7
Show file tree
Hide file tree
Showing 19 changed files with 7,574 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/sampler-javafx/sampler-javafx.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dependencies {
implementation project(':ikonli-paymentfont-pack')
implementation project(':ikonli-remixicon-pack')
implementation project(':ikonli-runestroicons-pack')
implementation project(':ikonli-simpleicons-pack')
implementation project(':ikonli-themify-pack')
implementation project(':ikonli-typicons-pack')
implementation project(':ikonli-weathericons-pack')
Expand Down
1 change: 1 addition & 0 deletions apps/sampler-javafx/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
requires org.kordamp.ikonli.paymentfont;
requires org.kordamp.ikonli.remixicon;
requires org.kordamp.ikonli.runestroicons;
requires org.kordamp.ikonli.simpleicons;
requires org.kordamp.ikonli.themify;
requires org.kordamp.ikonli.typicons;
requires org.kordamp.ikonli.weathericons;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
import org.kordamp.ikonli.remixicon.RemixiconAL;
import org.kordamp.ikonli.remixicon.RemixiconMZ;
import org.kordamp.ikonli.runestroicons.Runestroicons;
import org.kordamp.ikonli.simpleicons.SimpleIcons;
import org.kordamp.ikonli.themify.Themify;
import org.kordamp.ikonli.typicons.Typicons;
import org.kordamp.ikonli.weathericons.WeatherIcons;
Expand Down Expand Up @@ -191,6 +192,7 @@ public void start(Stage primaryStage) throws Exception {
tabPane.getTabs().add(new DemoTab(RemixiconAL.class, allOf(RemixiconAL.class)));
tabPane.getTabs().add(new DemoTab(RemixiconMZ.class, allOf(RemixiconMZ.class)));
tabPane.getTabs().add(new DemoTab(Runestroicons.class, allOf(Runestroicons.class)));
tabPane.getTabs().add(new DemoTab(SimpleIcons.class, allOf(SimpleIcons.class)));
tabPane.getTabs().add(new DemoTab(Themify.class, allOf(Themify.class)));
tabPane.getTabs().add(new DemoTab(Typicons.class, allOf(Typicons.class)));
tabPane.getTabs().add(new DemoTab(WeatherIcons.class, allOf(WeatherIcons.class)));
Expand Down
1 change: 1 addition & 0 deletions apps/sampler-swing/sampler-swing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dependencies {
implementation project(':ikonli-paymentfont-pack')
implementation project(':ikonli-remixicon-pack')
implementation project(':ikonli-runestroicons-pack')
implementation project(':ikonli-simpleicons-pack')
implementation project(':ikonli-typicons-pack')
implementation project(':ikonli-themify-pack')
implementation project(':ikonli-weathericons-pack')
Expand Down
1 change: 1 addition & 0 deletions apps/sampler-swing/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
requires org.kordamp.ikonli.paymentfont;
requires org.kordamp.ikonli.remixicon;
requires org.kordamp.ikonli.runestroicons;
requires org.kordamp.ikonli.simpleicons;
requires org.kordamp.ikonli.themify;
requires org.kordamp.ikonli.typicons;
requires org.kordamp.ikonli.weathericons;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
import org.kordamp.ikonli.remixicon.RemixiconAL;
import org.kordamp.ikonli.remixicon.RemixiconMZ;
import org.kordamp.ikonli.runestroicons.Runestroicons;
import org.kordamp.ikonli.simpleicons.SimpleIcons;
import org.kordamp.ikonli.swing.FontIcon;
import org.kordamp.ikonli.themify.Themify;
import org.kordamp.ikonli.typicons.Typicons;
Expand Down Expand Up @@ -188,6 +189,7 @@ private static void launch() {
createTab(tabPane, RemixiconAL.class, new DemoTab(allOf(RemixiconAL.class)));
createTab(tabPane, RemixiconMZ.class, new DemoTab(allOf(RemixiconMZ.class)));
createTab(tabPane, Runestroicons.class, new DemoTab(allOf(Runestroicons.class)));
createTab(tabPane, SimpleIcons.class, new DemoTab(allOf(SimpleIcons.class)));
createTab(tabPane, Typicons.class, new DemoTab(allOf(Typicons.class)));
createTab(tabPane, Themify.class, new DemoTab(allOf(Themify.class)));
createTab(tabPane, WeatherIcons.class, new DemoTab(allOf(WeatherIcons.class)));
Expand Down
3 changes: 3 additions & 0 deletions docs/guide/guide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ asciidoctor {
createIconGenerationTask(packName: 'remixicon', iconClassName: 'org.kordamp.ikonli.remixicon.RemixiconAL', iconName: 'remix', shortNameSize: 8, classifier: 'al'),
createIconGenerationTask(packName: 'remixicon', iconClassName: 'org.kordamp.ikonli.remixicon.RemixiconMZ', iconName: 'remix', shortNameSize: 8, classifier: 'mz'),
createIconGenerationTask(packName: 'runestroicons', iconClassName: 'org.kordamp.ikonli.runestroicons.Runestroicons', iconName: 'ri'),
createIconGenerationTask(packName: 'simpleicons', iconClassName: 'org.kordamp.ikonli.simpleicons.SimpleIcons', iconName: 'si'),
createIconGenerationTask(packName: 'typicons', iconClassName: 'org.kordamp.ikonli.typicons.Typicons', iconName: 'typcn', shortNameSize: 4),
createIconGenerationTask(packName: 'weathericons', iconClassName: 'org.kordamp.ikonli.weathericons.WeatherIcons', iconName: 'wi'),
createIconGenerationTask(packName: 'websymbols', iconClassName: 'org.kordamp.ikonli.websymbols.Websymbols', iconName: 'websymbols'),
Expand Down Expand Up @@ -210,6 +211,7 @@ asciidoctor {
paymentfontVersion : project.paymentfontVersion,
remixiconVersion : project.remixiconVersion,
runestroiconsVersion : project.runestroiconsVersion,
simpleiconsVersion : project.simpleiconsVersion,
typiconsVersion : project.typiconsVersion,
themifyVersion : project.themifyVersion,
weathericonsVersion : project.weathericonsVersion,
Expand Down Expand Up @@ -259,6 +261,7 @@ asciidoctor {
from project(':ikonli-paymentfont-pack').file("src/main/resources/META-INF/resources/paymentfont/${paymentfontVersion}")
from project(':ikonli-remixicon-pack').file("src/main/resources/META-INF/resources/remixicon/${remixiconVersion}")
from project(':ikonli-runestroicons-pack').file("src/main/resources/META-INF/resources/runestroicons/${runestroiconsVersion}")
from project(':ikonli-simpleicons-pack').file("src/main/resources/META-INF/resources/simpleicons/${simpleiconsVersion}")
from project(':ikonli-typicons-pack').file("src/main/resources/META-INF/resources/typicons/${typiconsVersion}")
from project(':ikonli-themify-pack').file("src/main/resources/META-INF/resources/themify/${themifyVersion}")
from project(':ikonli-weathericons-pack').file("src/main/resources/META-INF/resources/weathericons/${weathericonsVersion}")
Expand Down
13 changes: 13 additions & 0 deletions docs/guide/src/docs/asciidoc/cheat-sheet-simpleicons.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= SimpleIcons

++++
<link href='./css/simpleicons.css' rel='stylesheet'>
<style>
.si {
font-size: 32px;
}
</style>
++++

include::{gradle-projectdir}/build/tmp/_simpleicons_cheat_sheet.adoc[]

27 changes: 27 additions & 0 deletions docs/guide/src/docs/asciidoc/icon-packs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,33 @@ compile '{project-group}:ikonli-runestroicons-pack:{project-version}'
<version>{project-version}</version>
</dependency>
----

== SimpleIcons
* Module: `org.kordamp.ikonli.simpleicons`
* Font version: {simpleiconsVersion}
* link:https://simpleicons.org/[]
* link:cheat-sheet-simpleicons.html[Cheat-Sheet]

=== Installing

[source,groovy]
[subs="attributes"]
.gradle
----
compile '{project-group}:ikonli-simpleicons-pack:{project-version}'
----

[source,xml]
[subs="attributes,verbatim"]
.maven
----
<dependency>
<groupId>{project-group}</groupId>
<artifactId>ikonli-simpleicons-pack</artifactId>
<version>{project-version}</version>
</dependency>
----

== Themify
* Module: `org.kordamp.ikonli.themify`
* Font version: {themifyVersion}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ openiconicVersion = 1.1.0
paymentfontVersion = 1.2.5
remixiconVersion = 2.5.0
runestroiconsVersion = 5.6
simpleiconsVersion = 3.12.2
typiconsVersion = 2.0.7
themifyVersion = 1.0.1
weathericonsVersion = 2.0.10
Expand Down
22 changes: 22 additions & 0 deletions icon-packs/ikonli-simpleicons-pack/ikonli-simpleicons-pack.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2015-2020 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
dependencies {
api project(':ikonli-core')
compileOnly "org.kordamp.jipsy:jipsy:${jipsyVersion}"
annotationProcessor "org.kordamp.jipsy:jipsy:${jipsyVersion}"
}
25 changes: 25 additions & 0 deletions icon-packs/ikonli-simpleicons-pack/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2015-2020 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module org.kordamp.ikonli.simpleicons {
requires org.kordamp.ikonli.core;
requires static org.kordamp.jipsy;
exports org.kordamp.ikonli.simpleicons;

provides org.kordamp.ikonli.IkonHandler
with org.kordamp.ikonli.simpleicons.SimpleIconsIkonHandler;
}
Loading

0 comments on commit 19f54a7

Please sign in to comment.