mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-30 04:00:50 +01:00
styling scheduler, extensionconsole
This commit is contained in:
parent
8dcd84f179
commit
d5a60f9fb9
@ -143,11 +143,11 @@ public class ExtensionItemContainer extends GridPane {
|
|||||||
parent.getChildren().add(this);
|
parent.getChildren().add(this);
|
||||||
|
|
||||||
getStyleClass().clear();
|
getStyleClass().clear();
|
||||||
getStyleClass().add("connectedExtension");
|
getStyleClass().add("tableRowActive");
|
||||||
|
|
||||||
if (item.extensionType() == ExtensionType.INTERNAL) {
|
if (item.extensionType() == ExtensionType.INTERNAL) {
|
||||||
getStyleClass().clear();
|
getStyleClass().clear();
|
||||||
getStyleClass().add("internalExtension");
|
getStyleClass().add("tableRowBlue");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ public class ExtensionItemContainer extends GridPane {
|
|||||||
item.getDeletedObservable().addListener(() -> Platform.runLater(() -> {
|
item.getDeletedObservable().addListener(() -> Platform.runLater(() -> {
|
||||||
if (item.isInstalledExtension()) {
|
if (item.isInstalledExtension()) {
|
||||||
getStyleClass().clear();
|
getStyleClass().clear();
|
||||||
getStyleClass().add("disconnectedExtension");
|
getStyleClass().add("tableRowInactive");
|
||||||
getChildren().remove(buttonsBox);
|
getChildren().remove(buttonsBox);
|
||||||
add(additionalButtonBox, 4, 0);
|
add(additionalButtonBox, 4, 0);
|
||||||
reloadButton.setVisible(true);
|
reloadButton.setVisible(true);
|
||||||
@ -196,7 +196,7 @@ public class ExtensionItemContainer extends GridPane {
|
|||||||
initExtension();
|
initExtension();
|
||||||
|
|
||||||
getStyleClass().clear();
|
getStyleClass().clear();
|
||||||
getStyleClass().add("connectedExtension");
|
getStyleClass().add("tableRowActive");
|
||||||
getChildren().remove(additionalButtonBox);
|
getChildren().remove(additionalButtonBox);
|
||||||
if (buttonsBox != null) {
|
if (buttonsBox != null) {
|
||||||
add(buttonsBox, 4, 0);
|
add(buttonsBox, 4, 0);
|
||||||
|
@ -24,12 +24,14 @@ public class ExtensionLoggerController implements Initializable {
|
|||||||
@Override
|
@Override
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
area = new StyleClassedTextArea();
|
area = new StyleClassedTextArea();
|
||||||
area.getStyleClass().add("white");
|
area.getStyleClass().add("themed-background");
|
||||||
area.setWrapText(true);
|
area.setWrapText(true);
|
||||||
area.setEditable(false);
|
area.setEditable(false);
|
||||||
|
|
||||||
VirtualizedScrollPane<StyleClassedTextArea> vsPane = new VirtualizedScrollPane<>(area);
|
VirtualizedScrollPane<StyleClassedTextArea> vsPane = new VirtualizedScrollPane<>(area);
|
||||||
borderPane.setCenter(vsPane);
|
borderPane.setCenter(vsPane);
|
||||||
|
vsPane.getStyleClass().add("themed-background");
|
||||||
|
borderPane.getStyleClass().add("themed-background");
|
||||||
|
|
||||||
synchronized (appendOnLoad) {
|
synchronized (appendOnLoad) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
@ -73,7 +75,7 @@ public class ExtensionLoggerController implements Initializable {
|
|||||||
text = s.substring(s.indexOf("]") + 1);
|
text = s.substring(s.indexOf("]") + 1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
classname = "black";
|
classname = "label";
|
||||||
text = s;
|
text = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +83,7 @@ public class ExtensionLoggerController implements Initializable {
|
|||||||
int index = text.indexOf(" --> ") + 5;
|
int index = text.indexOf(" --> ") + 5;
|
||||||
String extensionAnnouncement = text.substring(0, index);
|
String extensionAnnouncement = text.substring(0, index);
|
||||||
text = text.substring(index);
|
text = text.substring(index);
|
||||||
elements.add(new Element(extensionAnnouncement, "black"));
|
elements.add(new Element(extensionAnnouncement, "label"));
|
||||||
}
|
}
|
||||||
elements.add(new Element(text + "\n", classname.toLowerCase()));
|
elements.add(new Element(text + "\n", classname.toLowerCase()));
|
||||||
|
|
||||||
|
@ -83,11 +83,21 @@ public class ScheduleItemContainer extends GridPane {
|
|||||||
|
|
||||||
parent.getChildren().add(this);
|
parent.getChildren().add(this);
|
||||||
|
|
||||||
|
getStyleClass().clear();
|
||||||
|
getStyleClass().add("tableRowActive");
|
||||||
|
|
||||||
GridPane this2 = this;
|
GridPane this2 = this;
|
||||||
item.onDelete(() -> parent.getChildren().remove(this2));
|
item.onDelete(() -> parent.getChildren().remove(this2));
|
||||||
item.onIsBeingUpdated(() -> setStyle("-fx-background-color: #faebcc;"));
|
item.onIsBeingUpdated(() -> {
|
||||||
item.onIsupdated(() -> setStyle("-fx-background-color: #ffffff;"));
|
getStyleClass().clear();
|
||||||
|
getStyleClass().add("tableRowBlue");
|
||||||
|
// setStyle("-fx-background-color: #faebcc;")
|
||||||
|
});
|
||||||
|
item.onIsupdated(() -> {
|
||||||
|
getStyleClass().clear();
|
||||||
|
getStyleClass().add("tableRowActive");
|
||||||
|
// setStyle("-fx-background-color: #ffffff;")
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private Label initNewLabelColumn(String text) {
|
private Label initNewLabelColumn(String text) {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<?import javafx.geometry.*?>
|
<?import javafx.geometry.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
<BorderPane fx:id="borderPane" prefHeight="230.0" prefWidth="394.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.extensions.logger.ExtensionLoggerController">
|
<BorderPane fx:id="borderPane" prefHeight="230.0" prefWidth="394.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gearth.ui.subforms.extensions.logger.ExtensionLoggerController">
|
||||||
<padding>
|
<padding>
|
||||||
<Insets bottom="1.0" left="5.0" right="1.0" top="5.0" />
|
<Insets bottom="1.0" left="5.0" right="1.0" top="5.0" />
|
||||||
</padding>
|
</padding>
|
||||||
|
@ -6,6 +6,12 @@
|
|||||||
-fx-border-radius: 11;
|
-fx-border-radius: 11;
|
||||||
-fx-border-width: 0 1 1 1;
|
-fx-border-width: 0 1 1 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.themed-background {
|
||||||
|
-fx-background-color: white;
|
||||||
|
-fx-background-radius: 4;
|
||||||
|
}
|
||||||
|
|
||||||
.button,.menu-button,.toggle-button,.split-menu-button {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
-fx-font-size: 14;
|
-fx-font-size: 14;
|
||||||
-fx-background-radius: 4;
|
-fx-background-radius: 4;
|
||||||
@ -903,15 +909,15 @@ VBox > .split-menu-button.last > .arrow-button {
|
|||||||
-fx-text-fill: #0096c8;
|
-fx-text-fill: #0096c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.internalExtension {
|
.tableRowBlue {
|
||||||
-fx-background-color: #F0FFFF;
|
-fx-background-color: #F0FFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disconnectedExtension {
|
.tableRowInactive {
|
||||||
-fx-background-color: #CCCCCC;
|
-fx-background-color: #CCCCCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connectedExtension {
|
.tableRowActive {
|
||||||
-fx-background-color: #FFFFFF;
|
-fx-background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,11 @@
|
|||||||
-fx-border-width: 0 1 1 1;
|
-fx-border-width: 0 1 1 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.themed-background {
|
||||||
|
-fx-background-color: #363636;
|
||||||
|
-fx-background-radius: 4;
|
||||||
|
}
|
||||||
|
|
||||||
.button,.menu-button,.toggle-button,.split-menu-button {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
-fx-font-size: 14;
|
-fx-font-size: 14;
|
||||||
-fx-background-radius: 4;
|
-fx-background-radius: 4;
|
||||||
@ -925,15 +930,15 @@ VBox > .split-menu-button.last > .arrow-button {
|
|||||||
-fx-text-fill: #0096c8;
|
-fx-text-fill: #0096c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.internalExtension {
|
.tableRowBlue {
|
||||||
-fx-background-color: #3d5b69;
|
-fx-background-color: #3d5b69;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disconnectedExtension {
|
.tableRowInactive {
|
||||||
-fx-background-color: #5e5e5e;
|
-fx-background-color: #5e5e5e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connectedExtension {
|
.tableRowActive {
|
||||||
-fx-background-color: #525252;
|
-fx-background-color: #525252;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
-fx-border-width: 0 1 1 1;
|
-fx-border-width: 0 1 1 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.themed-background {
|
||||||
|
-fx-background-color: white;
|
||||||
|
-fx-background-radius: 4;
|
||||||
|
}
|
||||||
|
|
||||||
.button,.menu-button,.toggle-button,.split-menu-button {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
-fx-font-size: 14;
|
-fx-font-size: 14;
|
||||||
-fx-background-radius: 4;
|
-fx-background-radius: 4;
|
||||||
@ -903,15 +908,15 @@ VBox > .split-menu-button.last > .arrow-button {
|
|||||||
-fx-text-fill: #c88600;
|
-fx-text-fill: #c88600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.internalExtension {
|
.tableRowBlue {
|
||||||
-fx-background-color: #fff0e3;
|
-fx-background-color: #fff0e3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disconnectedExtension {
|
.tableRowInactive {
|
||||||
-fx-background-color: #CCCCCC;
|
-fx-background-color: #CCCCCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connectedExtension {
|
.tableRowActive {
|
||||||
-fx-background-color: #FFFFFF;
|
-fx-background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user