Deskbar: fix invalid static use of be_control_look.

This commit is contained in:
Jérôme Duval 2017-10-02 21:28:26 +02:00
parent b46a1cbce6
commit 61e43a69e8

View File

@ -37,8 +37,6 @@
#include "StatusView.h"
static const float kIndentSpacing
= be_control_look->DefaultItemSpacing() * 2.3;
static const uint32 kSettingsViewChanged = 'Svch';
static const char* kSettingsFileName = "prefs_window_settings";
@ -144,6 +142,8 @@ PreferencesWindow::PreferencesWindow(BRect frame)
fWindowAutoRaise->SetTarget(be_app);
fWindowAutoHide->SetTarget(be_app);
const float spacing = be_control_look->DefaultItemSpacing() * 2.3;
// Applications
BBox* appsSettingsBox = new BBox("applications");
appsSettingsBox->SetLabel(B_TRANSLATE("Applications"));
@ -153,7 +153,7 @@ PreferencesWindow::PreferencesWindow(BRect frame)
.Add(fAppsSortTrackerFirst)
.Add(fAppsShowExpanders)
.AddGroup(B_HORIZONTAL, 0)
.Add(BSpaceLayoutItem::CreateHorizontalStrut(kIndentSpacing))
.Add(BSpaceLayoutItem::CreateHorizontalStrut(spacing))
.Add(fAppsExpandNew)
.End()
.Add(fAppsHideLabels)