mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Workshop - Layout info and images WIP
This commit is contained in:
1 parent
f4b9b67f1a
commit
c1e0dadce8
25 files changed
+680
-90
No files matched your search
@@ -148,6 +148,16 @@ public class ContentDialogBuilder
|
||||
_contentDialog.FullSizeDesired = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Changes the dialog to be full screen.
|
||||
/// </summary>
|
||||
/// <returns>The builder that can be used to further build the dialog.</returns>
|
||||
public ContentDialogBuilder WithFullScreen()
|
||||
{
|
||||
_contentDialog.Classes.Add("fullscreen");
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronously shows the content dialog.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Linq;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Platform.Storage;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Artemis.UI.Shared.Services.Builders;
|
||||
|
||||
@@ -37,6 +38,29 @@ public class FileDialogFilterBuilder
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds all supported bitmap types to the filter.
|
||||
/// </summary>
|
||||
public FileDialogFilterBuilder WithBitmaps()
|
||||
{
|
||||
// Formats from SKEncodedImageFormat
|
||||
return WithExtension("astc")
|
||||
.WithExtension("avif")
|
||||
.WithExtension("bmp")
|
||||
.WithExtension("dng")
|
||||
.WithExtension("gif")
|
||||
.WithExtension("heif")
|
||||
.WithExtension("ico")
|
||||
.WithExtension("jpg")
|
||||
.WithExtension("jpeg")
|
||||
.WithExtension("ktx")
|
||||
.WithExtension("pkm")
|
||||
.WithExtension("png")
|
||||
.WithExtension("wbmp")
|
||||
.WithExtension("webp")
|
||||
.WithName("Bitmap image");
|
||||
}
|
||||
|
||||
internal FilePickerFileType Build()
|
||||
{
|
||||
return new FilePickerFileType(_name)
|
||||
|
||||
Reference in new issue
Block a user