2 * Copyright 2009-2016 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Ryan Leavengood, leavengood@gmail.com
7 * John Scipione, jscipione@gmail.com
11 #include <DefaultSettingsView.h>
13 #include <LayoutBuilder.h>
14 #include <StringView.h>
19 // Provides a consistent look for the settings view for screen savers
20 // that don't provide any configuration settings.
22 BuildDefaultSettingsView(BView
* view
, const char* moduleName
, const char* info
)
24 view
->SetViewUIColor(B_PANEL_BACKGROUND_COLOR
);
26 BStringView
* nameStringView
= new BStringView("module", moduleName
);
27 nameStringView
->SetFont(be_bold_font
);
29 BStringView
* infoStringView
= new BStringView("info", info
);
31 BLayoutBuilder::Group
<>(view
, B_VERTICAL
, B_USE_SMALL_SPACING
)
35 .SetInsets(B_USE_DEFAULT_SPACING
)
39 } // namespace BPrivate