Skip to content
Snippets Groups Projects
Commit b782cc00 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Define content player icon in xml, rename content player id, increase playlist...

Define content player icon in xml, rename content player id, increase playlist drag option icon size
parent c9f9b834
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
<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
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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment