Tweak a bit the layout of the preference window.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34168 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-11-20 22:51:39 +00:00
parent 143981329c
commit 64fd88f56a
2 changed files with 5 additions and 5 deletions

View File

@ -68,13 +68,14 @@ AppearancePrefView::AppearancePrefView(const char *name,
PrefHandler::Default()->getInt32(PREF_HALF_FONT_SIZE));
BView *layoutView = BLayoutBuilder::Group<>()
.SetInsets(10, 10, 10, 10)
.AddGroup(B_VERTICAL)
.SetInsets(5, 5, 5, 5)
.AddGroup(B_VERTICAL, 5)
.Add(fFont = new BMenuField("font", "Font:", fontMenu))
.Add(fFontSize = new BMenuField("size", "Size:", sizeMenu))
.Add(fColorField = new BMenuField("color", "Color:",
MakeMenu(MSG_COLOR_FIELD_CHANGED, kColorTable,
kColorTable[0])))
.Add(BSpaceLayoutItem::CreateGlue())
.Add(fColorControl = new BColorControl(BPoint(10, 10),
B_CELLS_32x8, 8.0, "", new BMessage(MSG_COLOR_CHANGED)))
.End();

View File

@ -32,7 +32,7 @@ PrefWindow::PrefWindow(const BMessenger &messenger)
fTerminalMessenger(messenger)
{
BLayoutBuilder::Group<>(this, B_VERTICAL)
.AddGroup(B_VERTICAL, 1)
.AddGroup(B_VERTICAL)
.SetInsets(10, 10, 10, 10)
.Add(new AppearancePrefView("Appearance", fTerminalMessenger))
.AddGroup(B_HORIZONTAL)
@ -47,8 +47,7 @@ PrefWindow::PrefWindow(const BMessenger &messenger)
new BMessage(MSG_SAVE_PRESSED), B_WILL_DRAW))
.End()
.End();
fSaveButton->MakeDefault(true);
AddShortcut('Q', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));