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
This commit is contained in:
@@ -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());
|
fIconView = new IconView(BRect(10, 10, 41, 41), ref, editor.IsDevice());
|
||||||
AddChild(fIconView);
|
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;
|
BFont boldFont = *be_bold_font;
|
||||||
boldFont.SetSize(10.0);
|
boldFont.SetSize(10.0);
|
||||||
BFont plainFont = *be_plain_font;
|
BFont plainFont = *be_plain_font;
|
||||||
plainFont.SetSize(10.0);
|
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),
|
BStringView *stringView = new BStringView(BRect(50, 6, rect.right, 20),
|
||||||
B_EMPTY_STRING, editor.IsAttribute() ? "Attribute: " : editor.IsDevice() ? "Device: " : "File: ");
|
B_EMPTY_STRING, editor.IsAttribute() ? "Attribute: " : editor.IsDevice() ? "Device: " : "File: ");
|
||||||
stringView->SetFont(&boldFont);
|
stringView->SetFont(&boldFont);
|
||||||
@@ -473,7 +474,7 @@ HeaderView::HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor)
|
|||||||
fPathView->SetFont(&plainFont);
|
fPathView->SetFont(&plainFont);
|
||||||
AddChild(fPathView);
|
AddChild(fPathView);
|
||||||
|
|
||||||
float top = 27;
|
float top = 28;
|
||||||
if (editor.IsAttribute()) {
|
if (editor.IsAttribute()) {
|
||||||
top += 3;
|
top += 3;
|
||||||
stringView = new BStringView(BRect(50, top, frame.right, top + 15), B_EMPTY_STRING, "Attribute Type: ");
|
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
|
// ToDo: for now
|
||||||
AddChild(fTypeControl);
|
AddChild(fTypeControl);
|
||||||
|
|
||||||
top += 24;
|
top += 25;
|
||||||
} else
|
} else
|
||||||
fTypeControl = NULL;
|
fTypeControl = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user