From 4e0afad0c32290e5c01bba8e94a14ef2c309d51f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 10 Mar 2004 18:31:45 +0000 Subject: [PATCH] Set the stop button font to the small one. A bit more space for the stop button - it now looks good even in Dano/Zeta. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6947 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index 4bce533a41..c6dfaae4eb 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -440,19 +440,20 @@ HeaderView::HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor) fIconView = new IconView(BRect(10, 10, 41, 41), ref, editor.IsDevice()); AddChild(fIconView); - BRect rect = Bounds(); - fStopButton = new BButton(BRect(0, 0, 20, 20), B_EMPTY_STRING, "Stop", - new BMessage(kMsgStopFind), B_FOLLOW_TOP | B_FOLLOW_RIGHT); - fStopButton->ResizeToPreferred(); - fStopButton->MoveTo(rect.right - 5 - fStopButton->Bounds().Width(), 5); - fStopButton->Hide(); - AddChild(fStopButton); - BFont boldFont = *be_bold_font; boldFont.SetSize(10.0); BFont plainFont = *be_plain_font; plainFont.SetSize(10.0); + BRect rect = Bounds(); + fStopButton = new BButton(BRect(0, 0, 20, 20), B_EMPTY_STRING, "Stop", + new BMessage(kMsgStopFind), B_FOLLOW_TOP | B_FOLLOW_RIGHT); + fStopButton->SetFont(&plainFont); + fStopButton->ResizeToPreferred(); + fStopButton->MoveTo(rect.right - 4 - fStopButton->Bounds().Width(), 4); + fStopButton->Hide(); + AddChild(fStopButton); + BStringView *stringView = new BStringView(BRect(50, 6, rect.right, 20), B_EMPTY_STRING, editor.IsAttribute() ? "Attribute: " : editor.IsDevice() ? "Device: " : "File: "); stringView->SetFont(&boldFont); @@ -473,7 +474,7 @@ HeaderView::HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor) fPathView->SetFont(&plainFont); AddChild(fPathView); - float top = 27; + float top = 28; if (editor.IsAttribute()) { top += 3; stringView = new BStringView(BRect(50, top, frame.right, top + 15), B_EMPTY_STRING, "Attribute Type: "); @@ -497,7 +498,7 @@ HeaderView::HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor) // ToDo: for now AddChild(fTypeControl); - top += 24; + top += 25; } else fTypeControl = NULL;