Skip to content

Commit

Permalink
Fix button focus color
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsieu committed Oct 31, 2021
1 parent 8ce1403 commit afd4b5e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
10 changes: 10 additions & 0 deletions src/main/java/seedu/address/ui/EditTaskDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ private void initializeFields(Task t) {
}
});

tagInput.focusedProperty().addListener((observable) -> {
if (!contactInput.isFocused())
dialog.getDialogPane().getScene().getWindow().sizeToScene();
});

contactInput.focusedProperty().addListener((observable) -> {
if (!tagInput.isFocused())
dialog.getDialogPane().getScene().getWindow().sizeToScene();
});

// When tag list changes, update tag chip list
tags.addListener((Observable observable) -> {
tagPane.getChildren().clear();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-fx-color-bg-raised: derive(-fx-color-bg, 8%);
-fx-color-raised: derive(-fx-color-bg-raised, 15%);
-fx-color-hovered: derive(-fx-color-bg-raised, 20%);
-fx-color-focused: derive(-fx-color-bg-raised, 16%);
-fx-color-focused: derive(-fx-color-bg-raised, 40%);
-fx-color-pressed: derive(-fx-color-bg-raised, 16%);
-fx-color-selected: derive(-fx-color-bg-raised, 10%);
-fx-text-fill: #EEEEEE;
Expand Down
10 changes: 8 additions & 2 deletions src/main/resources/view/EditTaskDialog.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</VBox.margin></FlowPane>
</children>
<VBox.margin>
<Insets bottom="8.0" />
<Insets bottom="16.0" />
</VBox.margin>
</VBox>
<VBox layoutX="26.0" layoutY="252.0">
Expand All @@ -81,8 +81,14 @@
<Insets top="8.0" />
</VBox.margin></FlowPane>
</children>
<VBox.margin>
<Insets bottom="16.0" />
</VBox.margin>
</VBox>
<CheckBox fx:id="isDone" mnemonicParsing="false" text="Mark task as done" />
<CheckBox fx:id="isDone" mnemonicParsing="false" text="Mark task as done">
<VBox.margin>
<Insets />
</VBox.margin></CheckBox>
</children>
<padding>
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/view/Extensions.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@
-fx-text-fill: white;
-fx-font-weight: bold;
-fx-border-width: 0;
-fx-background-radius: 100;
}

.filter-chip .button:hover {
-fx-background-color: -fx-color-hovered;
-fx-background-radius: 100;
}

.filter-chip .button:focused {
-fx-background-color: -fx-color-focused;
}

.filter-combo-box.combo-box-base .list-cell {
Expand Down

0 comments on commit afd4b5e

Please sign in to comment.