forked from nus-cs2103-AY2425S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from itsme-zeix/refine-command-bar-ui
Update CommandBar UI, ResultDisplay UI & default window size
- Loading branch information
Showing
15 changed files
with
143 additions
and
55 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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import java.net.URL?> | ||
<?import javafx.scene.control.TextField?> | ||
<?import javafx.scene.control.TextArea?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.StackPane?> | ||
|
||
<StackPane styleClass="stack-pane" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"> | ||
<?import org.kordamp.ikonli.javafx.FontIcon?> | ||
|
||
<StackPane styleClass="stack-panel" xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"> | ||
<stylesheets> | ||
<URL value="@DarkTheme.css" /> | ||
<URL value="@/view/css/CommandBox.css" /> | ||
</stylesheets> | ||
<TextArea fx:id="commandTextArea" promptText="Enter command here..." wrapText="true" maxHeight="200"/> | ||
</StackPane> | ||
|
||
<HBox fx:id="commandTextContainer" alignment="CENTER_LEFT" spacing="5" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml"> | ||
<FontIcon fx:id="commandTextIcon" iconLiteral="fas-terminal"/> | ||
<TextArea fx:id="commandTextArea" maxHeight="200" promptText="Enter command here..." wrapText="true" HBox.hgrow="ALWAYS" /> | ||
</HBox> | ||
|
||
</StackPane> |
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import java.net.URL?> | ||
|
||
<?import javafx.scene.control.TextArea?> | ||
<?import javafx.scene.layout.StackPane?> | ||
|
||
<StackPane fx:id="placeHolder" styleClass="pane-with-border" xmlns="http://javafx.com/javafx/17" | ||
xmlns:fx="http://javafx.com/fxml/1"> | ||
<TextArea fx:id="resultDisplay" editable="false" styleClass="result-display"/> | ||
<StackPane styleClass="stack-pane" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"> | ||
<stylesheets> | ||
<URL value="@css/ResultDisplay.css" /> | ||
</stylesheets> | ||
|
||
<TextArea fx:id="resultDisplay" editable="false" styleClass="result-display" wrapText="true"/> | ||
</StackPane> |
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,55 @@ | ||
#commandTextContainer { | ||
-fx-background-color: #1C1C1C; | ||
-fx-border-color: #1C1C1C; | ||
-fx-border-width: 1px; | ||
|
||
-fx-padding: 10 15 10 15; | ||
|
||
-fx-pref-height: 50px; | ||
-fx-min-height: 50px; | ||
-fx-max-height: 50px; | ||
} | ||
|
||
#commandTextIcon { | ||
-fx-icon-size: 15; | ||
-fx-icon-color: white; | ||
} | ||
|
||
#commandTextArea { | ||
|
||
-fx-background-color: #1C1C1C; | ||
-fx-control-inner-background: #1C1C1C; | ||
|
||
-fx-font-family: "Jetbrains Mono"; | ||
-fx-font-size: 13pt; | ||
-fx-prompt-text-fill: #656565; | ||
-fx-text-fill: white; | ||
|
||
-fx-pref-height: 35px; | ||
-fx-max-height: 35px; | ||
-fx-min-height: 35px; | ||
-fx-padding: 0 0 0 -5px; | ||
|
||
-fx-border-width: 0; | ||
|
||
} | ||
|
||
#commandTextArea .content { | ||
-fx-background-radius: 0; | ||
-fx-background-color: #1C1C1C; | ||
-fx-border-width: 0; | ||
} | ||
|
||
#commandTextArea .viewport { | ||
-fx-background-color: #1C1C1C; | ||
-fx-border-width: 0; | ||
} | ||
|
||
#commandTextArea:focused { | ||
-fx-prompt-text-fill: grey; | ||
-fx-border-width: 0; | ||
} | ||
|
||
.scroll-pane { | ||
-fx-background-color: transparent; | ||
} |
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
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
.result-display { | ||
-fx-background-color: #1C1C1C; | ||
-fx-control-inner-background: #1C1C1C; | ||
-fx-highlight-text-fill: #1C1C1C; | ||
-fx-faint-focus-color: #1C1C1C; | ||
-fx-font-family: "Segoe UI Light"; | ||
-fx-font-size: 13pt; | ||
-fx-text-fill: white; | ||
} | ||
|
||
#resultDisplay .content { | ||
-fx-background-color: #1C1C1C, #1C1C1C, #1C1C1C, #1C1C1C; | ||
-fx-background-radius: 0; | ||
} |