1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Projucer: Display build date in about window

This commit is contained in:
ed 2017-05-31 10:45:52 +01:00
parent 5e3a5d5e1b
commit d7026529ac

View file

@ -32,7 +32,7 @@ class AboutWindowComponent : public Component,
public:
AboutWindowComponent()
: titleLabel ("title", "PROJUCER"),
versionLabel ("version", "JUCE v" + ProjucerApplication::getApp().getApplicationVersion()),
versionLabel ("version"),
copyrightLabel ("copyright", String (CharPointer_UTF8 ("\xc2\xa9")) + String (" 2017 ROLI Ltd.")),
aboutButton ("About Us", URL ("https://juce.com"))
{
@ -48,7 +48,13 @@ public:
titleLabel.setJustificationType (Justification::centred);
titleLabel.setFont (Font (35.0f, Font::FontStyleFlags::bold));
auto buildDate = Time::getCompilationDate();
addAndMakeVisible (versionLabel);
versionLabel.setText ("JUCE v" + ProjucerApplication::getApp().getApplicationVersion()
+ "\nBuild date: " + String (buildDate.getDayOfMonth())
+ " " + Time::getMonthName (buildDate.getMonth(), true)
+ " " + String (buildDate.getYear()),
dontSendNotification);
versionLabel.setJustificationType (Justification::centred);
addAndMakeVisible (copyrightLabel);
@ -93,7 +99,7 @@ public:
titleLabel.setBounds (centreSlice.removeFromTop (titleHeight));
centreSlice.removeFromTop (10);
versionLabel.setBounds (centreSlice.removeFromTop (25));
versionLabel.setBounds (centreSlice.removeFromTop (40));
centreSlice.removeFromTop (10);