From 2f5a0adddefa000cb8899c7fbc58d2bf5a8a4601 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 8 Dec 2016 23:38:15 +0000 Subject: [PATCH] SoftwareUpdater: Add some details on what's available * Just example text for now to be filled in with data from our package kit. --- src/apps/softwareupdater/SoftwareUpdaterWindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/apps/softwareupdater/SoftwareUpdaterWindow.cpp b/src/apps/softwareupdater/SoftwareUpdaterWindow.cpp index 655b869609..1aa0dc8b1b 100644 --- a/src/apps/softwareupdater/SoftwareUpdaterWindow.cpp +++ b/src/apps/softwareupdater/SoftwareUpdaterWindow.cpp @@ -45,15 +45,19 @@ SoftwareUpdaterWindow::SoftwareUpdaterWindow() BNodeInfo::GetTrackerIcon(&appInfo.ref, icon, B_LARGE_ICON); fStripeView = new StripeView(icon); - BStringView* introText = new BStringView("intro", + BStringView* headerText = new BStringView("header", "Software updates are available.", B_WILL_DRAW); BFont font; - introText->GetFont(&font); + headerText->GetFont(&font); font.SetFace(B_BOLD_FACE); font.SetSize(font.Size() * 1.5); - introText->SetFont(&font, B_FONT_FAMILY_AND_STYLE | B_FONT_SIZE + headerText->SetFont(&font, B_FONT_FAMILY_AND_STYLE | B_FONT_SIZE | B_FONT_FLAGS); + BStringView* detailText = new BStringView("detail", + "There are 134 updates available for your system.", + B_WILL_DRAW); + BButton* updateButton = new BButton("Apply Updates", new BMessage(UPDATE_MESSAGE)); @@ -63,7 +67,8 @@ SoftwareUpdaterWindow::SoftwareUpdaterWindow() .SetInsets(0, B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING) //.SetInsets(B_USE_WINDOW_SPACING) - .Add(introText) + .Add(headerText) + .Add(detailText) .Add(updateButton) .End() .AddGlue()