292 lines
5.6 KiB
C++
292 lines
5.6 KiB
C++
#pragma once
|
|
|
|
#include <imgui.h>
|
|
|
|
namespace XCEngine {
|
|
namespace Editor {
|
|
namespace UI {
|
|
|
|
inline ImVec2 DockHostFramePadding() {
|
|
return ImVec2(4.0f, 2.0f);
|
|
}
|
|
|
|
inline ImVec2 DockHostItemInnerSpacing() {
|
|
return ImVec2(0.0f, 4.0f);
|
|
}
|
|
|
|
inline float DockHostWindowBorderSize() {
|
|
return 0.0f;
|
|
}
|
|
|
|
inline float DockHostTabBarBorderSize() {
|
|
return 0.0f;
|
|
}
|
|
|
|
inline float DockHostTabBarOverlineSize() {
|
|
return 0.0f;
|
|
}
|
|
|
|
inline ImVec4 DockTabColor() {
|
|
return ImVec4(0.17f, 0.17f, 0.17f, 1.00f);
|
|
}
|
|
|
|
inline ImVec4 DockTabHoveredColor() {
|
|
return ImVec4(0.21f, 0.21f, 0.21f, 1.00f);
|
|
}
|
|
|
|
inline ImVec4 DockTabSelectedColor() {
|
|
return ImVec4(0.24f, 0.24f, 0.24f, 1.00f);
|
|
}
|
|
|
|
inline ImVec4 DockTabSelectedOverlineColor() {
|
|
return ImVec4(0.62f, 0.62f, 0.62f, 0.70f);
|
|
}
|
|
|
|
inline ImVec4 DockTabDimmedColor() {
|
|
return ImVec4(0.16f, 0.16f, 0.16f, 1.00f);
|
|
}
|
|
|
|
inline ImVec4 DockTabDimmedSelectedColor() {
|
|
return ImVec4(0.20f, 0.20f, 0.20f, 1.00f);
|
|
}
|
|
|
|
inline ImVec4 DockTabDimmedSelectedOverlineColor() {
|
|
return ImVec4(0.44f, 0.44f, 0.44f, 0.55f);
|
|
}
|
|
|
|
inline ImVec2 PanelWindowPadding() {
|
|
return ImVec2(0.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 ToolbarPadding() {
|
|
return ImVec2(8.0f, 6.0f);
|
|
}
|
|
|
|
inline ImVec2 ToolbarItemSpacing() {
|
|
return ImVec2(6.0f, 6.0f);
|
|
}
|
|
|
|
inline float StandardPanelToolbarHeight() {
|
|
return 34.0f;
|
|
}
|
|
|
|
inline float ProjectPanelToolbarHeight() {
|
|
return 60.0f;
|
|
}
|
|
|
|
inline float ToolbarSearchTrailingSpacing() {
|
|
return 4.0f;
|
|
}
|
|
|
|
inline float ToolbarRowGap() {
|
|
return 2.0f;
|
|
}
|
|
|
|
inline ImVec2 AssetGridSpacing() {
|
|
return ImVec2(8.0f, 10.0f);
|
|
}
|
|
|
|
inline ImVec2 DefaultPanelContentPadding() {
|
|
return ImVec2(8.0f, 6.0f);
|
|
}
|
|
|
|
inline float InspectorPropertyLabelWidth() {
|
|
return 104.0f;
|
|
}
|
|
|
|
inline ImVec2 ControlCellPadding() {
|
|
return ImVec2(0.0f, 2.0f);
|
|
}
|
|
|
|
inline ImVec2 ControlFramePadding() {
|
|
return ImVec2(6.0f, 3.0f);
|
|
}
|
|
|
|
inline float ControlRowHeightOffset() {
|
|
return 2.0f;
|
|
}
|
|
|
|
inline ImVec2 InspectorPanelContentPadding() {
|
|
return ImVec2(10.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 AssetPanelContentPadding() {
|
|
return ImVec2(10.0f, 10.0f);
|
|
}
|
|
|
|
inline ImVec4 ToolbarBackgroundColor() {
|
|
return ImVec4(0.19f, 0.19f, 0.19f, 1.0f);
|
|
}
|
|
|
|
inline ImVec2 SearchFieldFramePadding() {
|
|
return ImVec2(7.0f, 4.0f);
|
|
}
|
|
|
|
inline float SearchFieldFrameRounding() {
|
|
return 2.0f;
|
|
}
|
|
|
|
inline ImU32 PanelDividerColor() {
|
|
return IM_COL32(36, 36, 36, 255);
|
|
}
|
|
|
|
inline ImVec4 EmptyStateSubtitleColor() {
|
|
return ImVec4(0.55f, 0.55f, 0.55f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 HintTextColor() {
|
|
return ImVec4(0.53f, 0.53f, 0.53f, 1.0f);
|
|
}
|
|
|
|
inline float EmptyStateLineOffset() {
|
|
return 20.0f;
|
|
}
|
|
|
|
inline ImVec2 InspectorSectionFramePadding() {
|
|
return ImVec2(6.0f, 4.0f);
|
|
}
|
|
|
|
inline ImVec2 InspectorSectionItemSpacing() {
|
|
return ImVec2(6.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 InspectorActionButtonPadding() {
|
|
return ImVec2(8.0f, 5.0f);
|
|
}
|
|
|
|
inline ImVec2 PopupWindowPadding() {
|
|
return ImVec2(12.0f, 10.0f);
|
|
}
|
|
|
|
inline ImVec2 HierarchyNodeFramePadding() {
|
|
return ImVec2(4.0f, 3.0f);
|
|
}
|
|
|
|
inline ImVec2 AssetTileSize() {
|
|
return ImVec2(104.0f, 82.0f);
|
|
}
|
|
|
|
inline float HierarchyOverflowButtonWidth() {
|
|
return 26.0f;
|
|
}
|
|
|
|
inline ImVec2 ProjectBackButtonSize() {
|
|
return ImVec2(28.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 DialogActionButtonSize() {
|
|
return ImVec2(80.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 AssetDragPreviewSize() {
|
|
return ImVec2(24.0f, 20.0f);
|
|
}
|
|
|
|
inline float AssetTileRounding() {
|
|
return 2.0f;
|
|
}
|
|
|
|
inline ImVec4 AssetTileHoverFillColor() {
|
|
return ImVec4(1.0f, 1.0f, 1.0f, 0.04f);
|
|
}
|
|
|
|
inline ImVec4 AssetTileSelectedFillColor() {
|
|
return ImVec4(0.61f, 0.61f, 0.61f, 0.12f);
|
|
}
|
|
|
|
inline ImVec4 AssetTileSelectedBorderColor() {
|
|
return ImVec4(0.74f, 0.74f, 0.74f, 0.43f);
|
|
}
|
|
|
|
inline ImVec4 AssetTileDraggedOverlayColor() {
|
|
return ImVec4(0.0f, 0.0f, 0.0f, 0.24f);
|
|
}
|
|
|
|
inline ImVec2 AssetTileIconOffset() {
|
|
return ImVec2(14.0f, 12.0f);
|
|
}
|
|
|
|
inline ImVec2 AssetTileIconSize() {
|
|
return ImVec2(28.0f, 22.0f);
|
|
}
|
|
|
|
inline ImVec2 AssetTileTextPadding() {
|
|
return ImVec2(6.0f, 10.0f);
|
|
}
|
|
|
|
inline ImVec4 AssetTileTextColor(bool selected = false) {
|
|
return selected ? ImVec4(0.93f, 0.93f, 0.93f, 1.0f) : ImVec4(0.76f, 0.76f, 0.76f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 AssetFolderIconFillColor() {
|
|
return ImVec4(0.46f, 0.46f, 0.46f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 AssetFolderIconLineColor() {
|
|
return ImVec4(0.72f, 0.72f, 0.72f, 0.86f);
|
|
}
|
|
|
|
inline ImVec4 AssetFileIconFillColor() {
|
|
return ImVec4(0.41f, 0.41f, 0.41f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 AssetFileIconLineColor() {
|
|
return ImVec4(0.65f, 0.65f, 0.65f, 0.86f);
|
|
}
|
|
|
|
inline ImVec4 AssetFileFoldColor() {
|
|
return ImVec4(0.92f, 0.92f, 0.92f, 0.16f);
|
|
}
|
|
|
|
inline ImVec4 ConsoleRowHoverFillColor() {
|
|
return ImVec4(1.0f, 1.0f, 1.0f, 0.03f);
|
|
}
|
|
|
|
inline float MenuBarStatusRightPadding() {
|
|
return 20.0f;
|
|
}
|
|
|
|
inline ImVec4 MenuBarStatusIdleColor() {
|
|
return ImVec4(0.62f, 0.62f, 0.62f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 MenuBarStatusDirtyColor() {
|
|
return ImVec4(0.82f, 0.82f, 0.82f, 1.0f);
|
|
}
|
|
|
|
inline ImVec2 VectorAxisInputSpacing() {
|
|
return ImVec2(6.0f, 0.0f);
|
|
}
|
|
|
|
inline ImVec2 VectorAxisControlSpacing() {
|
|
return ImVec2(0.0f, 0.0f);
|
|
}
|
|
|
|
inline float VectorAxisResetButtonExtraWidth() {
|
|
return 3.0f;
|
|
}
|
|
|
|
inline ImVec4 VectorAxisButtonColor() {
|
|
return ImVec4(0.28f, 0.28f, 0.28f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 VectorAxisButtonHoveredColor() {
|
|
return ImVec4(0.34f, 0.34f, 0.34f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 ToolbarButtonColor(bool active) {
|
|
return active ? ImVec4(0.33f, 0.33f, 0.33f, 1.0f) : ImVec4(0.24f, 0.24f, 0.24f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 ToolbarButtonHoveredColor(bool active) {
|
|
return active ? ImVec4(0.38f, 0.38f, 0.38f, 1.0f) : ImVec4(0.30f, 0.30f, 0.30f, 1.0f);
|
|
}
|
|
|
|
inline ImVec4 ToolbarButtonActiveColor() {
|
|
return ImVec4(0.42f, 0.42f, 0.42f, 1.0f);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|