Skip to content

SButton Style

Tested on UE5

cpp

.ButtonStyle(FEditorStyle::Get(), "SimpleButton")

.ButtonStyle(FEditorStyle::Get(), "FlatButton") // Blue on hover and borderless

.ButtonStyle(FEditorStyle::Get(), "HoverHintOnly") // Borderless, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "NoBorder") // Borderless, hover disable

.ButtonStyle(FEditorStyle::Get(), "FlatButton.Success") // Green background, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "FlatButton.Success") // Green background, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "FlatButton.Danger") // Red background, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "FlatButton.Light") // Full grey button

.ButtonStyle(FEditorStyle::Get(), "FlatButton.Dark") // Blue on hover and borderless orange on click

.ButtonStyle(FEditorStyle::Get(), "SimpleSharpButton") // Full saturated button, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "PropertyEditor.AssetComboStyle") // Borderless, hover works as expected

.ButtonStyle(FEditorStyle::Get(), "BlueprintEditor.CompactPinTypeSelector") // Blue on hover and borderless but compact

.ButtonStyle(FEditorStyle::Get(), "GraphBreadcrumbButton") // Blue on hover and borderless but compact

.ButtonStyle(FEditorStyle::Get(), "RoundButton") // Big grey background and blue background on hover

.ButtonStyle(FEditorStyle::Get(), "ToggleButton") // Blue on hover and borderless orange on click

.ButtonStyle(FEditorStyle::Get(), "Menu.Button") // Blue on hover, borderless and tiny

.ButtonStyle(FEditorStyle::Get(), "DataLayerBrowserButton")


/** PIE (Play in editor style) */
&FAppStyle::Get().GetWidgetStyle<FToolBarStyle>("Toolbar.BackplateLeftPlay").ButtonStyle // Green icon and rounded left backplate as background
&FAppStyle::Get().GetWidgetStyle<FToolBarStyle>("Toolbar.BackplateLeft").ButtonStyle // Rounded left backplate as background
&FAppStyle::Get().GetWidgetStyle<FToolBarStyle>("Toolbar.BackplateRight").ButtonStyle // Simple square backplate as background 
&FAppStyle::Get().GetWidgetStyle<FToolBarStyle>("Toolbar.BackplateCenter").ButtonStyle // Rounded right backplate as background


/** Not tested */
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.SelectFirst")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.AddPrev")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.SelectPrev")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.SelectAll")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.SelectNext")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.AddNext")
.ButtonStyle(FEditorStyle::Get(), "SplineComponentDetails.SelectLast")