| Author | Karl Tauber <email> |
|---|---|
| Date | 2016-04-15 17:09:15 GMT+0200 |
| Commit | 6ee7394db6e85c122231ef49da06f20e4bc5f22c |
| Parent | 196f453 |
| repositories { | ||
| - mavenCentral() | ||
| + jcenter() | ||
| } | ||
| dependencies { | ||
| compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.6.10' | ||
| compile group: 'com.miglayout', name: 'miglayout-javafx', version: '5.0' | ||
| - compile group: 'de.jensd', name: 'fontawesomefx', version: '8.9' | ||
| + compile group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.5.0' | ||
| compile group: 'org.pegdown', name: 'pegdown', version: '1.6.0' | ||
| import javafx.stage.DirectoryChooser; | ||
| import org.markdownwriterfx.Messages; | ||
| -import de.jensd.fx.glyphs.GlyphsDude; | ||
| import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon; | ||
| +import de.jensd.fx.glyphs.fontawesome.utils.FontAwesomeIconFactory; | ||
| /** | ||
| { | ||
| public BrowseDirectoryButton() { | ||
| - setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.FOLDER_ALT, "1.2em")); | ||
| + setGraphic(FontAwesomeIconFactory.get().createIcon(FontAwesomeIcon.FOLDER_ALT, "1.2em")); | ||
| setTooltip(new Tooltip(Messages.get("BrowseDirectoryButton.tooltip"))); | ||
| } | ||
| import javafx.stage.FileChooser.ExtensionFilter; | ||
| import org.markdownwriterfx.Messages; | ||
| -import de.jensd.fx.glyphs.GlyphsDude; | ||
| import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon; | ||
| +import de.jensd.fx.glyphs.fontawesome.utils.FontAwesomeIconFactory; | ||
| /** | ||
| public BrowseFileButton() { | ||
| - setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.FILE_ALT, "1.2em")); | ||
| + setGraphic(FontAwesomeIconFactory.get().createIcon(FontAwesomeIcon.FILE_ALT, "1.2em")); | ||
| setTooltip(new Tooltip(Messages.get("BrowseFileButton.tooltip"))); | ||
| setOnAction(this::browse); | ||
| import javafx.scene.control.ToolBar; | ||
| import javafx.scene.control.Tooltip; | ||
| -import de.jensd.fx.glyphs.GlyphsDude; | ||
| +import de.jensd.fx.glyphs.fontawesome.utils.FontAwesomeIconFactory; | ||
| /** | ||
| menuItem.setAccelerator(action.accelerator); | ||
| if (action.icon != null) | ||
| - menuItem.setGraphic(GlyphsDude.createIcon(action.icon)); | ||
| + menuItem.setGraphic(FontAwesomeIconFactory.get().createIcon(action.icon)); | ||
| menuItem.setOnAction(action.action); | ||
| if (action.disable != null) | ||
| public static Button createToolBarButton(Action action) { | ||
| Button button = new Button(); | ||
| - button.setGraphic(GlyphsDude.createIcon(action.icon, "1.2em")); | ||
| + button.setGraphic(FontAwesomeIconFactory.get().createIcon(action.icon, "1.2em")); | ||
| String tooltip = action.text; | ||
| if (tooltip.endsWith("...")) | ||
| Delta | 9 lines added, 9 lines removed |
|---|