Skip to content

Commit

Permalink
Changed the open folder from text to an icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
ANonMouseModding committed Dec 12, 2024
1 parent 87c519b commit 9907840
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Mods/Alpakit/Source/Alpakit/Private/AlpakitReleaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ void SAlpakitReleaseWidget::Construct(const FArguments& InArgs) {
})
.Content()[
SNew(SButton)
.Text(LOCTEXT("OpenDirAlpakit", "Open Folder"))
.Content()
[
SNew(SImage)
.Image(FAlpakitStyle::Get().GetBrush("Alpakit.FolderOpen"))
]
.OnClicked_Lambda([this, modPath]
{
FPlatformProcess::ExploreFolder(*modPath);
Expand Down
2 changes: 1 addition & 1 deletion Mods/Alpakit/Source/Alpakit/Private/AlpakitStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TSharedRef<FSlateStyleSet> FAlpakitStyle::Create() {
Style->SetCoreContentRoot(FPaths::EngineContentDir() / TEXT("Slate"));

Style->Set("Alpakit.Warning", new IMAGE_BRUSH("Icons/alert", Icon16x16) );
Style->Set("Alpakit.FolderOpen", new IMAGE_BRUSH("Icons/icon_file_ProjectOpen_16x", Icon16x16));
return Style;
}

Expand Down

0 comments on commit 9907840

Please sign in to comment.