Files
UnrealEngine/Engine/Source/Developer/ToolWidgets/Private/ToolWidgetsStylePrivate.h
2025-05-18 13:04:45 +08:00

29 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Styling/SlateStyle.h"
namespace UE::ToolWidgets::Private
{
/** A supplementary Style container, accessible to the module only. */
class FToolWidgetsStylePrivate final
{
public:
struct FButton
{
static constexpr float DefaultBorderPadding = 2.0f; // This needs to be accounted for when padding buttons to achieve the desired height, may be overridden by ButtonStyle
static constexpr float DefaultBorderThickness = 1.0f;
};
struct FActionButton
{
static constexpr float DefaultButtonHeight = 22.0f; // Design standard
static constexpr float DefaultIconHeight = 16.0f; // Vertical icon space should always be used to affect button size and ensure it's consistent regardless of icon presence
static constexpr float DefaultIconLabelSpacing = 3.0f;
static constexpr float DefaultVerticalPadding = (DefaultButtonHeight - DefaultIconHeight) / 2.0f; // Total Button Height - Icon Height (/2 for top and bottom)
static constexpr float DefaultHorizontalPadding = 2.0f;
};
};
}