mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[FileExplorer]Add QoiThumbnailProvider and QoiPreviewHandler (#29735)
* [FileExplorer]QoiThumbnailProvider * Corrects code documentation * Adds QoiPreviewHandler * Corrects GUIDs * Ensure returned thumbnail image is 32bit ARGB * Updates following review comments * More updates following review comments * Updates following PR comments * Fix dark theme background in QoiPreviewHandler * Updates attribution text
This commit is contained in:
@@ -221,6 +221,40 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
[JsonPropertyName("stl-thumbnail-color-setting")]
|
||||
public StringProperty StlThumbnailColor { get; set; }
|
||||
|
||||
private bool enableQoiPreview = true;
|
||||
|
||||
[JsonPropertyName("qoi-previewer-toggle-setting")]
|
||||
[JsonConverter(typeof(BoolPropertyJsonConverter))]
|
||||
public bool EnableQoiPreview
|
||||
{
|
||||
get => enableQoiPreview;
|
||||
set
|
||||
{
|
||||
if (value != enableQoiPreview)
|
||||
{
|
||||
LogTelemetryEvent(value);
|
||||
enableQoiPreview = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool enableQoiThumbnail = true;
|
||||
|
||||
[JsonPropertyName("qoi-thumbnail-toggle-setting")]
|
||||
[JsonConverter(typeof(BoolPropertyJsonConverter))]
|
||||
public bool EnableQoiThumbnail
|
||||
{
|
||||
get => enableQoiThumbnail;
|
||||
set
|
||||
{
|
||||
if (value != enableQoiThumbnail)
|
||||
{
|
||||
LogTelemetryEvent(value);
|
||||
enableQoiThumbnail = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public PowerPreviewProperties()
|
||||
{
|
||||
SvgBackgroundColorMode = new IntProperty(DefaultSvgBackgroundColorMode);
|
||||
|
||||
Reference in New Issue
Block a user