Skip to content

Commit

Permalink
Add AntDesign icon pack. Fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Nov 7, 2020
1 parent 4ca83f1 commit bd19165
Show file tree
Hide file tree
Showing 26 changed files with 3,588 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 @@ -24,6 +24,7 @@ mainClassName = 'org.kordamp.ikonli.sampler.javafx.Sampler'
dependencies {
implementation project(':ikonli-core')
implementation project(':ikonli-javafx')
implementation project(':ikonli-antdesignicons-pack')
implementation project(':ikonli-boxicons-pack')
implementation project(':ikonli-bpmn-pack')
implementation project(':ikonli-captainicon-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 @@ -22,6 +22,7 @@
requires javafx.fxml;
requires org.kordamp.ikonli.core;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.ikonli.antdesignicons;
requires org.kordamp.ikonli.boxicons;
requires org.kordamp.ikonli.bpmn;
requires org.kordamp.ikonli.captainicon;
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 @@ -22,6 +22,7 @@ mainClassName = 'org.kordamp.ikonli.sampler.swing.Sampler'
dependencies {
implementation project(':ikonli-core')
implementation project(':ikonli-swing')
implementation project(':ikonli-antdesignicons-pack')
implementation project(':ikonli-boxicons-pack')
implementation project(':ikonli-bpmn-pack')
implementation project(':ikonli-captainicon-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 @@ -19,6 +19,7 @@
requires java.desktop;
requires org.kordamp.ikonli.core;
requires org.kordamp.ikonli.swing;
requires org.kordamp.ikonli.antdesignicons;
requires org.kordamp.ikonli.boxicons;
requires org.kordamp.ikonli.bpmn;
requires org.kordamp.ikonli.captainicon;
Expand Down
4 changes: 4 additions & 0 deletions docs/guide/guide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def createIconGenerationTask(Map args) {

asciidoctor {
dependsOn createIconGenerationTask(packName: 'devicons', iconClassName: 'org.kordamp.ikonli.devicons.Devicons'),
createIconGenerationTask(packName: 'antdesignicons', iconClassName: 'org.kordamp.ikonli.antdesignicons.AntDesignIconsFilled', iconName: 'antf', shortNameSize: 5, classifier: 'filled'),
createIconGenerationTask(packName: 'antdesignicons', iconClassName: 'org.kordamp.ikonli.antdesignicons.AntDesignIconsOutlined', iconName: 'anto', shortNameSize: 5, classifier: 'outlined'),
createIconGenerationTask(packName: 'boxicons', iconClassName: 'org.kordamp.ikonli.boxicons.BoxiconsLogos', iconName: 'bxl', shortNameSize: 4, classifier: 'logos'),
createIconGenerationTask(packName: 'boxicons', iconClassName: 'org.kordamp.ikonli.boxicons.BoxiconsRegular', iconName: 'bx', shortNameSize: 3, classifier: 'regular'),
createIconGenerationTask(packName: 'boxicons', iconClassName: 'org.kordamp.ikonli.boxicons.BoxiconsSolid', iconName: 'bxs', shortNameSize: 4, classifier: 'solid'),
Expand Down Expand Up @@ -199,6 +201,7 @@ asciidoctor {

attributes = [
ikonliJdk8Version : project.ikonliJdk8Version,
antdesigniconsVersion : project.antdesigniconsVersion,
boxiconsVersion : project.boxiconsVersion,
bpmnVersion : project.bpmnVersion,
captainiconVersion : project.captainiconVersion,
Expand Down Expand Up @@ -258,6 +261,7 @@ asciidoctor {

resources {
from file('src/resources')
from project(':ikonli-antdesignicons-pack').file("src/main/resources/META-INF/resources/antdesignicons/${antdesigniconsVersion}")
from project(':ikonli-boxicons-pack').file("src/main/resources/META-INF/resources/boxicons/${boxiconsVersion}")
from project(':ikonli-bpmn-pack').file("src/main/resources/META-INF/resources/bpmn/${bpmnVersion}")
from project(':ikonli-captainicon-pack').file("src/main/resources/META-INF/resources/captainicon/${captainiconVersion}")
Expand Down
30 changes: 30 additions & 0 deletions docs/guide/src/docs/asciidoc/cheat-sheet-antdesignicons.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
= AntDesignIcons

Use the indicated enum type for each set.

== Filled (AntDesignIconsFilled)

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

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

== Outlined (BoxiconsOutlined)

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

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

26 changes: 26 additions & 0 deletions docs/guide/src/docs/asciidoc/icon-packs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@
[[_cheat_sheets]]
= Icon Packs

== AntDesignIcons
* Module: `org.kordamp.ikonli.antdesignicons`
* Font version: {antdesigniconsVersion}
* link:https://github.com/ant-design/ant-design-icons[]
* link:cheat-sheet-antdesignicons.html[Cheat-Sheet]

=== Installing

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

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

== Boxicons
* Module: `org.kordamp.ikonli.boxicons`
* Font version: {boxiconsVersion}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ kordampPluginVersion = 0.41.0
kordampBuildVersion = 2.0.0
gitPluginVersion = 3.0.0

antdesigniconsVersion = 4.0.0
boxiconsVersion = 2.0.7
bpmnVersion = 0.10.0
captainiconVersion = 20140501
Expand Down
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}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* 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.antdesignicons {
requires org.kordamp.ikonli.core;
requires static org.kordamp.jipsy;
exports org.kordamp.ikonli.antdesignicons;

provides org.kordamp.ikonli.IkonHandler
with org.kordamp.ikonli.antdesignicons.AntDesignIconsFilledIkonHandler,
org.kordamp.ikonli.antdesignicons.AntDesignIconsOutlinedIkonHandler;
provides org.kordamp.ikonli.IkonProvider
with org.kordamp.ikonli.antdesignicons.AntDesignIconsFilledIkonProvider,
org.kordamp.ikonli.antdesignicons.AntDesignIconsOutlinedIkonProvider;
}
Loading

0 comments on commit bd19165

Please sign in to comment.