-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework error and warning dialogs and group warnings. (#782)
* Reworked Error and Warning boxes. * Error box now puts itself ontop of the chunky window. (if possible, won't let it be put behind anything else) * Group Warnings together and use ChunkyErrorDialog object. * Having warnings up no longer prevents the main UI from being interacted with (side effect of using Stage instead of Alert) * Pressing escape to dismiss ChunkyErrorDialog only triggers on KeyReleased, so you wont accidentally dismiss all errors and warnings when meaning to only dismiss one of the two. * Log.Level enum now holds its name in a final string. * Other little bits of code cleanup. * Apply code formatting by @NotStirred Co-authored-by: Tom Martin <[email protected]> * Rename error and warning windows, move the log level name into the ui code. * Fix warning dialog being created as "Information Summary" if the first message has level INFO. Co-authored-by: Maik Marschner <[email protected]> Co-authored-by: Tom Martin <[email protected]> Co-authored-by: Maik Marschner <[email protected]>
- Loading branch information
1 parent
309950f
commit ad3806d
Showing
3 changed files
with
86 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TabPane?> | ||
|
||
<?import javafx.scene.layout.BorderPane?> | ||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1"> | ||
<top> | ||
<Label text="A warning occurred! Below is more information. " /> | ||
</top> | ||
<center> | ||
<TabPane fx:id="tabPane" prefWidth="200.0" tabClosingPolicy="UNAVAILABLE" /> | ||
</center> | ||
<padding> | ||
<Insets left="10.0" right="10.0" top="10.0" /> | ||
</padding> | ||
</BorderPane> |