Visual fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3951 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -124,7 +124,7 @@ MediaListItem::DrawItem(BView *owner, BRect frame, bool complete)
|
|||||||
font_height finfo;
|
font_height finfo;
|
||||||
font.GetHeight(&finfo);
|
font.GetHeight(&finfo);
|
||||||
owner->SetFont(&font);
|
owner->SetFont(&font);
|
||||||
owner->MovePenTo(frame.left+10, frame.top + ((frame.Height() - (finfo.ascent + finfo.descent + finfo.leading)) / 2) +
|
owner->MovePenTo(frame.left+8, frame.top + ((frame.Height() - (finfo.ascent + finfo.descent + finfo.leading)) / 2) +
|
||||||
(finfo.ascent + finfo.descent) - 1);
|
(finfo.ascent + finfo.descent) - 1);
|
||||||
owner->DrawString(mLabel);
|
owner->DrawString(mLabel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ SettingsView::SettingsView (BRect frame, bool isVideo)
|
|||||||
{
|
{
|
||||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
BRect rect(frame);
|
BRect rect(frame);
|
||||||
rect.left += 11;
|
rect.left += 10;
|
||||||
rect.top += 12;
|
rect.top += 12;
|
||||||
rect.right -=20;
|
rect.right -=21;
|
||||||
rect.bottom = rect.top + 104;
|
rect.bottom = rect.top + 104;
|
||||||
BBox *defaultsBox = new BBox(rect, "defaults");
|
BBox *defaultsBox = new BBox(rect, "defaults");
|
||||||
defaultsBox->SetLabel(mIsVideo ? "Default Nodes" : "Defaults");
|
defaultsBox->SetLabel(mIsVideo ? "Default Nodes" : "Defaults");
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const uint32 ML_INIT_MEDIA = 'MlIM';
|
|||||||
|
|
||||||
// MediaWindow - Constructor
|
// MediaWindow - Constructor
|
||||||
MediaWindow::MediaWindow(BRect frame)
|
MediaWindow::MediaWindow(BRect frame)
|
||||||
: BWindow (frame, "Media", B_TITLED_WINDOW, B_NORMAL_WINDOW_FEEL , 0),
|
: BWindow (frame, "Media", B_TITLED_WINDOW, B_NORMAL_WINDOW_FEEL , B_ASYNCHRONOUS_CONTROLS),
|
||||||
mCurrentNode(NULL),
|
mCurrentNode(NULL),
|
||||||
mParamWeb(NULL),
|
mParamWeb(NULL),
|
||||||
mAlert(NULL)
|
mAlert(NULL)
|
||||||
@@ -166,8 +166,8 @@ void MediaWindow::InitWindow(void)
|
|||||||
// Create the OutlineView
|
// Create the OutlineView
|
||||||
BRect menuRect(bounds.left+14,bounds.top+14,bounds.left+146,bounds.bottom-14);
|
BRect menuRect(bounds.left+14,bounds.top+14,bounds.left+146,bounds.bottom-14);
|
||||||
BRect titleRect(menuRect.right+14,menuRect.top,bounds.right-10,menuRect.top+16);
|
BRect titleRect(menuRect.right+14,menuRect.top,bounds.right-10,menuRect.top+16);
|
||||||
BRect availableRect(menuRect.right+14,titleRect.bottom+12,bounds.right-10,bounds.bottom-14);
|
BRect availableRect(menuRect.right+15,titleRect.bottom+12,bounds.right-14,bounds.bottom-14);
|
||||||
BRect barRect(titleRect.left,titleRect.bottom+10,titleRect.right,titleRect.bottom+11);
|
BRect barRect(titleRect.left,titleRect.bottom+10,titleRect.right-2,titleRect.bottom+11);
|
||||||
|
|
||||||
mListView = new BListView(menuRect,"audio_list", B_SINGLE_SELECTION_LIST, B_FOLLOW_ALL_SIDES);
|
mListView = new BListView(menuRect,"audio_list", B_SINGLE_SELECTION_LIST, B_FOLLOW_ALL_SIDES);
|
||||||
mListView->SetSelectionMessage(new BMessage(ML_SELECTED_NODE));
|
mListView->SetSelectionMessage(new BMessage(ML_SELECTED_NODE));
|
||||||
|
|||||||
Reference in New Issue
Block a user