-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
252 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ NinjaTerm | |
|
||
- Maintainer/Primary Author: Geoffrey Hunter <[email protected]> (http://www.mbedded.ninja) | ||
- Created: 2015-07-15 | ||
- Last Modified: 2018-05-16 | ||
- Version: v0.9.0 | ||
- Last Modified: 2018-10-31 | ||
- Version: v0.9.1 | ||
- Company: mbedded.ninja | ||
- Project: NinjaTerm | ||
- Language: Java, JavaFX | ||
|
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,22 @@ | ||
/** | ||
* This code checks that NinjaTerm can handle custom baud rates. | ||
* | ||
* @author Geoffrey Hunter <[email protected]> (www.mbedded.ninja) | ||
* @since 2018-10-31 | ||
* @last-modified 2018-10-31 | ||
*/ | ||
|
||
// the setup routine runs once when you press reset: | ||
void setup() { | ||
// Initialize serial communication | ||
Serial.begin(27123); | ||
} | ||
|
||
void loop() { | ||
Serial.println("custom"); | ||
// Wait until data is sent | ||
Serial.flush(); | ||
} | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* | ||
* @author Geoffrey Hunter <[email protected]> (www.mbedded.ninja) | ||
* @since 2016-07-15 | ||
* @last-modified 2017-02-20 | ||
* @last-modified 2018-10-31 | ||
**/ | ||
|
||
/* ============================================================================================= */ | ||
|
@@ -110,7 +110,8 @@ tab design has no other form of indication) */ | |
|
||
/* Makes the width of the COM port parameter comboboxes all equal. */ | ||
.comSettings .comPortParameters .combo-box { | ||
-fx-min-width: 100px; | ||
-fx-min-width: 150px; | ||
-fx-max-width: 150px; | ||
} | ||
|
||
/* ============================================================================================= */ | ||
|
@@ -250,4 +251,18 @@ tab design has no other form of indication) */ | |
.about Hyperlink { | ||
-fx-fill: -colour-about-link; | ||
-glyph-size: 30; | ||
} | ||
|
||
// ============================================================================================= */ | ||
// GENERAL COMBO-BOX STYLING | ||
// ============================================================================================= */ | ||
|
||
/* text-input targets editable combo-boxes only (e.g. baud rate combo-box) */ | ||
|
||
.combo-box.error .text-input { | ||
-fx-background-color: #FFCCCC; /* Light red */ | ||
} | ||
|
||
.combo-box.warning .text-input { | ||
-fx-background-color: #FFCC99; /* Light orange */ | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/main/java/ninja/mbedded/ninjaterm/util/javafx/CssTools.java
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,25 @@ | ||
package ninja.mbedded.ninjaterm.util.javafx; | ||
|
||
import javafx.scene.control.Control; | ||
|
||
/** | ||
* Contains a bunch of useful functions for manipulating the styles of javafx components. | ||
* | ||
* @author Geoffrey Hunter <[email protected]> (www.mbedded.ninja) | ||
* @last-modified 2018-10-31 | ||
* @since 2018-10-31 | ||
*/ | ||
public class CssTools { | ||
|
||
public static void addClass(Control control, String className) { | ||
if (!control.getStyleClass().contains(className)) { | ||
control.getStyleClass().add(className); | ||
} | ||
} | ||
|
||
public static void removeClass(Control control, String className) { | ||
if (control.getStyleClass().contains(className)) { | ||
control.getStyleClass().remove(className); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.