summaryrefslogtreecommitdiff
path: root/Applications/About
diff options
context:
space:
mode:
authorJonathan Archer <jon@jonnyarcher.com>2019-12-01 18:12:16 -0600
committerAndreas Kling <awesomekling@gmail.com>2019-12-02 09:21:47 +0100
commitf4949fcf839171715a3a4a6b3ccb91cfd7890620 (patch)
treef50fc61439e0a34c3b7f5590c625cedbae963e9b /Applications/About
parent3f45ccffa6c2573e9f0ddd4175826614d886587a (diff)
downloadserenity-f4949fcf839171715a3a4a6b3ccb91cfd7890620.zip
About: Show repository info
Fixes #832
Diffstat (limited to 'Applications/About')
-rw-r--r--Applications/About/main.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp
index bd83fff9e6..9ee365f3ba 100644
--- a/Applications/About/main.cpp
+++ b/Applications/About/main.cpp
@@ -12,7 +12,7 @@ int main(int argc, char** argv)
auto window = GWindow::construct();
window->set_title("About Serenity");
- Rect window_rect { 0, 0, 240, 150 };
+ Rect window_rect { 0, 0, 240, 180 };
window_rect.center_within(GDesktop::the().rect());
window->set_resizable(false);
window->set_rect(window_rect);
@@ -44,6 +44,16 @@ int main(int argc, char** argv)
version_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
version_label->set_preferred_size(0, 11);
+ auto git_info_label = GLabel::construct(widget);
+ git_info_label->set_text(String::format("Built on %s@%s", GIT_BRANCH, GIT_COMMIT));
+ git_info_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
+ git_info_label->set_preferred_size(0, 11);
+
+ auto git_changes_label = GLabel::construct(widget);
+ git_changes_label->set_text(String::format("Changes: %s", GIT_CHANGES));
+ git_changes_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
+ git_changes_label->set_preferred_size(0, 11);
+
auto quit_button = GButton::construct(widget);
quit_button->set_text("Okay");
quit_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);