32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
|
// Copyright (c) Microsoft Corporation.
|
|||
|
// Licensed under the MIT license.
|
|||
|
|
|||
|
#include "pch.h"
|
|||
|
#include "GlobalAppearance.h"
|
|||
|
#include "GlobalAppearance.g.cpp"
|
|||
|
#include "GlobalAppearancePageNavigationState.g.cpp"
|
|||
|
#include "EnumEntry.h"
|
|||
|
|
|||
|
using namespace winrt;
|
|||
|
using namespace winrt::Windows::UI::Xaml;
|
|||
|
using namespace winrt::Windows::UI::Xaml::Navigation;
|
|||
|
using namespace winrt::Windows::UI::Xaml::Controls;
|
|||
|
using namespace winrt::Microsoft::Terminal::Settings::Model;
|
|||
|
using namespace winrt::Windows::Foundation::Collections;
|
|||
|
|
|||
|
namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
|||
|
{
|
|||
|
GlobalAppearance::GlobalAppearance()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
|
|||
|
INITIALIZE_BINDABLE_ENUM_SETTING(Theme, ElementTheme, winrt::Windows::UI::Xaml::ElementTheme, L"Globals_Theme", L"Content");
|
|||
|
INITIALIZE_BINDABLE_ENUM_SETTING(TabWidthMode, TabViewWidthMode, winrt::Microsoft::UI::Xaml::Controls::TabViewWidthMode, L"Globals_TabWidthMode", L"Content");
|
|||
|
}
|
|||
|
|
|||
|
void GlobalAppearance::OnNavigatedTo(const NavigationEventArgs& e)
|
|||
|
{
|
|||
|
_State = e.Parameter().as<Editor::GlobalAppearancePageNavigationState>();
|
|||
|
}
|
|||
|
}
|