Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create game title text field changes border to red if not filled out #1819

Merged
merged 3 commits into from
Jul 17, 2020
Merged

Create game title text field changes border to red if not filled out #1819

merged 3 commits into from
Jul 17, 2020

Conversation

TobiasJacob
Copy link
Contributor

Fixes #1813

I'm new in FAF development, so I hope the implementation is ok. It changes the background color of the title text-field of the create game page to red to attract more attention if it's empty.

@micheljung
Copy link
Member

Hi Tobias and thanks for contributing! I'll review your PR

@@ -959,6 +959,7 @@

.game-title-input {
-fx-font-size: 0.8cm;
-fx-prompt-text-fill: -fx-light-text-color;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is obsolete then

@@ -220,6 +222,15 @@ private void init() {
);
}

private void adjustCreateGameButtonBackgroundColor(String newValue) {
if (Strings.isNullOrEmpty(newValue)) {
// titleTextField.setBackground(new Background(new BackgroundFill(Paint.valueOf("FF0000"), CornerRadii.EMPTY, Insets.EMPTY)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code should be removed

@TobiasJacob TobiasJacob changed the title Create game title text field changes background to red if not filled out Create game title text field changes border to red if not filled out Jul 10, 2020
@TobiasJacob
Copy link
Contributor Author

Hello @micheljung, I agree with your suggestions and implemented them

@TobiasJacob
Copy link
Contributor Author

Hello @axel1200, I hope this is implemented correctly

@1-alex98
Copy link
Member

Looks strange but well somebody is someday gonna come up with a prettier way

@1-alex98 1-alex98 merged commit 0ff1e7a into FAForever:develop Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indicate when game title is missing
3 participants