-
Notifications
You must be signed in to change notification settings - Fork 117
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
Create game title text field changes border to red if not filled out #1819
Conversation
Hi Tobias and thanks for contributing! I'll review your PR |
src/main/resources/theme/style.css
Outdated
@@ -959,6 +959,7 @@ | |||
|
|||
.game-title-input { | |||
-fx-font-size: 0.8cm; | |||
-fx-prompt-text-fill: -fx-light-text-color; |
There was a problem hiding this comment.
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))); |
There was a problem hiding this comment.
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
Hello @micheljung, I agree with your suggestions and implemented them |
Hello @axel1200, I hope this is implemented correctly |
Looks strange but well somebody is someday gonna come up with a prettier way |
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.