mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
_⚠️ targets #39955_
This adds history support to the new run page.
* It'll initialize the history with the history from the run dialog, if
there is any.
* Any new commands that are run, or files/dirs that are opened will also
get added to the history
* history will persist across reboots
24 lines
877 B
C++
24 lines
877 B
C++
#pragma once
|
|
|
|
#include "IconPathConverter.g.h"
|
|
|
|
namespace winrt::Microsoft::Terminal::UI::implementation
|
|
{
|
|
struct IconPathConverter
|
|
{
|
|
IconPathConverter() = default;
|
|
|
|
//static Windows::UI::Xaml::Controls::IconElement IconWUX(const winrt::hstring& iconPath);
|
|
//static Windows::UI::Xaml::Controls::IconSource IconSourceWUX(const winrt::hstring& iconPath);
|
|
static Microsoft::UI::Xaml::Controls::IconSource IconSourceMUX(const winrt::hstring& iconPath, bool convertToGrayscale, const int targetSize=24);
|
|
static Microsoft::UI::Xaml::Controls::IconElement IconMUX(const winrt::hstring& iconPath);
|
|
static Microsoft::UI::Xaml::Controls::IconElement IconMUX(const winrt::hstring& iconPath, const int targetSize);
|
|
|
|
};
|
|
}
|
|
|
|
namespace winrt::Microsoft::Terminal::UI::factory_implementation
|
|
{
|
|
BASIC_FACTORY(IconPathConverter);
|
|
}
|