From b782cc006db922937710756d0d2b57a6d082ecce Mon Sep 17 00:00:00 2001 From: tobias <thinkdifferent055@gmail.com> Date: Tue, 1 Dec 2020 10:08:35 +0100 Subject: [PATCH] Define content player icon in xml, rename content player id, increase playlist drag option icon size --- .../java/de/tobias/playpad/pad/drag/PlaylistDragOption.java | 4 +++- .../src/main/resources/PadContent.xml | 5 ++++- .../plugin/content/pad/ContentPlayerPadContentFactory.scala | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PlayWall/src/main/java/de/tobias/playpad/pad/drag/PlaylistDragOption.java b/PlayWall/src/main/java/de/tobias/playpad/pad/drag/PlaylistDragOption.java index f1917de1..69e86ec2 100644 --- a/PlayWall/src/main/java/de/tobias/playpad/pad/drag/PlaylistDragOption.java +++ b/PlayWall/src/main/java/de/tobias/playpad/pad/drag/PlaylistDragOption.java @@ -33,6 +33,8 @@ public class PlaylistDragOption implements ContentDragOption { @Override public Node getGraphics() { - return new FontIcon(FontAwesomeType.PLUS_CIRCLE); + final FontIcon fontIcon = new FontIcon(FontAwesomeType.PLUS_CIRCLE); + fontIcon.setSize(30); + return fontIcon; } } diff --git a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/resources/PadContent.xml b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/resources/PadContent.xml index 15e058b9..32da3b2a 100644 --- a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/resources/PadContent.xml +++ b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/resources/PadContent.xml @@ -1,3 +1,6 @@ <Actions> - <Component id="video" name="plugin.content.Player.name">de.tobias.playpad.plugin.content.pad.ContentPlayerPadContentFactory</Component> + <Component id="content_player" name="plugin.content.Player.name" icon="MONITOR_MULTIPLE" + class="de.thecodelabs.utils.ui.icon.MaterialDesignIcon" + size="30">de.tobias.playpad.plugin.content.pad.ContentPlayerPadContentFactory + </Component> </Actions> \ No newline at end of file diff --git a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerPadContentFactory.scala b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerPadContentFactory.scala index 774ac584..d08958d5 100644 --- a/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerPadContentFactory.scala +++ b/PlayWallPlugins/PlayWallPluginContentPlayer/src/main/scala/de/tobias/playpad/plugin/content/pad/ContentPlayerPadContentFactory.scala @@ -1,11 +1,9 @@ package de.tobias.playpad.plugin.content.pad -import de.thecodelabs.utils.ui.icon.{FontIcon, MaterialDesignIcon} import de.tobias.playpad.pad.Pad import de.tobias.playpad.pad.content.{PadContent, PadContentFactory} import de.tobias.playpad.pad.view.IPadContentView import de.tobias.playpad.viewcontroller.PadSettingsTabViewController -import javafx.scene.Node import javafx.scene.layout.Pane class ContentPlayerPadContentFactory(val `type`: String) extends PadContentFactory(`type`) { @@ -17,8 +15,6 @@ class ContentPlayerPadContentFactory(val `type`: String) extends PadContentFacto override def getSettingsViewController(pad: Pad): PadSettingsTabViewController = new ContentPlayerPadContentSettingsViewController(pad) override def getSupportedTypes: Array[String] = ContentPlayerPadContentFactory.FILE_EXTENSION - - override def getGraphics: Node = new FontIcon(MaterialDesignIcon.FONT_FILE, MaterialDesignIcon.MONITOR_MULTIPLE) } object ContentPlayerPadContentFactory { -- GitLab