Some more layout tweaks for 3drendering.
* Move the gears image to 18px from top matching alert window. * Set the insets of the views inside the tabview to 5.0 since the tabView's bevel was drawing over the views and it didn't look right. * Convert the InfoView fields to a GridView because the GroupView's didn't always line up. * Make the inside tabView columns a little narrower to compensate for the insets. * Make the tabView shorter.
This commit is contained in:
@@ -35,7 +35,7 @@ CapabilitiesView::CapabilitiesView()
|
||||
{
|
||||
// add the columns
|
||||
|
||||
float capabilityColWidth = this->StringWidth("M") * 24;
|
||||
float capabilityColWidth = this->StringWidth("M") * 23;
|
||||
|
||||
fCapabilityColumn = new BStringColumn(B_TRANSLATE("Capability"),
|
||||
capabilityColWidth, capabilityColWidth - 20.0,
|
||||
@@ -102,7 +102,7 @@ CapabilitiesView::CapabilitiesView()
|
||||
// add the list
|
||||
|
||||
AddChild(fCapabilitiesList);
|
||||
GroupLayout()->SetInsets(-1, -1, -1, -1);
|
||||
GroupLayout()->SetInsets(5.0, 5.0, 5.0, 5.0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ ExtensionsView::ExtensionsView()
|
||||
{
|
||||
// add the columns
|
||||
|
||||
float availableColWidth = this->StringWidth("M") * 28;
|
||||
float availableColWidth = this->StringWidth("M") * 27;
|
||||
|
||||
fAvailableColumn = new BStringColumn(B_TRANSLATE("Available extensions"),
|
||||
availableColWidth, availableColWidth, availableColWidth,
|
||||
@@ -50,7 +50,7 @@ ExtensionsView::ExtensionsView()
|
||||
// add the list
|
||||
|
||||
AddChild(fExtensionsList);
|
||||
GroupLayout()->SetInsets(-1, -1, -1, -1);
|
||||
GroupLayout()->SetInsets(5.0, 5.0, 5.0, 5.0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ GearsView::Draw(BRect updateRect)
|
||||
|
||||
SetDrawingMode(B_OP_ALPHA);
|
||||
SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
|
||||
DrawBitmapAsync(fGears, BPoint(5.0, 30.0));
|
||||
DrawBitmapAsync(fGears, BPoint(5.0, 18.0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,14 +13,15 @@
|
||||
|
||||
#include <Catalog.h>
|
||||
#include <ControlLook.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glut.h>
|
||||
#include <GridLayoutBuilder.h>
|
||||
#include <LayoutBuilder.h>
|
||||
#include <Locale.h>
|
||||
#include <Message.h>
|
||||
#include <String.h>
|
||||
#include <StringView.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <GL/glut.h>
|
||||
|
||||
|
||||
#undef B_TRANSLATE_CONTEXT
|
||||
@@ -71,14 +72,12 @@ InfoView::InfoView()
|
||||
BLayoutBuilder::Group<>(this)
|
||||
.AddGroup(B_VERTICAL, 0)
|
||||
.Add(rendererView)
|
||||
.AddGroup(B_HORIZONTAL, 0)
|
||||
.Add(vendorNameView)
|
||||
.Add(glVersionView)
|
||||
.End()
|
||||
.AddGroup(B_HORIZONTAL, 0)
|
||||
.Add(gluVersionView)
|
||||
.Add(glutVersionView)
|
||||
.End()
|
||||
.Add(BGridLayoutBuilder(0, 0)
|
||||
.Add(vendorNameView, 0, 0)
|
||||
.Add(glVersionView, 1, 0)
|
||||
.Add(gluVersionView, 0, 1)
|
||||
.Add(glutVersionView, 1, 1)
|
||||
)
|
||||
.End();
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ OpenGLView::OpenGLView()
|
||||
menuField->SetEnabled(false);
|
||||
|
||||
float tabViewWidth = this->StringWidth("M") * 36;
|
||||
float tabViewHeight = this->StringWidth("M") * 19;
|
||||
float tabViewHeight = this->StringWidth("M") * 16;
|
||||
|
||||
BTabView *tabView = new BTabView("tab view", B_WIDTH_FROM_LABEL);
|
||||
tabView->SetExplicitMinSize(BSize(tabViewWidth, tabViewHeight));
|
||||
|
||||
Reference in New Issue
Block a user