Styling
This commit is contained in:
@ -136,8 +136,12 @@ public class Controller_Frontend {
|
||||
return;
|
||||
}
|
||||
|
||||
int currentIndex;
|
||||
// Aktuelle Zeile abrufen
|
||||
int currentIndex = ind[DataRegister.getPC()];
|
||||
if (!isSleeping)
|
||||
currentIndex = ind[DataRegister.getPC()];
|
||||
else
|
||||
currentIndex = ind[DataRegister.getPC()]-1;
|
||||
|
||||
// Scrollen zur ausgewählten Zeile
|
||||
lstContentListView.scrollTo(currentIndex -2);
|
||||
@ -146,7 +150,11 @@ public class Controller_Frontend {
|
||||
lstContentListView.getSelectionModel().clearSelection();
|
||||
lstContentListView.getSelectionModel().select(currentIndex);
|
||||
|
||||
String selectedRowStyle = "-fx-control-inner-background: red;";
|
||||
String selectedRowStyle;
|
||||
if (!isSleeping)
|
||||
selectedRowStyle = "-fx-background-color: red;";
|
||||
else
|
||||
selectedRowStyle = "-fx-background-color: teal;";
|
||||
lstContentListView.setCellFactory(column -> new ListCell<String>() {
|
||||
@Override
|
||||
protected void updateItem(String item, boolean empty) {
|
||||
@ -165,14 +173,16 @@ public class Controller_Frontend {
|
||||
Commands.decode(prog[DataRegister.getPC()]);
|
||||
DataRegister.increasePC();
|
||||
}
|
||||
else
|
||||
else {
|
||||
Commands.decode(0);
|
||||
|
||||
}
|
||||
WatchdogTimer.testAndTrigger();
|
||||
Table.refresh();
|
||||
Stage stage = (Stage) stepintoButton.getScene().getWindow();
|
||||
CreateWindow.refreshTable(stage);
|
||||
IOPorts.refreshUI(getTRISbuttons(), getPORTbuttons());
|
||||
totalExecutionTimeLabel.setText("Total Execution Time: " + Commands.getTotalExecutionTime() + " µs");
|
||||
totalExecutionTimeLabel.setText("Total Execution Time: " + Commands.getTotalExecutionTime() + "µs");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -46,8 +46,7 @@
|
||||
</HBox>
|
||||
<VBox layoutX="14.0" layoutY="727.0">
|
||||
<children>
|
||||
|
||||
<Label fx:id="totalExecutionTimeLabel" text="Total Execution Time: " />
|
||||
<Label fx:id="totalExecutionTimeLabel" text="Total Execution Time: 0µs" />
|
||||
<CheckBox fx:id="wdtCheck" mnemonicParsing="false" onAction="#toggleWatchdog" text="Watchdog-Timer">
|
||||
<VBox.margin>
|
||||
<Insets top="10.0" />
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
.list-cell:selected {
|
||||
-fx-background-color: red;
|
||||
}
|
||||
Reference in New Issue
Block a user