Skip to content

Commit 6bac438

Browse files
committed
Updated ux while setting password visible
1 parent 08e22a6 commit 6bac438

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/me/goral/keepmypassworddesktop/controllers/LoggedController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ private void initialize() {
4444
showBtn.getStyleClass().add("show");
4545
addButton.setWrapText(true);
4646
removeButton.setWrapText(true);
47-
4847
genPwd.setWrapText(true);
4948
ImageView imageView = new ImageView(MainApp.class.getResource("/me/goral/keepmypassworddesktop/images/settings-128.png").toExternalForm());
5049
settingsButton.setGraphic(imageView);

src/main/java/me/goral/keepmypassworddesktop/controllers/MainAppController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected void onLoginButtonClick() {
8484
PasswordField password = new PasswordField();
8585
password.setPromptText("Password");
8686

87-
CheckBox checkBox = new CheckBox();
87+
CheckBox checkBox = new CheckBox("Show/Hide password");
8888

8989
tf.managedProperty().bind(checkBox.selectedProperty());
9090
tf.visibleProperty().bind(checkBox.selectedProperty());
@@ -251,7 +251,7 @@ protected void onLoginButtonClick(String unameString, String passwordString) {
251251
PasswordField password = new PasswordField();
252252
password.setText(passwordString);
253253

254-
CheckBox checkBox = new CheckBox();
254+
CheckBox checkBox = new CheckBox("Show/Hide password");
255255

256256
tf.managedProperty().bind(checkBox.selectedProperty());
257257
tf.visibleProperty().bind(checkBox.selectedProperty());

0 commit comments

Comments
 (0)