44 lines
1.7 KiB
C++
44 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include <XCEditor/Collections/UIEditorTreeView.h>
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
inline constexpr ::XCEngine::UI::UIColor kProductTreeSurfaceColor(0.205f, 0.205f, 0.205f, 1.0f);
|
|
inline constexpr ::XCEngine::UI::UIColor kProductTreeHoverColor(0.245f, 0.245f, 0.245f, 1.0f);
|
|
inline constexpr ::XCEngine::UI::UIColor kProductTreeSelectedColor(0.300f, 0.300f, 0.300f, 1.0f);
|
|
inline constexpr ::XCEngine::UI::UIColor kProductTreeDisclosureColor(0.560f, 0.560f, 0.560f, 1.0f);
|
|
inline constexpr ::XCEngine::UI::UIColor kProductTreeTextColor(0.830f, 0.830f, 0.830f, 1.0f);
|
|
|
|
inline Widgets::UIEditorTreeViewMetrics BuildProductTreeViewMetrics() {
|
|
Widgets::UIEditorTreeViewMetrics metrics = {};
|
|
metrics.rowHeight = 20.0f;
|
|
metrics.rowGap = 0.0f;
|
|
metrics.horizontalPadding = 6.0f;
|
|
metrics.indentWidth = 14.0f;
|
|
metrics.disclosureExtent = 18.0f;
|
|
metrics.disclosureLabelGap = 2.0f;
|
|
metrics.iconExtent = 18.0f;
|
|
metrics.iconLabelGap = 2.0f;
|
|
metrics.labelInsetY = 0.0f;
|
|
metrics.cornerRounding = 0.0f;
|
|
metrics.borderThickness = 0.0f;
|
|
metrics.focusedBorderThickness = 0.0f;
|
|
return metrics;
|
|
}
|
|
|
|
inline Widgets::UIEditorTreeViewPalette BuildProductTreeViewPalette() {
|
|
Widgets::UIEditorTreeViewPalette palette = {};
|
|
palette.surfaceColor = kProductTreeSurfaceColor;
|
|
palette.borderColor = kProductTreeSurfaceColor;
|
|
palette.focusedBorderColor = kProductTreeSurfaceColor;
|
|
palette.rowHoverColor = kProductTreeHoverColor;
|
|
palette.rowSelectedColor = kProductTreeSelectedColor;
|
|
palette.rowSelectedFocusedColor = kProductTreeSelectedColor;
|
|
palette.disclosureColor = kProductTreeDisclosureColor;
|
|
palette.textColor = kProductTreeTextColor;
|
|
return palette;
|
|
}
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|