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
|
// add the columns
|
||||||
|
|
||||||
float capabilityColWidth = this->StringWidth("M") * 24;
|
float capabilityColWidth = this->StringWidth("M") * 23;
|
||||||
|
|
||||||
fCapabilityColumn = new BStringColumn(B_TRANSLATE("Capability"),
|
fCapabilityColumn = new BStringColumn(B_TRANSLATE("Capability"),
|
||||||
capabilityColWidth, capabilityColWidth - 20.0,
|
capabilityColWidth, capabilityColWidth - 20.0,
|
||||||
@@ -102,7 +102,7 @@ CapabilitiesView::CapabilitiesView()
|
|||||||
// add the list
|
// add the list
|
||||||
|
|
||||||
AddChild(fCapabilitiesList);
|
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
|
// add the columns
|
||||||
|
|
||||||
float availableColWidth = this->StringWidth("M") * 28;
|
float availableColWidth = this->StringWidth("M") * 27;
|
||||||
|
|
||||||
fAvailableColumn = new BStringColumn(B_TRANSLATE("Available extensions"),
|
fAvailableColumn = new BStringColumn(B_TRANSLATE("Available extensions"),
|
||||||
availableColWidth, availableColWidth, availableColWidth,
|
availableColWidth, availableColWidth, availableColWidth,
|
||||||
@@ -50,7 +50,7 @@ ExtensionsView::ExtensionsView()
|
|||||||
// add the list
|
// add the list
|
||||||
|
|
||||||
AddChild(fExtensionsList);
|
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);
|
SetDrawingMode(B_OP_ALPHA);
|
||||||
SetBlendingMode(B_PIXEL_ALPHA, B_ALPHA_OVERLAY);
|
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 <Catalog.h>
|
||||||
#include <ControlLook.h>
|
#include <ControlLook.h>
|
||||||
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glu.h>
|
||||||
|
#include <GL/glut.h>
|
||||||
|
#include <GridLayoutBuilder.h>
|
||||||
#include <LayoutBuilder.h>
|
#include <LayoutBuilder.h>
|
||||||
#include <Locale.h>
|
#include <Locale.h>
|
||||||
#include <Message.h>
|
#include <Message.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
#include <StringView.h>
|
#include <StringView.h>
|
||||||
#include <GL/gl.h>
|
|
||||||
#include <GL/glu.h>
|
|
||||||
#include <GL/glut.h>
|
|
||||||
|
|
||||||
|
|
||||||
#undef B_TRANSLATE_CONTEXT
|
#undef B_TRANSLATE_CONTEXT
|
||||||
@@ -71,14 +72,12 @@ InfoView::InfoView()
|
|||||||
BLayoutBuilder::Group<>(this)
|
BLayoutBuilder::Group<>(this)
|
||||||
.AddGroup(B_VERTICAL, 0)
|
.AddGroup(B_VERTICAL, 0)
|
||||||
.Add(rendererView)
|
.Add(rendererView)
|
||||||
.AddGroup(B_HORIZONTAL, 0)
|
.Add(BGridLayoutBuilder(0, 0)
|
||||||
.Add(vendorNameView)
|
.Add(vendorNameView, 0, 0)
|
||||||
.Add(glVersionView)
|
.Add(glVersionView, 1, 0)
|
||||||
.End()
|
.Add(gluVersionView, 0, 1)
|
||||||
.AddGroup(B_HORIZONTAL, 0)
|
.Add(glutVersionView, 1, 1)
|
||||||
.Add(gluVersionView)
|
)
|
||||||
.Add(glutVersionView)
|
|
||||||
.End()
|
|
||||||
.End();
|
.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ OpenGLView::OpenGLView()
|
|||||||
menuField->SetEnabled(false);
|
menuField->SetEnabled(false);
|
||||||
|
|
||||||
float tabViewWidth = this->StringWidth("M") * 36;
|
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);
|
BTabView *tabView = new BTabView("tab view", B_WIDTH_FROM_LABEL);
|
||||||
tabView->SetExplicitMinSize(BSize(tabViewWidth, tabViewHeight));
|
tabView->SetExplicitMinSize(BSize(tabViewWidth, tabViewHeight));
|
||||||
|
|||||||
Reference in New Issue
Block a user