Split camera frame render-graph stage recording helpers
This commit is contained in:
44
new_editor/app/Features/Shared/EditorTreeViewStyle.h
Normal file
44
new_editor/app/Features/Shared/EditorTreeViewStyle.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include <XCEditor/Collections/UIEditorTreeView.h>
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
inline constexpr ::XCEngine::UI::UIColor kProductTreeSurfaceColor(0.10f, 0.10f, 0.10f, 1.0f);
|
||||
inline constexpr ::XCEngine::UI::UIColor kProductTreeHoverColor(0.13f, 0.13f, 0.13f, 1.0f);
|
||||
inline constexpr ::XCEngine::UI::UIColor kProductTreeSelectedColor(0.16f, 0.16f, 0.16f, 1.0f);
|
||||
inline constexpr ::XCEngine::UI::UIColor kProductTreeDisclosureColor(0.620f, 0.620f, 0.620f, 1.0f);
|
||||
inline constexpr ::XCEngine::UI::UIColor kProductTreeTextColor(0.900f, 0.900f, 0.900f, 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.iconInsetY = -1.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
|
||||
Reference in New Issue
Block a user