Merge pull request #293 from jawallace/fxvideobuttons

Removed color from FX video controls.
This commit is contained in:
Brian Carrier 2013-09-23 07:17:25 -07:00
commit 706a0799bb

View File

@ -343,15 +343,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
private static final String STOP_TEXT = "X"; private static final String STOP_TEXT = "X";
/** CSS-formatted skin for pauseButton when showing PLAY_TEXT. **/
private static final String PLAY_STYLE = "-fx-text-fill: green;";
/** CSS-formatted skin for pauseButton when showing PAUSE_TEXT. **/
private static final String PAUSE_STYLE = "-fx-font-weight: bolder;";
/** CSS-formatted skin for stopButton. **/
private static final String STOP_STYLE = "-fx-text-fill: red; -fx-font-weight: bold;";
public MediaPane() { public MediaPane() {
// Video Display // Video Display
mediaViewPane = new HBox(); mediaViewPane = new HBox();
@ -368,9 +359,7 @@ public class FXVideoPanel extends MediaViewVideoPanel {
mediaTools.setPadding(new Insets(5, 10, 5, 10)); mediaTools.setPadding(new Insets(5, 10, 5, 10));
pauseButton = new Button(PLAY_TEXT); pauseButton = new Button(PLAY_TEXT);
pauseButton.setStyle(PLAY_STYLE);
stopButton = new Button(STOP_TEXT); stopButton = new Button(STOP_TEXT);
stopButton.setStyle(STOP_STYLE);
mediaTools.getChildren().add(pauseButton); mediaTools.getChildren().add(pauseButton);
mediaTools.getChildren().add(new Label(" ")); mediaTools.getChildren().add(new Label(" "));
mediaTools.getChildren().add(stopButton); mediaTools.getChildren().add(stopButton);
@ -670,7 +659,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
@Override @Override
public void run() { public void run() {
pauseButton.setText(PLAY_TEXT); pauseButton.setText(PLAY_TEXT);
pauseButton.setStyle(PLAY_STYLE);
} }
} }
@ -681,7 +669,6 @@ public class FXVideoPanel extends MediaViewVideoPanel {
@Override @Override
public void run() { public void run() {
pauseButton.setText(PAUSE_TEXT); pauseButton.setText(PAUSE_TEXT);
pauseButton.setStyle(PAUSE_STYLE);
} }
} }
} }