Improved painting and sorting of recorded models.

This commit is contained in:
0xboobface 2018-07-06 13:37:54 +02:00
parent 2fcc85853f
commit 2fb9d5cbcc
2 changed files with 7 additions and 6 deletions

View File

@ -323,8 +323,10 @@ public class ThumbCell extends StackPane {
if(recording) {
recordingAnimation.playFromStart();
colorNormal = colorRecording;
nameBackground.setFill(colorNormal);
} else {
colorNormal = Color.BLACK;
nameBackground.setFill(colorNormal);
recordingAnimation.stop();
}
recordingIndicator.setVisible(recording);
@ -436,16 +438,16 @@ public class ThumbCell extends StackPane {
}
private void update() {
setRecording(recorder.isRecording(model));
setImage(model.getPreview());
topic.setText(model.getDescription());
setRecording(recorder.isRecording(model));
requestLayout();
if(Config.getInstance().getSettings().determineResolution) {
determineResolution();
} else {
resolutionBackground.setVisible(false);
resolutionTag.setVisible(false);
}
requestLayout();
}
@Override

View File

@ -201,11 +201,13 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
nodes.add(thumbCell);
}
}
filter();
moveActiveRecordingsToFront();
} finally {
gridLock.unlock();
}
filter();
}
protected void onFail(WorkerStateEvent event) {
@ -243,7 +245,6 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
for (ThumbCell thumbCell : filteredThumbCells) {
insert(thumbCell);
}
moveActiveRecordingsToFront();
return;
}
@ -267,8 +268,6 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
insert(thumbCell);
}
}
moveActiveRecordingsToFront();
} finally {
gridLock.unlock();
}