[haiku-commits] haiku: hrev51622 - src/apps/haikudepot/ui

  • From: julian.harnath@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 26 Nov 2017 18:03:55 +0100 (CET)

hrev51622 adds 2 changesets to branch 'master'
old head: 5bdf48dea604d3e286435b18deafe4d434381b68
new head: a83b974b1399ecd8b755254ea7cd28c9cb0bb7ee
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=a83b974b1399+%5E5bdf48dea604

----------------------------------------------------------------------------

d78bfd8d1822: HaikuDepot: fix single package install
  
  * Fix crash report by Diver

a83b974b1399: HaikuDepot: make status bar smaller
  
  * As requested in #13808
  
  * Thanks to Janus for the tip with the SetBarHeight

                          [ Julian Harnath <julian.harnath@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 9 insertions(+), 3 deletions(-)
src/apps/haikudepot/ui/MainWindow.cpp     | 7 +++++--
src/apps/haikudepot/ui/WorkStatusView.cpp | 5 ++++-

############################################################################

Commit:      d78bfd8d1822a0f49b9934f1cf8618d108a00395
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d78bfd8d1822
Author:      Julian Harnath <julian.harnath@xxxxxxxxxxxxxx>
Date:        Sun Nov 26 17:48:27 2017 UTC

HaikuDepot: fix single package install

* Fix crash report by Diver

----------------------------------------------------------------------------

diff --git a/src/apps/haikudepot/ui/MainWindow.cpp 
b/src/apps/haikudepot/ui/MainWindow.cpp
index 726c9f9..68018f4 100644
--- a/src/apps/haikudepot/ui/MainWindow.cpp
+++ b/src/apps/haikudepot/ui/MainWindow.cpp
@@ -238,6 +238,7 @@ MainWindow::MainWindow(const BMessage& settings, const 
PackageInfoRef& package)
        BWindow(BRect(50, 50, 650, 350), B_TRANSLATE_SYSTEM_NAME("HaikuDepot"),
                B_DOCUMENT_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL,
                B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS),
+       fWorkStatusView(NULL),
        fScreenshotWindow(NULL),
        fUserMenu(NULL),
        fLogInItem(NULL),
@@ -520,12 +521,14 @@ MainWindow::MessageReceived(BMessage* message)
                        status_t status = message->FindString("reason", 
&reason);
                        if (status != B_OK)
                                break;
-                       fWorkStatusView->SetBusy(reason);
+                       if (!fSinglePackageMode)
+                               fWorkStatusView->SetBusy(reason);
                        break;
                }
 
                case MSG_PACKAGE_WORKER_IDLE:
-                       fWorkStatusView->SetIdle();
+                       if (!fSinglePackageMode)
+                               fWorkStatusView->SetIdle();
                        break;
 
                case MSG_ADD_VISIBLE_PACKAGES:

############################################################################

Revision:    hrev51622
Commit:      a83b974b1399ecd8b755254ea7cd28c9cb0bb7ee
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a83b974b1399
Author:      Julian Harnath <julian.harnath@xxxxxxxxxxxxxx>
Date:        Sun Nov 26 17:59:39 2017 UTC

Ticket:      https://dev.haiku-os.org/ticket/13808

HaikuDepot: make status bar smaller

* As requested in #13808

* Thanks to Janus for the tip with the SetBarHeight

----------------------------------------------------------------------------

diff --git a/src/apps/haikudepot/ui/WorkStatusView.cpp 
b/src/apps/haikudepot/ui/WorkStatusView.cpp
index ef01821..447d87b 100644
--- a/src/apps/haikudepot/ui/WorkStatusView.cpp
+++ b/src/apps/haikudepot/ui/WorkStatusView.cpp
@@ -36,11 +36,14 @@ WorkStatusView::WorkStatusView(const char* name)
        fProgressLayout->AddView(fProgressBar);
 
        fProgressBar->SetMaxValue(1.0f);
+       fProgressBar->SetBarHeight(16);
+
+       fStatusText->SetFontSize(be_plain_font->Size() * 0.9f);
 
        BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
                .Add(new BSeparatorView())
                .AddGroup(B_HORIZONTAL)
-                       .SetInsets(5, 5, 5, 5)
+                       .SetInsets(5, 2, 5, 2)
                        .Add(fProgressLayout, 0.2f)
                        .Add(fStatusText)
                        .AddGlue()


Other related posts:

  • » [haiku-commits] haiku: hrev51622 - src/apps/haikudepot/ui - julian . harnath