-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #172: TreeTableView - Collapse/Expand arrow color is wrong on D…
…ARK Style
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
public class TreeTableViewSample extends Application { | ||
|
||
private static final Style STYLE = Style.DARK; | ||
private static final Style STARTING_STYLE = Style.DARK; | ||
|
||
List<Employee> employees = Arrays.asList( | ||
new Employee("Ethan Williams", "[email protected]", "25", "Manager", "San Francisco"), | ||
|
@@ -47,8 +47,7 @@ public static void main(String[] args) { | |
|
||
@Override | ||
public void start(Stage stage) { | ||
Style startingStyle = Style.LIGHT; | ||
JMetro jMetro = new JMetro(startingStyle); | ||
JMetro jMetro = new JMetro(STARTING_STYLE); | ||
|
||
System.setProperty("prism.lcdtext", "false"); | ||
|
||
|
@@ -111,15 +110,11 @@ public void start(Stage stage) { | |
controlsHBox.setSpacing(10); | ||
|
||
CheckBox cellSelectionCheckBox = new CheckBox("Cell Selection"); | ||
cellSelectionCheckBox.setOnAction(event -> { | ||
treeTableView.getSelectionModel().setCellSelectionEnabled(cellSelectionCheckBox.isSelected()); | ||
}); | ||
cellSelectionCheckBox.setOnAction(event -> treeTableView.getSelectionModel().setCellSelectionEnabled(cellSelectionCheckBox.isSelected())); | ||
cellSelectionCheckBox.setSelected(treeTableView.getSelectionModel().isCellSelectionEnabled()); | ||
|
||
CheckBox tableButtonCheckBox = new CheckBox("Table Menu Button"); | ||
tableButtonCheckBox.setOnAction(event -> { | ||
treeTableView.setTableMenuButtonVisible(tableButtonCheckBox.isSelected()); | ||
}); | ||
tableButtonCheckBox.setOnAction(event -> treeTableView.setTableMenuButtonVisible(tableButtonCheckBox.isSelected())); | ||
tableButtonCheckBox.setSelected(treeTableView.isTableMenuButtonVisible()); | ||
|
||
CheckBox alternatingRowColors = new CheckBox("Alternating Row Colors"); | ||
|
@@ -147,7 +142,7 @@ public void start(Stage stage) { | |
|
||
ComboBox<Style> jmetroStyleComboBox = new ComboBox<>(); | ||
jmetroStyleComboBox.getItems().addAll(Style.DARK, Style.LIGHT); | ||
jmetroStyleComboBox.setValue(startingStyle); | ||
jmetroStyleComboBox.setValue(STARTING_STYLE); | ||
jmetroStyleComboBox.valueProperty().addListener(observable -> jMetro.setStyle(jmetroStyleComboBox.getValue())); | ||
|
||
controlsHBox.getChildren().addAll(jmetroStyleComboBox, cellSelectionCheckBox, tableButtonCheckBox, alternatingRowColors, columnGridLines); | ||
|
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