9662bc6910
## Summary of the Pull Request Ensures that the background image path is displayed in the settings UI. ## References One of the items on #11353 ## PR Checklist * [x] Closes #11541 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA ## Validation Steps Performed Set the background image path and saw that it was displayed in the settings UI.
34 lines
1.5 KiB
C++
34 lines
1.5 KiB
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#pragma once
|
|
|
|
#include "Converters.g.h"
|
|
|
|
namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
|
{
|
|
struct Converters : ConvertersT<Converters>
|
|
{
|
|
static winrt::hstring AppendPercentageSign(double value);
|
|
static winrt::Windows::UI::Text::FontWeight DoubleToFontWeight(double value);
|
|
static winrt::Windows::UI::Xaml::Media::SolidColorBrush ColorToBrush(winrt::Windows::UI::Color color);
|
|
static double FontWeightToDouble(winrt::Windows::UI::Text::FontWeight fontWeight);
|
|
static bool InvertBoolean(bool value);
|
|
static winrt::Windows::UI::Xaml::Visibility InvertedBooleanToVisibility(bool value);
|
|
static winrt::Windows::UI::Color LightenColor(winrt::Windows::UI::Color color);
|
|
static double MaxValueFromPaddingString(winrt::hstring paddingString);
|
|
static int PercentageToPercentageValue(double value);
|
|
static double PercentageValueToPercentage(double value);
|
|
static bool StringsAreNotEqual(winrt::hstring expected, winrt::hstring actual);
|
|
static winrt::Windows::UI::Xaml::Visibility StringNotEmptyToVisibility(winrt::hstring value);
|
|
static winrt::hstring StringOrEmptyIfPlaceholder(winrt::hstring placeholder, winrt::hstring value);
|
|
};
|
|
}
|
|
|
|
namespace winrt::Microsoft::Terminal::Settings::Editor::factory_implementation
|
|
{
|
|
struct Converters : ConvertersT<Converters, implementation::Converters>
|
|
{
|
|
};
|
|
}
|