mirror of
https://gitlab.com/kauron/jstudy
synced 2025-09-30 21:01:10 +02:00
Test: Answer style and better layout
This commit is contained in:
parent
c83f765c35
commit
5d5e714b5e
3 changed files with 13 additions and 5 deletions
|
@ -30,7 +30,7 @@ public class TestController implements Initializable {
|
|||
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
feedback.setVisible(AppConfig.showFeedback);
|
||||
feedback.setVisible(false);
|
||||
}
|
||||
|
||||
void setList(List<TestItem> list) {
|
||||
|
@ -51,7 +51,12 @@ public class TestController implements Initializable {
|
|||
correctAnswer.setVisible(!right);
|
||||
correctLabel.setVisible(!right);
|
||||
|
||||
if (!right) errors++;
|
||||
if (!right) {
|
||||
errors++;
|
||||
prevAnswer.setStyle("-fx-text-fill: #C40000;");
|
||||
} else {
|
||||
prevAnswer.setStyle("-fx-text-fill: #00C400;");
|
||||
}
|
||||
|
||||
// Remove the question from the pool if the question was correctly answered or there is no repetition
|
||||
if (right || !AppConfig.repeatWrong) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue