Skip to content
New issue

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

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

Already on GitHub? # to your account

Add About window #588

Merged
merged 14 commits into from
Jun 3, 2016
Merged

Conversation

AustinShalit
Copy link
Member

@AustinShalit AustinShalit commented May 21, 2016

Adds an about window that uses FXML.

untitled

Closes #439

@JLLeitschuh
Copy link
Member

That looks awesome! Do you want to add a link to the github site somewhere?

@AustinShalit
Copy link
Member Author

AustinShalit commented May 22, 2016

I added a button to bring the user to the github page. The only possible issue is that I had to make Main a singleton. Let me know what you think...

untitled

@@ -35,6 +35,8 @@

public class Main extends Application {

private static Main instance;
Copy link
Member

@JLLeitschuh JLLeitschuh May 22, 2016

Choose a reason for hiding this comment

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

Can you like, not do this.... Hahahahah

No static state please. This is why we have dependency injection.

@AustinShalit
Copy link
Member Author

Currently broken. I have little (read: no) experience with dependency injection. @JLLeitschuh Do you know why it is not working as written?

@JLLeitschuh
Copy link
Member

I'll take a look tomorrow

@JLLeitschuh
Copy link
Member

Looks weird now.
Looks Weird now

@SamCarlberg
Copy link
Member

Buttons shouldn't have ellipses in the text, remove them.
Maybe change the text of the screensteps button to 'Documentation'?

@AustinShalit
Copy link
Member Author

New Style. Default:
untitled
Mouse on the github button:
untitled 2

@SamCarlberg
Copy link
Member

SamCarlberg commented May 25, 2016

Some issues I've found (running Windows 8.1, not sure if it's present on OS X or Linux)

  • Buttons don't look aligned
  • Font smoothing on the subtext is weird, the text is pretty blocky
  • Gray background isn't centered properly and crowds out the text
  • Title bar has the default icon instead of the GRIP icon

image

image

@AustinShalit
Copy link
Member Author

I updated the style again. This should fix the weird rectangle issue. Still not sure why the font is/was being weird.

@AustinShalit AustinShalit force-pushed the AboutWindow branch 3 times, most recently from accacb3 to 2e0ab16 Compare May 25, 2016 18:02
@AustinShalit
Copy link
Member Author

AustinShalit commented May 25, 2016

Mac:
mac
Windows with font bug:
untitled

@AustinShalit AustinShalit force-pushed the AboutWindow branch 3 times, most recently from 693422b to ed55d84 Compare May 25, 2016 19:53
@AustinShalit
Copy link
Member Author

Updated to solve the failing tests.

</HBox>
</children>
<stylesheets>
<URL value="@roboto/Roboto.css" />
Copy link
Member Author

@AustinShalit AustinShalit May 28, 2016

Choose a reason for hiding this comment

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

This line (90) needs to be removed with #590.

@AustinShalit
Copy link
Member Author

@SamCarlberg Can you please check the latest to see if smoothing is correct?


@FXML
void initialize() {
assert versionNumberLabel != null : "fx:id=\"versionNumberText\" was not injected: check your FXML file 'AboutDialog.fxml'.";
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if this is necessary.

Copy link
Member

Choose a reason for hiding this comment

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

It's not, should remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed in 4547ce4

@SamCarlberg
Copy link
Member

Looks good to me

@AustinShalit
Copy link
Member Author

This is ready to merge

@JLLeitschuh JLLeitschuh merged commit 2c2c52d into WPIRoboticsProjects:master Jun 3, 2016
@AustinShalit AustinShalit added this to the v2.0.0 milestone Jul 29, 2016
@AustinShalit AustinShalit deleted the AboutWindow branch August 7, 2016 22:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants