Changed flashcard to flip an image instead of a rectangle.
This commit is contained in:
parent
05b7c10014
commit
1d40ac93a8
2 changed files with 9 additions and 10 deletions
|
@ -45,10 +45,10 @@ public class FlashcardController extends SharedCodeController {
|
|||
@FXML
|
||||
private Text wordType;
|
||||
@FXML
|
||||
private Rectangle flashcard;
|
||||
@FXML
|
||||
private Text testWord;
|
||||
|
||||
@FXML
|
||||
private ImageView flashcard;
|
||||
@FXML
|
||||
private ImageView leftArrow;
|
||||
@FXML
|
||||
|
@ -76,9 +76,9 @@ public class FlashcardController extends SharedCodeController {
|
|||
|
||||
updateCounter();
|
||||
card = flashcard;
|
||||
|
||||
leftArrow.setImage(new Image(getClass().getResourceAsStream("/assets/icons/black_icons/50px/left-50.png")));
|
||||
rightArrow.setImage(new Image(getClass().getResourceAsStream("/assets/icons/black_icons/50px/right-50.png")));
|
||||
flashcard.setImage(new Image("file:src/main/resources/assets/flashcard/Flashcard.png"));
|
||||
leftArrow.setImage(new Image("file:src/main/resources/assets/icons/black_icons/50px/left-50.png"));
|
||||
rightArrow.setImage(new Image("file:src/main/resources/assets/icons/black_icons/50px/right-50.png"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.scene.text.*?>
|
||||
|
@ -124,11 +124,10 @@
|
|||
<Insets top="25" right="25" bottom="10" left="25"/>
|
||||
</padding>
|
||||
<children>
|
||||
<StackPane alignment="CENTER" onMouseClicked="#handleFlashcardClick" VBox.vgrow="NEVER" minWidth="350">
|
||||
<StackPane alignment="CENTER" onMouseClicked="#handleFlashcardClick" minWidth="500">
|
||||
<children>
|
||||
<Rectangle fx:id="flashcard" width="550" height="360" fill="white" arcHeight="80" arcWidth="80"
|
||||
stroke="black"/>
|
||||
<Text textAlignment="CENTER" fx:id="testWord">
|
||||
<ImageView fx:id="flashcard" fitWidth="500" fitHeight="360"></ImageView>
|
||||
<Text textAlignment="CENTER" fx:id="testWord">
|
||||
<font>
|
||||
<Font size="55"/>
|
||||
</font>
|
||||
|
|
Reference in a new issue