From 9397a29aafc3929d472484e7a782657e7154b3e2 Mon Sep 17 00:00:00 2001 From: stippi Date: Thu, 25 Feb 2010 14:16:06 +0000 Subject: [PATCH] Use the document look for the LauncherWindow and adjust the layout accordinly. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@214 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/LauncherWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/webpositive/LauncherWindow.cpp b/src/apps/webpositive/LauncherWindow.cpp index f3cfbbfc6c..5ab6a965fc 100644 --- a/src/apps/webpositive/LauncherWindow.cpp +++ b/src/apps/webpositive/LauncherWindow.cpp @@ -93,7 +93,7 @@ static BLayoutItem* layoutItemFor(BView* view) LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener, ToolbarPolicy toolbarPolicy) : BWebWindow(frame, "HaikuLauncher", - B_TITLED_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, + B_DOCUMENT_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_AUTO_UPDATE_SIZE_LIMITS | B_ASYNCHRONOUS_CONTROLS) , m_downloadListener(downloadListener) { @@ -162,7 +162,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener, m_statusText = new BStringView("status", ""); m_statusText->SetAlignment(B_ALIGN_LEFT); m_statusText->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); - m_statusText->SetExplicitMinSize(BSize(150, 16)); + m_statusText->SetExplicitMinSize(BSize(150, 12)); // Prevent the window from growing to fit a long status message... BFont font(be_plain_font); font.SetSize(ceilf(font.Size() * 0.8)); @@ -172,7 +172,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener, m_loadingProgressBar = new BStatusBar("progress"); m_loadingProgressBar->SetMaxValue(100); m_loadingProgressBar->Hide(); - m_loadingProgressBar->SetBarHeight(10); + m_loadingProgressBar->SetBarHeight(12); const float kInsetSpacing = 5; const float kElementSpacing = 7; @@ -211,6 +211,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener, .Add(BGroupLayoutBuilder(B_HORIZONTAL, kElementSpacing) .Add(m_statusText) .Add(m_loadingProgressBar, 0.2) + .AddStrut(12 - kElementSpacing) .SetInsets(kInsetSpacing, 0, kInsetSpacing, 0) ) );